@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --bg: #080a0f;
    --surface: #10141d;
    --surface-2: #151a24;
    --surface-3: #1b202c;
    --text: #ffffff;
    --muted: #939aaa;
    --border: rgba(255,255,255,.08);
    --accent: #ffb318;
    --accent-2: #ffd15c;
    --danger: #ff5a6b;
    --radius: 18px;
    --shadow: 0 22px 70px rgba(0,0,0,.34);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    background:
        radial-gradient(circle at 50% -15%, rgba(255,179,24,.11), transparent 28%),
        radial-gradient(circle at 92% 20%, rgba(70,92,255,.06), transparent 24%),
        var(--bg);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

img {
    display: block;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(8,10,15,.86);
    backdrop-filter: blur(22px);
    border-bottom: 1px solid var(--border);
}

.topbar-inner {
    max-width: 1540px;
    min-height: 76px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    gap: 34px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -.55px;
    white-space: nowrap;
}

.brand b {
    color: var(--accent);
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: #111;
    background: linear-gradient(145deg, var(--accent-2), var(--accent));
    box-shadow: 0 8px 28px rgba(255,179,24,.22);
}

.nav {
    display: flex;
    gap: 25px;
}

.nav a {
    color: #aeb4c0;
    font-size: 13px;
    font-weight: 700;
}

.nav a:hover {
    color: #fff;
}

.header-search {
    width: min(340px, 30vw);
    margin-left: auto;
    position: relative;
}

.header-search span {
    position: absolute;
    top: 10px;
    left: 14px;
    color: #7c8492;
    font-size: 22px;
}

.header-search input {
    width: 100%;
    height: 44px;
    padding: 0 16px 0 43px;
    color: #fff;
    outline: 0;
    background: #131720;
    border: 1px solid var(--border);
    border-radius: 13px;
}

.header-search input:focus {
    border-color: rgba(255,179,24,.55);
}

.page-shell {
    max-width: 1540px;
    margin: 0 auto;
    padding: 25px 30px 80px;
}

.ad-slot {
    background:
        repeating-linear-gradient(
            -45deg,
            rgba(255,255,255,.018),
            rgba(255,255,255,.018) 10px,
            rgba(255,255,255,.004) 10px,
            rgba(255,255,255,.004) 20px
        );
    border: 1px dashed rgba(255,255,255,.13);
    color: #535a68;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    text-align: center;
    border-radius: 10px;
}

.ad-slot span {
    font-size: 9px;
    letter-spacing: 2px;
}

.ad-slot strong {
    font-size: 11px;
    font-weight: 600;
}

.ad-top {
    width: min(970px, 100%);
    min-height: 90px;
    margin: 0 auto 28px;
}

.ad-banner {
    width: min(970px, 100%);
    min-height: 90px;
    margin: 46px auto;
}

.hero {
    position: relative;
    min-height: 470px;
    overflow: hidden;
    border-radius: 25px;
    border: 1px solid var(--border);
    background:
        linear-gradient(90deg, #07090e 0%, rgba(7,9,14,.91) 26%, rgba(7,9,14,.48) 60%, rgba(7,9,14,.15) 100%),
        var(--hero-image) center / cover no-repeat;
    box-shadow: var(--shadow);
}

.hero::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(0deg, rgba(8,10,15,.55), transparent 45%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
    padding: 76px 60px;
}

.eyebrow,
.section-kicker {
    color: var(--accent);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 2.2px;
}

.hero-category {
    margin-top: 16px;
    color: #c5cad3;
    font-weight: 700;
    font-size: 13px;
}

.hero h1 {
    margin: 10px 0 18px;
    font-size: clamp(44px, 5.5vw, 78px);
    line-height: .96;
    letter-spacing: -4px;
}

.hero p {
    max-width: 540px;
    margin: 0 0 28px;
    color: #b7bdc9;
    font-size: 16px;
    line-height: 1.72;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.button {
    min-height: 48px;
    padding: 0 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 0;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}

.button-primary {
    color: #111;
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
    box-shadow: 0 12px 30px rgba(255,179,24,.18);
}

.button-primary:hover {
    transform: translateY(-2px);
}

.button-glass {
    color: #fff;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    backdrop-filter: blur(8px);
}

.hero-stat {
    position: absolute;
    z-index: 3;
    right: 22px;
    bottom: 22px;
    min-width: 140px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 11px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 13px;
    background: rgba(6,8,12,.64);
    backdrop-filter: blur(16px);
}

.hero-stat span {
    color: var(--accent);
    font-weight: 900;
}

.hero-stat small {
    color: #a7aeb9;
}

.category-strip {
    display: flex;
    gap: 10px;
    margin: 27px 0 10px;
    overflow-x: auto;
    scrollbar-width: none;
}

.category-strip::-webkit-scrollbar {
    display: none;
}

.category-pill {
    flex: 0 0 auto;
    min-height: 43px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #aeb4c1;
    background: #11151e;
    border: 1px solid var(--border);
    border-radius: 999px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
}

.category-pill span {
    min-width: 20px;
    height: 20px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    color: #727987;
    background: rgba(255,255,255,.05);
    font-size: 9px;
}

.category-pill:hover,
.category-pill.active {
    color: #111;
    border-color: var(--accent);
    background: var(--accent);
}

.category-pill.active span,
.category-pill:hover span {
    color: #111;
    background: rgba(0,0,0,.12);
}

.section-block {
    margin-top: 52px;
}

.section-title-row {
    margin-bottom: 20px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 25px;
}

.section-title-row h2 {
    margin: 6px 0 0;
    font-size: 27px;
    letter-spacing: -1.1px;
}

.section-title-row > a {
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
}

.catalog-count {
    color: #737b89;
    font-size: 11px;
}

.featured-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(2, 1fr);
    grid-template-rows: repeat(2, 200px);
    gap: 16px;
}

.feature-card {
    position: relative;
    min-height: 200px;
    overflow: hidden;
    border-radius: 17px;
    border: 1px solid var(--border);
    background: var(--surface);
}

.feature-card-main {
    grid-row: 1 / span 2;
}

.feature-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.feature-card:hover img {
    transform: scale(1.055);
}

.feature-gradient {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(0deg, rgba(5,7,10,.97) 0%, rgba(5,7,10,.18) 65%);
}

.feature-card-content {
    position: absolute;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 20px;
}

.feature-card-content > span {
    color: var(--accent);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.feature-card h3 {
    margin: 4px 0 12px;
    font-size: 19px;
}

.feature-card-main h3 {
    font-size: 27px;
}

.card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-bottom small {
    color: #a9afba;
}

.mini-play {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    padding-left: 2px;
    color: #101010;
    background: var(--accent);
    border-radius: 50%;
    font-size: 11px;
}

.catalog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 26px;
    align-items: start;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
    gap: 16px;
}

.game-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: var(--surface);
    transition: .22s ease;
}

.game-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,179,24,.42);
    box-shadow: 0 14px 38px rgba(0,0,0,.31);
}

.game-thumb {
    position: relative;
overflow: hidden;
    background: #161a22;
}

.game-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .36s ease;
}

.game-card:hover .game-thumb img {
    transform: scale(1.06);
}

.hover-play {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    place-items: center;
    opacity: 0;
    background: rgba(5,7,11,.34);
    transition: .2s;
}

.game-card:hover .hover-play {
    opacity: 1;
}

.hover-play span {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    padding-left: 3px;
    color: #101010;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 8px 30px rgba(0,0,0,.28);
}

.hot-label {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 6px 8px;
    color: #14100a;
    background: var(--accent);
    border-radius: 8px;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 1px;
}

.game-card-body {
    padding: 13px 13px 14px;
}

.game-card-title {
    overflow: hidden;
    color: #f7f8fa;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.game-card-meta {
    margin-top: 7px;
    display: flex;
    justify-content: space-between;
    color: #7f8795;
    font-size: 10px;
}

.desktop-sidebar {
    position: sticky;
    top: 102px;
}

.ad-tower {
    width: 300px;
    min-height: 600px;
}

.sidebar-card {
    margin-top: 18px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: linear-gradient(145deg, #111621, #0d1017);
}

.sidebar-card h3 {
    margin: 7px 0 10px;
    font-size: 17px;
}

.sidebar-card p {
    margin: 0;
    color: #7f8795;
    font-size: 12px;
    line-height: 1.6;
}

.empty-state {
    padding: 60px 20px;
    color: #7d8491;
    text-align: center;
    border: 1px dashed var(--border);
    border-radius: 16px;
}

.horizontal-games {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 13px;
}

.mini-game-card {
    min-width: 0;
    padding: 10px;
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr) 30px;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #10141c;
}

.mini-game-card:hover {
    border-color: rgba(255,179,24,.34);
}

.mini-game-card img {
    width: 70px;
object-fit: cover;
    border-radius: 10px;
}

.mini-game-card strong {
    display: block;
    overflow: hidden;
    font-size: 12px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.mini-game-card span {
    margin-top: 5px;
    display: block;
    color: #777f8c;
    font-size: 10px;
}

.mini-game-card > b {
    color: var(--accent);
    font-size: 11px;
}

footer {
    border-top: 1px solid var(--border);
    background: #07090d;
}

.footer-inner {
    max-width: 1540px;
    min-height: 160px;
    margin: 0 auto;
    padding: 35px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    color: #747b87;
    font-size: 11px;
}

.footer-brand {
    color: #fff;
}

.footer-inner p {
    max-width: 430px;
    margin: 12px 0 0;
}

.footer-links {
    display: flex;
    gap: 18px;
}

.footer-links a:hover {
    color: #fff;
}

.back-link {
    margin-left: auto;
    color: #aeb4c1;
    font-size: 12px;
    font-weight: 700;
}

.game-shell {
    max-width: 1640px;
}

.game-layout {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr) 160px;
    gap: 22px;
    align-items: start;
}

.game-ad-column {
    position: sticky;
    top: 102px;
}

.ad-skyscraper {
    width: 160px;
    min-height: 600px;
}

.play-area {
    min-width: 0;
}

.game-heading {
    margin-bottom: 17px;
    display: flex;
    align-items: end;
    justify-content: space-between;
}

.game-heading h1 {
    margin: 6px 0 0;
    font-size: 30px;
    letter-spacing: -1.3px;
}

.game-rating {
    color: var(--accent);
    font-weight: 900;
}

.game-frame-shell {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #050608;
    box-shadow: var(--shadow);
}

.game-frame-toolbar {
    min-height: 48px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    background: #11151c;
}

.toolbar-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #9ca3ae;
    font-size: 11px;
    font-weight: 700;
}

.live-dot {
    width: 7px;
    height: 7px;
    background: #47d77a;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(71,215,122,.09);
}

.game-frame-toolbar button {
    padding: 8px 11px;
    color: #d5d8de;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: #171b23;
    cursor: pointer;
    font-size: 10px;
    font-weight: 700;
}

.game-frame-container {
    width: 100%;
min-height: 520px;
    background: #050608;
}

.game-frame-container iframe {
    width: 100%;
    height: 100%;
    min-height: 520px;
    display: block;
    border: 0;
}

.game-frame-container:fullscreen {
    width: 100vw;
    height: 100vh;
}

.game-frame-container:fullscreen iframe {
    height: 100vh;
}

.mobile-ad {
    display: none;
}

.game-details-card {
    margin-top: 20px;
    padding: 26px;
    display: grid;
    grid-template-columns: 1fr 330px;
    gap: 40px;
    border: 1px solid var(--border);
    border-radius: 17px;
    background: #0f131b;
}

.game-details-card h2 {
    margin: 6px 0 10px;
    font-size: 21px;
}

.game-details-card p {
    margin: 0;
    color: #8c94a2;
    font-size: 12px;
    line-height: 1.7;
}

.game-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
}

.game-info-grid div {
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255,255,255,.02);
}

.game-info-grid span {
    display: block;
    color: #747c89;
    font-size: 9px;
}

.game-info-grid strong {
    margin-top: 5px;
    display: block;
    font-size: 11px;
}

.similar-grid {
    grid-template-columns: repeat(4, 1fr);
}

.admin-shell {
    max-width: 1250px;
    margin: 0 auto;
    padding: 55px 30px 90px;
}

.admin-title {
    margin-bottom: 30px;
}

.admin-title h1 {
    margin: 6px 0 9px;
    font-size: 36px;
    letter-spacing: -1.6px;
}

.admin-title p {
    color: #8e96a5;
}

.admin-grid {
    display: grid;
    grid-template-columns: 440px 1fr;
    gap: 22px;
    align-items: start;
}

.admin-card {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 17px;
    background: #0e1219;
}

.admin-card h2 {
    margin: 0 0 22px;
    font-size: 19px;
}

.admin-form {
    display: grid;
    gap: 14px;
}

.admin-form label {
    color: #9ba2ae;
    font-size: 11px;
    font-weight: 700;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
    width: 100%;
    margin-top: 7px;
    padding: 12px 13px;
    color: #fff;
    outline: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #151a23;
}

.admin-form textarea {
    resize: vertical;
}

.checkbox-row {
    display: flex;
    gap: 25px;
}

.checkbox-row label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.checkbox-row input {
    width: auto;
    margin: 0;
}

.notice {
    margin-bottom: 20px;
    padding: 13px 15px;
    border-radius: 10px;
    font-size: 12px;
}

.notice.success {
    color: #8ce4aa;
    background: rgba(71,215,122,.09);
    border: 1px solid rgba(71,215,122,.22);
}

.notice.error {
    color: #ff9ca7;
    background: rgba(255,90,107,.08);
    border: 1px solid rgba(255,90,107,.2);
}

.admin-list {
    display: grid;
}

.admin-list-row {
    padding: 15px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid var(--border);
}

.admin-list-row:last-child {
    border-bottom: 0;
}

.admin-list-row strong {
    display: block;
    font-size: 12px;
}

.admin-list-row span {
    margin-top: 5px;
    display: block;
    color: #737b88;
    font-size: 9px;
}

.admin-tags {
    display: flex;
    align-items: center;
    gap: 7px;
}

.admin-tags b {
    padding: 5px 7px;
    color: #15100a;
    background: var(--accent);
    border-radius: 6px;
    font-size: 8px;
}

.admin-tags small {
    color: #727a87;
    font-size: 9px;
}

@media (max-width: 1250px) {
    .game-layout {
        grid-template-columns: minmax(0, 1fr) 160px;
    }

    .left-ad {
        display: none;
    }

    .horizontal-games {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1080px) {
    .catalog-layout {
        grid-template-columns: 1fr;
    }

    .desktop-sidebar {
        display: none;
    }

    .featured-grid {
        grid-template-columns: 1.4fr 1fr;
    }

    .feature-card:nth-child(n+4) {
        display: none;
    }

    .game-layout {
        grid-template-columns: 1fr;
    }

    .right-ad {
        display: none;
    }

    .mobile-ad {
        display: block;
        margin-top: 18px;
    }

    .ad-mobile {
        width: min(320px, 100%);
        min-height: 100px;
        margin: auto;
    }

    .similar-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 760px) {
    .topbar-inner {
        padding: 12px 16px;
        flex-wrap: wrap;
        gap: 12px;
    }

    .nav {
        display: none;
    }

    .header-search {
        width: 100%;
        order: 3;
    }

    .page-shell {
        padding: 18px 14px 55px;
    }

    .ad-top {
        min-height: 70px;
    }

    .hero {
        min-height: 430px;
        background:
            linear-gradient(0deg, #080a0f 0%, rgba(8,10,15,.78) 46%, rgba(8,10,15,.18) 100%),
            var(--hero-image) center / cover no-repeat;
    }

    .hero-content {
        padding: 165px 27px 42px;
    }

    .hero h1 {
        font-size: 47px;
        letter-spacing: -2.6px;
    }

    .hero p {
        font-size: 14px;
    }

    .hero-stat {
        display: none;
    }

    .featured-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 260px 170px;
    }

    .feature-card-main {
        grid-column: 1 / span 2;
        grid-row: auto;
    }

    .feature-card:nth-child(n+4) {
        display: none;
    }

    .games-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 11px;
    }

    .section-title-row h2 {
        font-size: 23px;
    }

    .horizontal-games {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-links {
        flex-wrap: wrap;
    }

    .game-heading h1 {
        font-size: 25px;
    }

    .game-frame-container,
    .game-frame-container iframe {
        min-height: 400px;
    }

    .game-details-card {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .similar-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-shell {
        padding: 35px 14px 60px;
    }

    .admin-card {
        padding: 18px;
    }
}

@media (max-width: 470px) {
    .brand {
        font-size: 15px;
    }

    .brand-mark {
        width: 34px;
        height: 34px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .button {
        width: 100%;
    }

    .game-card-body {
        padding: 11px;
    }

    .game-card-title {
        font-size: 12px;
    }

    .game-frame-container,
    .game-frame-container iframe {
        min-height: 330px;
    }

    .game-info-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   FINAL ADMIN UI
========================================================= */

.admin-auth-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 50% 0%, rgba(255,179,24,.12), transparent 28%),
        #080a0f;
}

.auth-shell {
    min-height: 100vh;
    padding: 30px 16px;
    display: grid;
    place-items: center;
}

.auth-card {
    width: min(460px, 100%);
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(15,19,27,.95);
    box-shadow: 0 28px 80px rgba(0,0,0,.42);
}

.auth-brand {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 13px;
}

.auth-brand > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.auth-brand strong {
    font-size: 16px;
    font-weight: 900;
}

.auth-brand b {
    color: var(--accent);
}

.auth-brand span:last-child {
    color: #7f8795;
    font-size: 10px;
}

.auth-card h1 {
    margin: 0 0 8px;
    font-size: 28px;
    letter-spacing: -1px;
}

.auth-card > p {
    margin: 0 0 25px;
    color: #838b99;
    font-size: 12px;
    line-height: 1.6;
}

.auth-button {
    width: 100%;
    margin-top: 4px;
}

.auth-back {
    margin-top: 20px;
    display: block;
    color: #7f8795;
    text-align: center;
    font-size: 11px;
}

.admin-top-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 17px;
}

.admin-user {
    color: #6f7785;
    font-size: 10px;
}

.logout-link {
    color: #ff7b89;
    font-size: 11px;
    font-weight: 700;
}

.admin-dashboard-heading {
    margin-bottom: 26px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 25px;
}

.admin-dashboard-heading h1 {
    margin: 6px 0 7px;
    font-size: 38px;
    letter-spacing: -1.7px;
}

.admin-dashboard-heading p {
    margin: 0;
    color: #858d9b;
    font-size: 12px;
}

.admin-stats-grid {
    margin-bottom: 22px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.admin-stat-card {
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background:
        linear-gradient(145deg, rgba(255,255,255,.035), rgba(255,255,255,.015)),
        #0f131b;
}

.admin-stat-card span {
    color: #7b8391;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.admin-stat-card strong {
    margin-top: 9px;
    display: block;
    color: #fff;
    font-size: 30px;
    letter-spacing: -1.2px;
}

.sync-panel {
    margin-bottom: 22px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    border: 1px solid rgba(255,179,24,.18);
    border-radius: 17px;
    background:
        radial-gradient(circle at 90% 20%, rgba(255,179,24,.09), transparent 27%),
        #10141c;
}

.sync-panel h2 {
    margin: 6px 0 8px;
    font-size: 19px;
}

.sync-panel p {
    margin: 0;
    color: #7f8795;
    font-size: 11px;
    line-height: 1.65;
}

.sync-panel p strong {
    color: #c7ccd4;
}

.sync-form {
    display: flex;
    align-items: end;
    gap: 12px;
}

.sync-form label {
    color: #838b99;
    font-size: 9px;
    font-weight: 700;
}

.sync-form select {
    min-width: 170px;
    margin-top: 6px;
    padding: 12px 13px;
    color: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #181d26;
}

.admin-catalog-card {
    padding: 0;
    overflow: hidden;
}

.admin-catalog-header {
    padding: 22px 24px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 25px;
    border-bottom: 1px solid var(--border);
}

.admin-catalog-header h2 {
    margin: 5px 0 0;
}

.admin-search {
    display: flex;
    gap: 8px;
}

.admin-search input {
    width: 250px;
    padding: 10px 12px;
    color: #fff;
    outline: 0;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: #151a23;
}

.admin-search button {
    padding: 0 13px;
    color: #111;
    border: 0;
    border-radius: 9px;
    background: var(--accent);
    font-size: 10px;
    font-weight: 900;
    cursor: pointer;
}

.admin-game-list {
    display: grid;
}

.admin-game-row {
    padding: 13px 18px;
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr) auto;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid var(--border);
}

.admin-game-row:last-child {
    border-bottom: 0;
}

.admin-game-row > img {
    width: 78px;
object-fit: cover;
    border-radius: 9px;
    background: #1a1f28;
}

.admin-game-main {
    min-width: 0;
}

.admin-game-title-line {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.admin-game-title-line strong {
    font-size: 12px;
}

.admin-game-main > span {
    margin-top: 6px;
    display: block;
    color: #747c8a;
    font-size: 9px;
}

.source-badge,
.admin-badge {
    padding: 4px 6px;
    color: #17110a;
    background: var(--accent);
    border-radius: 5px;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: .5px;
}

.source-badge {
    color: #d7dce4;
    background: #252b36;
}

.admin-badge.featured {
    color: #fff;
    background: #7b5cff;
}

.admin-row-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.admin-row-actions form {
    margin: 0;
}

.small-action {
    padding: 7px 9px;
    color: #b9c0cb;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: #151a22;
    font-size: 9px;
    font-weight: 700;
    cursor: pointer;
}

.small-action:hover {
    color: #fff;
    border-color: rgba(255,179,24,.34);
}

.small-action.danger {
    color: #ff929d;
    background: rgba(255,90,107,.05);
}

.admin-narrow {
    max-width: 900px;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.admin-checkboxes {
    min-height: 67px;
    padding-top: 26px;
    align-items: center;
}

.form-actions {
    margin-top: 6px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.notice.warning {
    color: #ffd889;
    background: rgba(255,179,24,.08);
    border: 1px solid rgba(255,179,24,.22);
}

@media (max-width: 850px) {
    .admin-top-actions {
        width: 100%;
        margin-left: 0;
        order: 3;
        justify-content: space-between;
    }

    .admin-user {
        display: none;
    }

    .admin-dashboard-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sync-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .sync-form {
        align-items: stretch;
        flex-direction: column;
    }

    .sync-form select {
        width: 100%;
    }

    .admin-catalog-header {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-search input {
        width: 100%;
    }

    .admin-game-row {
        grid-template-columns: 65px minmax(0, 1fr);
    }

    .admin-game-row > img {
        width: 65px;
    }

    .admin-row-actions {
        grid-column: 1 / -1;
        padding-left: 80px;
    }
}

@media (max-width: 560px) {
    .auth-card {
        padding: 24px 18px;
    }

    .admin-stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .admin-stat-card {
        padding: 17px;
    }

    .admin-stat-card strong {
        font-size: 24px;
    }

    .admin-search {
        flex-direction: column;
    }

    .admin-search button {
        min-height: 40px;
    }

    .form-grid-2 {
        grid-template-columns: 1fr;
    }

    .admin-checkboxes {
        padding-top: 4px;
    }

    .form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .form-actions .button {
        width: 100%;
    }

    .admin-row-actions {
        padding-left: 0;
        flex-wrap: wrap;
    }
}


/* =========================================================
   GAMEMONETIZE 4:3 THUMBNAIL SYSTEM
   Ratio standard du catalogue : 4:3
   512x384, 800x600, etc.
========================================================= */

/* -------- Catalogue principal -------- */

.games-grid {
    align-items: start;
}

.game-card {
    display: block;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: var(--surface);
    transition:
        transform .22s ease,
        border-color .22s ease,
        box-shadow .22s ease;
}

.game-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,179,24,.42);
    box-shadow: 0 14px 38px rgba(0,0,0,.31);
}

.game-thumb {
    position: relative;
    width: 100%;
    height: 0;
    padding-top: 75%;
    overflow: hidden;
    background: #0d1118;
}

.game-thumb img {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;

    width: 100%;
    height: 100%;
    display: block;

    object-fit: cover;
    object-position: center;

    transform: none;
    transition: filter .2s ease;
}

.game-card:hover .game-thumb img {
    transform: none;
    filter: brightness(.94);
}

.hover-play {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;

    z-index: 3;

    display: grid;
    place-items: center;

    opacity: 0;

    background: rgba(5,7,11,.20);

    transition: opacity .2s ease;
}

.game-card:hover .hover-play {
    opacity: 1;
}

.hot-label {
    z-index: 4;
}

/* -------- Populaires -------- */

.feature-card {
    position: relative;
    min-height: 0;
    overflow: hidden;
}

.feature-media {
    position: relative;

    width: 100%;
    height: 0;
    padding-top: 75%;

    overflow: hidden;

    background: #0d1118;
}

.feature-media img {
    position: absolute;

    top: 0;
    right: 0;
    bottom: 0;
    left: 0;

    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;

    transform: none;
}

.feature-card:hover .feature-media img {
    transform: none;
    filter: brightness(.93);
}

/* -------- Nouveautés -------- */

.mini-game-card {
    grid-template-columns: 72px minmax(0, 1fr) 30px;
}

.mini-game-thumb {
    position: relative;

    width: 72px;
    height: 54px;

    overflow: hidden;

    border-radius: 10px;

    background: #0d1118;
}

.mini-game-thumb img {
    position: absolute;

    top: 0;
    right: 0;
    bottom: 0;
    left: 0;

    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;
}

/* -------- Admin -------- */

.admin-game-row > img {
    width: 78px;
    height: 59px;

    object-fit: cover;
    object-position: center;

    background: #1a1f28;
}

/* -------- Responsive -------- */

@media (max-width: 760px) {
    .mini-game-card {
        grid-template-columns: 66px minmax(0, 1fr) 30px;
    }

    .mini-game-thumb {
        width: 66px;
        height: 50px;
    }
}

@media (max-width: 470px) {
    .game-card:hover {
        transform: none;
    }
}


/* =========================================================
   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;
    }
}