* {
            box-sizing: border-box;
        }

        html,
        body {
            margin: 0;
            padding: 0;
            overflow-x: hidden;
        }

        body {
            background: #f4f7fb;
            color: #172033;
            font-family: Arimo, Arial, sans-serif;
            direction: rtl;
        }

        a {
            color: #0868c9;
        }

        .mobile-game-page {
            width: 100%;
            max-width: 560px;
            min-height: 100vh;
            margin: 0 auto;
            background: #ffffff;
            box-shadow: 0 0 24px rgba(31, 53, 82, 0.08);
        }

        .logo-only-row {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            min-height: 54px;
            padding: 3px 10px;
            background: #6cbbfe;
            border-bottom: 1px solid #55a8ef;
        }

        .header-logo-link {
            display: block;
            max-width: 92%;
            line-height: 0;
        }

        #logo {
            display: block;
            width: auto;
            max-width: 100%;
            max-height: 48px;
            height: auto;
            margin: 0 auto;
            border: 0;
        }

        .game-title {
            margin: 0 0 10px;
            color: #163f6e;
            font-size: 21px;
            line-height: 1.25;
        }

        .ad-area {
            width: 100%;
            padding: 8px 5px;
            text-align: center;
            overflow: hidden;
        }

        .top-ad {
            display: block;
            width: 100%;
        }

        .game-card {
            width: calc(100% - 54px);
            max-width: 365px;
            margin: 5px auto 7px;
            padding: 14px 12px 13px;
            text-align: center;
            background: #ffffff;
            border: 1px solid #dce6f1;
            border-radius: 15px;
            box-shadow: 0 5px 17px rgba(35, 74, 118, 0.10);
        }

        .main-game-image {
            display: block;
            width: 145px;
            height: 145px;
            max-width: 52vw;
            max-height: 52vw;
            margin: 0 auto;
            border: 1px solid #d6e1ed;
            border-radius: 12px;
            box-shadow: 0 4px 11px rgba(33, 82, 145, 0.16);
        }

        .play-button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 7px;
            width: 205px;
            max-width: 78%;
            margin: 13px auto 4px;
            padding: 10px 13px;
            color: #ffffff;
            background: linear-gradient(#1789ed, #086dc9);
            border-radius: 10px;
            box-shadow: 0 3px 0 #06569d, 0 6px 13px rgba(4, 84, 160, 0.18);
            font-size: 19px;
            font-weight: 700;
            text-decoration: none;
        }

        .play-icon {
            font-size: 17px;
            line-height: 1;
        }

        .play-button:active {
            transform: translateY(3px);
            box-shadow: 0 1px 0 #06569d, 0 3px 8px rgba(4, 84, 160, 0.18);
        }

        .content-section {
            padding: 18px;
            border-top: 1px solid #edf2f7;
        }

        .content-section h2,
        .games-section h2 {
            margin: 0 0 11px;
            color: #183f6b;
            font-size: 21px;
            line-height: 1.3;
        }

        .content-section p,
        .description-content {
            margin: 0;
            color: #4d5d70;
            font-size: 15px;
            line-height: 1.7;
        }

        .description-content:empty {
            display: none;
        }

        .generic-game-text {
            margin-top: 14px;
        }

        .description-row {
            position: relative;
            width: 348px;
            max-width: calc(100% - 28px);
            margin: 5px auto 4px;
            padding-left: 48px;
        }

        .game-description {
            width: 100%;
            margin: 0;
            overflow: hidden;
            background: #ffffff;
            border: 1px solid #dce6f1;
            border-radius: 9px;
        }

        .share-button {
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            padding: 0;
            color: #ffffff;
            background: #0a72cf;
            border: 1px solid #0a72cf;
            border-radius: 10px;
            box-shadow: 0 2px 7px rgba(29, 82, 137, 0.18);
            cursor: pointer;
        }

        .share-button:active {
            transform: translateY(-50%) scale(0.96);
        }

        .share-button svg {
            width: 21px;
            height: 21px;
            fill: currentColor;
        }

        .game-description summary {
            position: relative;
            padding: 9px 13px;
            color: #183f6b;
            font-size: 14px;
            font-weight: 700;
            cursor: pointer;
            list-style: none;
        }

        .game-description summary::-webkit-details-marker {
            display: none;
        }

        .game-description summary:after {
            content: "+";
            position: absolute;
            left: 9px;
            top: 50%;
            transform: translateY(-50%);
            display: flex;
            align-items: center;
            justify-content: center;
            width: 24px;
            height: 24px;
            color: #ffffff;
            background: #0a72cf;
            border-radius: 50%;
            font-size: 20px;
            font-weight: 900;
            line-height: 1;
        }

        .game-description[open] summary:after {
            content: "-";
        }

        .game-description .description-content {
            padding: 1px 13px 12px;
            font-size: 14px;
            line-height: 1.6;
        }

        .games-section {
            padding: 18px 12px 20px;
            border-top: 1px solid #edf2f7;
            background: #fbfdff;
        }

        .games-section h2 {
            text-align: center;
        }

        .similar-games-section {
            padding-top: 6px;
            margin-top: 0;
        }

        .similar-games-section h2,
        .popular-games-section h2 {
            margin-bottom: 7px;
            font-size: 14px;
            font-weight: 700;
        }

        .similar-games-section .gamepic {
            width: 96px;
            height: 96px;
        }

        .popular-games-section .gamepic {
            width: 92px;
            height: 92px;
        }

        .games-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 14px 9px;
        }

        .game-item {
            min-width: 0;
            text-align: center;
        }

        .game-item a {
            display: block;
            color: #205f9d;
            font-size: 13px;
            font-weight: 700;
            line-height: 1.25;
            text-decoration: none;
        }

        .gamepic {
            display: block;
            width: 78px;
            height: 78px;
            max-width: 100%;
            margin: 0 auto 6px;
            border: 1px solid rgba(44, 79, 115, 0.14);
            border-radius: 10px;
            box-shadow: 0 3px 8px rgba(36, 69, 105, 0.11);
        }

        .middle-ad {
            display: inline-block;
            width: 300px;
            height: 250px;
            max-width: 100%;
        }

        .more-games-wrap {
            margin-top: 17px;
            text-align: center;
        }

        .more-games {
            display: inline-block;
            padding: 10px 18px;
            color: #0969c2;
            background: #ffffff;
            border: 1px solid #bdd5ec;
            border-radius: 10px;
            font-size: 15px;
            font-weight: 700;
            text-decoration: none;
        }

        .desktop-message {
            width: calc(100% - 28px);
            margin: 12px auto 20px;
            padding: 18px;
            text-align: center;
            background: #ffffff;
            border: 1px solid #dce6f1;
            border-radius: 16px;
            box-shadow: 0 6px 18px rgba(35, 74, 118, 0.09);
        }

        .desktop-message p {
            margin: 0 0 14px;
            color: #4d5d70;
            font-size: 15px;
            line-height: 1.6;
        }

        .desktop-message img {
            display: block;
            width: 100%;
            max-width: 500px;
            height: auto;
            margin: 0 auto;
            border-radius: 12px;
        }

        .tags {
            display: flex;
            flex-wrap: wrap;
            gap: 7px;
            margin-top: 12px;
        }

        .tag {
            display: inline-block;
            padding: 6px 10px;
            color: #2265a3;
            background: #f7faff;
            border: 1px solid #dce7f2;
            border-radius: 999px;
            font-size: 13px;
            text-decoration: none;
        }

        .error-box {
            width: calc(100% - 28px);
            max-width: 500px;
            margin: 20px auto;
            padding: 22px;
            text-align: center;
            background: #ffffff;
            border: 1px solid #e1e7ee;
            border-radius: 14px;
            box-shadow: 0 5px 16px rgba(31, 53, 82, 0.08);
        }

        @media (max-width: 360px) {
            .content-section {
                padding-right: 14px;
                padding-left: 14px;
            }

            .games-grid {
                gap: 12px 7px;
            }

            .game-item a {
                font-size: 12px;
            }

            .gamepic {
                border-radius: 12px;
            }
        }
