/* =========================================================
   PROFESSIONAL GAME PAGE
========================================================= */

.game-page-pro {
    background:
        radial-gradient(circle at 50% -10%, rgba(255,179,24,.09), transparent 24%),
        var(--bg);
}

.game-page-shell {
    width: 100%;
    max-width: 1700px;
    margin: 0 auto;
    padding: 24px 28px 80px;
}

.game-nav {
    margin-left: 8px;
}

.game-back-button {
    margin-left: auto;
    padding: 10px 13px;
    color: #aeb5c0;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255,255,255,.025);
    font-size: 11px;
    font-weight: 700;
}

.game-back-button:hover {
    color: #fff;
    border-color: rgba(255,179,24,.32);
}

.game-top-ad,
.game-bottom-ad {
    width: min(970px, 100%);
    min-height: 90px;
    margin-left: auto;
    margin-right: auto;
}

.game-top-ad {
    margin-bottom: 22px;
}

.game-bottom-ad {
    margin-top: 35px;
    margin-bottom: 45px;
}

.game-breadcrumb {
    margin: 0 0 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #626a77;
    font-size: 10px;
}

.game-breadcrumb a:hover {
    color: #b8bec8;
}

.game-breadcrumb strong {
    max-width: 380px;
    overflow: hidden;
    color: #8a929f;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.game-title-bar {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.game-title-left {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.game-cover-mini {
    position: relative;
    width: 78px;
    height: 59px;
    flex: 0 0 78px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: #11151d;
}

.game-cover-mini img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.game-title-left h1 {
    margin: 5px 0 7px;
    overflow: hidden;
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.05;
    letter-spacing: -1.5px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.game-title-meta {
    display: flex;
    align-items: center;
    gap: 13px;
    color: #7f8794;
    font-size: 10px;
}

.game-title-meta span:first-child {
    color: var(--accent);
    font-weight: 900;
}

.game-stage-layout {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr) 160px;
    gap: 20px;
    align-items: start;
}

.game-side-ad {
    position: sticky;
    top: 96px;
}

.game-skyscraper {
    width: 160px;
    min-height: 600px;
}

.game-main-column {
    min-width: 0;
}

.game-player-card {
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 18px;
    background: #050608;
    box-shadow: 0 22px 70px rgba(0,0,0,.38);
}

.game-player-toolbar {
    min-height: 50px;
    padding: 0 14px 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    border-bottom: 1px solid var(--border);
    background:
        linear-gradient(180deg, #151a22, #10141b);
}

.player-status {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #8f97a4;
    font-size: 10px;
    font-weight: 700;
}

.player-live-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: #47d77a;
    box-shadow: 0 0 0 4px rgba(71,215,122,.09);
}

.player-toolbar-actions {
    display: flex;
    gap: 7px;
}

.player-toolbar-actions button {
    width: 34px;
    height: 32px;
    display: grid;
    place-items: center;
    color: #b4bbc6;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #181d26;
    cursor: pointer;
}

.player-toolbar-actions button:hover {
    color: #111;
    border-color: var(--accent);
    background: var(--accent);
}

.game-player-frame {
    position: relative;
    width: 100%;
    height: 680px;
    min-height: 520px;
    overflow: hidden;
    background: #030405;
}

.game-player-frame iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
    background: #030405;
}

.game-player-frame:fullscreen {
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    background: #000;
}

.game-player-frame:fullscreen iframe {
    width: 100%;
    height: 100%;
}

.game-mobile-ad {
    display: none;
}

.game-information-card {
    margin-top: 18px;
    padding: 27px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 36px;
    border: 1px solid var(--border);
    border-radius: 17px;
    background:
        linear-gradient(145deg, rgba(255,255,255,.022), transparent),
        #0f131b;
}

.game-description h2 {
    margin: 6px 0 12px;
    font-size: 22px;
    letter-spacing: -.7px;
}

.game-description p {
    margin: 0;
    color: #8e96a3;
    font-size: 12px;
    line-height: 1.75;
}

.game-instructions {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
}

.game-instructions h3 {
    margin: 0 0 8px;
    font-size: 14px;
}

.game-information-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    align-content: start;
}

.game-info-item {
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: rgba(255,255,255,.018);
}

.game-info-item span {
    display: block;
    color: #707885;
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
}

.game-info-item strong {
    margin-top: 5px;
    display: block;
    overflow: hidden;
    color: #d7dbe2;
    font-size: 11px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.game-recommendations {
    margin-top: 15px;
}

.game-recommendation-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
}

.game-recommendation-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    transition:
        transform .2s ease,
        border-color .2s ease;
}

.game-recommendation-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,179,24,.4);
}

.game-recommendation-thumb {
    position: relative;
    width: 100%;
    height: 0;
    padding-top: 75%;
    overflow: hidden;
    background: #0d1118;
}

.game-recommendation-thumb img {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.game-recommendation-play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    width: 42px;
    height: 42px;
    margin-top: -21px;
    margin-left: -21px;
    display: grid;
    place-items: center;
    padding-left: 2px;
    color: #111;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0;
    transition: opacity .18s ease;
}

.game-recommendation-card:hover .game-recommendation-play {
    opacity: 1;
}

.game-recommendation-info {
    padding: 12px 13px 13px;
}

.game-recommendation-info strong {
    display: block;
    overflow: hidden;
    font-size: 12px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.game-recommendation-info > div {
    margin-top: 7px;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: #777f8c;
    font-size: 9px;
}

.game-recommendation-info > div span:last-child {
    color: var(--accent);
}

@media (max-width: 1320px) {

    .game-stage-layout {
        grid-template-columns: minmax(0, 1fr) 160px;
    }

    .game-side-ad-left {
        display: none;
    }

}

@media (max-width: 1080px) {

    .game-stage-layout {
        grid-template-columns: 1fr;
    }

    .game-side-ad-right {
        display: none;
    }

    .game-mobile-ad {
        margin-top: 17px;
        display: block;
    }

    .game-mobile-ad .ad-slot {
        width: min(320px, 100%);
        min-height: 100px;
        margin: 0 auto;
    }

    .game-player-frame {
        height: 590px;
    }

    .game-recommendation-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}

@media (max-width: 760px) {

    .game-page-shell {
        padding: 18px 14px 55px;
    }

    .game-nav {
        display: none;
    }

    .game-back-button {
        margin-left: auto;
    }

    .game-breadcrumb {
        display: none;
    }

    .game-title-bar {
        align-items: flex-start;
        flex-direction: column;
    }

    .game-title-actions {
        width: 100%;
    }

    .game-title-actions .button {
        width: 100%;
    }

    .game-cover-mini {
        width: 68px;
        height: 51px;
        flex-basis: 68px;
    }

    .game-title-left h1 {
        max-width: 70vw;
        font-size: 25px;
    }

    .game-title-meta {
        gap: 8px;
        flex-wrap: wrap;
    }

    .game-player-frame {
        height: 500px;
        min-height: 400px;
    }

    .game-information-card {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 21px;
    }

    .game-recommendation-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 11px;
    }

}

@media (max-width: 470px) {

    .game-player-frame {
        height: 430px;
        min-height: 340px;
    }

    .game-information-sidebar {
        grid-template-columns: 1fr 1fr;
    }

    .game-title-left h1 {
        max-width: 64vw;
        font-size: 22px;
    }

    .game-recommendation-card:hover {
        transform: none;
    }

}


/* =========================================================
   PIXELPRIZES PLAY — PHONE MOCKUP PLAYER
========================================================= */

/* Base desktop player */
.game-player-frame {
    position: relative;
    width: 100%;
    height: 680px;
    min-height: 520px;
    overflow: hidden;
    background:
        radial-gradient(circle at center, rgba(255,255,255,.025), transparent 45%),
        #030405;
}

.game-player-frame iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
    background: #000;
}

/* =========================================================
   MOBILE PHONE STAGE
========================================================= */

.portrait-stage {
    position: relative;
    width: 100%;
    min-height: 840px;
    padding: 38px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 44%, rgba(55,98,255,.12), transparent 26%),
        radial-gradient(circle at 50% 50%, rgba(255,179,24,.05), transparent 42%),
        linear-gradient(180deg, #06080d, #030406);
}

/* subtle decorative glow behind the phone */
.portrait-stage::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 520px;
    height: 720px;
    margin-left: -260px;
    margin-top: -360px;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(44,89,255,.14), rgba(44,89,255,0) 68%);
    filter: blur(14px);
    pointer-events: none;
}

/* =========================================================
   REALISTIC PHONE MOCKUP
========================================================= */

.phone-mockup {
    position: relative;
    z-index: 2;
    width: 430px;
    height: 820px;
    max-width: 86vw;
}

/* physical metal edge */
.phone-shell {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 11px;
    overflow: hidden;
    border: 2px solid #747982;
    border-radius: 58px;
    background:
        linear-gradient(145deg, #6c727a 0%, #161a20 12%, #050608 45%, #2e333a 83%, #8d9299 100%);
    box-shadow:
        0 36px 90px rgba(0,0,0,.68),
        0 8px 24px rgba(0,0,0,.55),
        0 0 0 1px rgba(255,255,255,.18),
        0 0 42px rgba(70,108,255,.08);
}

/* internal black bezel */
.phone-shell::before {
    content: "";
    position: absolute;
    top: 7px;
    right: 7px;
    bottom: 7px;
    left: 7px;
    z-index: 1;
    border-radius: 51px;
    border: 7px solid #050506;
    pointer-events: none;
}

/* subtle glass border */
.phone-shell::after {
    content: "";
    position: absolute;
    top: 13px;
    right: 13px;
    bottom: 13px;
    left: 13px;
    z-index: 4;
    border-radius: 43px;
    box-shadow:
        0 0 0 1px rgba(255,255,255,.08),
        0 0 12px rgba(255,255,255,.025) inset;
    pointer-events: none;
}

/* actual iframe viewport */
.phone-screen {
    position: absolute;
    top: 14px;
    right: 14px;
    bottom: 14px;
    left: 14px;
    z-index: 2;
    overflow: hidden;
    border-radius: 43px;
    background: #000;
}

.phone-screen iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
    background: #000;
}

/* dynamic island */
.phone-dynamic-island {
    position: absolute;
    z-index: 6;
    top: 22px;
    left: 50%;
    width: 112px;
    height: 31px;
    margin-left: -56px;
    border-radius: 18px;
    background:
        linear-gradient(180deg, #050506, #000);
    box-shadow:
        0 1px 1px rgba(255,255,255,.05) inset,
        0 2px 8px rgba(0,0,0,.65);
    pointer-events: none;
}

.phone-camera-dot {
    position: absolute;
    top: 11px;
    right: 14px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 35%, #244b79, #07111e 42%, #020304 70%);
    box-shadow:
        0 0 0 1px rgba(255,255,255,.05);
}

/* glass reflection */
.phone-reflection {
    position: absolute;
    z-index: 5;
    top: 18px;
    left: 22px;
    width: 34%;
    height: 62%;
    border-radius: 46px 0 80% 0;
    background:
        linear-gradient(
            115deg,
            rgba(255,255,255,.075),
            rgba(255,255,255,.018) 34%,
            rgba(255,255,255,0) 72%
        );
    transform: skewX(-5deg);
    pointer-events: none;
}

/* physical side buttons */
.phone-side-button {
    position: absolute;
    z-index: 0;
    width: 5px;
    border-radius: 3px;
    background:
        linear-gradient(90deg, #545a62, #111419);
    box-shadow:
        0 1px 2px rgba(255,255,255,.12) inset,
        0 2px 5px rgba(0,0,0,.5);
}

.phone-side-button-left-one {
    left: -4px;
    top: 164px;
    height: 62px;
}

.phone-side-button-left-two {
    left: -4px;
    top: 244px;
    height: 92px;
}

.phone-side-button-right {
    right: -4px;
    top: 218px;
    height: 112px;
}

/* =========================================================
   FULLSCREEN
========================================================= */

.portrait-stage:fullscreen {
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    padding: 12px;
    background: #000;
}

.portrait-stage:fullscreen .phone-mockup {
    height: 96vh;
    width: 50.34vh;
    max-width: 94vw;
}

.game-player-frame:fullscreen {
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    background: #000;
}

.game-player-frame:fullscreen iframe {
    width: 100%;
    height: 100%;
}

/* =========================================================
   RESPONSIVE PHONE
========================================================= */

@media (max-width: 1080px) {
    .portrait-stage {
        min-height: 800px;
    }

    .phone-mockup {
        width: 405px;
        height: 772px;
    }
}

@media (max-width: 760px) {
    .portrait-stage {
        min-height: 720px;
        padding: 22px 12px;
    }

    .phone-mockup {
        width: 355px;
        height: 677px;
        max-width: 88vw;
    }

    .phone-shell {
        border-radius: 50px;
    }

    .phone-shell::before {
        border-radius: 44px;
    }

    .phone-screen {
        border-radius: 37px;
    }

    .phone-shell::after {
        border-radius: 37px;
    }
}

@media (max-width: 470px) {
    .portrait-stage {
        min-height: 650px;
        padding: 18px 8px;
    }

    .phone-mockup {
        width: 320px;
        height: 610px;
        max-width: 91vw;
    }

    .phone-dynamic-island {
        top: 20px;
        width: 94px;
        height: 27px;
        margin-left: -47px;
    }

    .phone-camera-dot {
        top: 9px;
        right: 12px;
        width: 7px;
        height: 7px;
    }
}


/* =========================================================
   FINAL MOBILE MOCKUP OVERRIDES
========================================================= */

.portrait-stage {
    box-sizing: border-box;
    width: 100%;
    min-height: 860px;
    padding: 38px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portrait-stage .phone-mockup {
    position: relative;
    display: block;
    width: 430px;
    height: 820px;
    max-width: 86vw;
    flex: 0 0 auto;
}

.portrait-stage .phone-shell {
    box-sizing: border-box;
}

.portrait-stage .phone-screen iframe {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
}

@media (max-width: 760px) {
    .portrait-stage {
        min-height: 720px;
    }

    .portrait-stage .phone-mockup {
        width: 355px;
        height: 677px;
    }
}

@media (max-width: 470px) {
    .portrait-stage {
        min-height: 650px;
    }

    .portrait-stage .phone-mockup {
        width: 320px;
        height: 610px;
    }
}