        #install-btn {
            cursor: pointer;
        }

        #pwa-feedback {
            display: none;
            position: fixed;
            left: 50%;
            transform: translateX(-50%);
            bottom: 24px;
            max-width: min(92vw, 22rem);
            padding: 12px 16px;
            background: #1e1e1e;
            color: #fff;
            border-radius: 8px;
            font-size: 14px;
            line-height: 1.4;
            z-index: 2147483646;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
        }

        #pwa-feedback.pwa-feedback--show {
            display: block;
        }

        /* Full-screen overlay + centered spinner (not bottom toast) */

        #pwa-feedback.pwa-feedback--loading,
        #pwa-feedback.pwa-feedback--guide {
            display: block;
            position: fixed;
            inset: 0;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            max-width: none;
            transform: none;
            margin: 0;
            padding: 0;
            background: transparent;
            box-shadow: none;
            border-radius: 0;
            pointer-events: auto;
        }

        #pwa-feedback.pwa-feedback--loading .pwa-feedback__backdrop,
        #pwa-feedback.pwa-feedback--guide .pwa-feedback__backdrop {
            position: absolute;
            inset: 0;
            background: rgba(0, 0, 0, 0.45);
        }

        #pwa-feedback.pwa-feedback--loading .pwa-feedback__loadingPanel {
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            padding: 20px;
            border-radius: 12px;
            background: #1e1e1e;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
            pointer-events: none;
        }

        #pwa-feedback .pwa-feedback__spinner {
            display: block;
            width: 36px;
            height: 36px;
            border: 3px solid rgba(255, 255, 255, 0.2);
            border-top-color: #fff;
            border-radius: 50%;
            animation: pwa-feedback-spin 0.65s linear infinite;
        }

        @keyframes pwa-feedback-spin {
            to {
                transform: rotate(360deg);
            }
        }

        #pwa-feedback.pwa-feedback--guide .pwa-feedback__guidePanel {
            position: absolute;
            left: 50%;
            bottom: max(18px, env(safe-area-inset-bottom));
            transform: translateX(-50%);
            width: min(92vw, 390px);
            background: #fff;
            color: #071733;
            border-radius: 18px;
            box-shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
            padding: 18px;
        }

        .pwa-feedback__guideTop {
            align-items: flex-start;
            display: flex;
            gap: 12px;
            margin-bottom: 14px;
        }

        .pwa-feedback__guideIcon {
            align-items: center;
            background: #e9f7f2;
            border-radius: 12px;
            color: #00865f;
            display: flex;
            flex: 0 0 42px;
            font-size: 22px;
            font-weight: 800;
            height: 42px;
            justify-content: center;
            line-height: 1;
            width: 42px;
        }

        .pwa-feedback__guideTitle {
            color: #071733;
            font-size: 18px;
            font-weight: 800;
            line-height: 1.22;
            margin: 0 34px 4px 0;
        }

        .pwa-feedback__guideText {
            color: #58667a;
            font-size: 13px;
            line-height: 1.45;
            margin: 0;
        }

        .pwa-feedback__guideClose {
            align-items: center;
            background: #eef3f6;
            border: 0;
            border-radius: 50%;
            color: #334155;
            cursor: pointer;
            display: flex;
            font-size: 22px;
            height: 32px;
            justify-content: center;
            line-height: 1;
            padding: 0 0 2px;
            position: absolute;
            right: 14px;
            top: 14px;
            width: 32px;
        }

        .pwa-feedback__guideSteps {
            display: grid;
            gap: 10px;
            margin: 0 0 14px;
            padding: 0;
        }

        .pwa-feedback__guideStep {
            align-items: flex-start;
            background: #f5f8fa;
            border: 1px solid #e1e8ee;
            border-radius: 12px;
            display: flex;
            gap: 10px;
            padding: 11px 12px;
        }

        .pwa-feedback__guideNum {
            align-items: center;
            background: #00865f;
            border-radius: 50%;
            color: #fff;
            display: flex;
            flex: 0 0 24px;
            font-size: 13px;
            font-weight: 800;
            height: 24px;
            justify-content: center;
            width: 24px;
        }

        .pwa-feedback__guideStepText {
            color: #29364a;
            font-size: 13px;
            line-height: 1.42;
        }

        .pwa-feedback__guideHint {
            color: #6b7788;
            font-size: 12px;
            line-height: 1.45;
            margin: 0;
        }

        @media (max-width: 360px) {
            #pwa-feedback.pwa-feedback--guide .pwa-feedback__guidePanel {
                border-radius: 16px;
                padding: 16px;
            }

            .pwa-feedback__guideTitle {
                font-size: 16px;
            }
        }

        /* READY_PROMPT state: show "Tap to Install" button */

        .container[data-type="READY_PROMPT"] .install-btn__ready {
            display: flex !important;
        }

        .container[data-type="READY_PROMPT"] .install-btn__install,
        .container[data-type="READY_PROMPT"] .install-btn__ing,
        .container[data-type="READY_PROMPT"] .install-btn__play {
            display: none !important;
        }

        .install-btn__ready {
            display: none;
            background: var(--theme-color);
            color: #fff;
            justify-content: center;
            align-items: center;
            border-radius: 8px;
            font-size: 15px;
            font-weight: 600;
            height: 54px;
            width: 100%;
        }

        /* INSTALLING_WAIT state: show disabled "Installing..." button */

        .container[data-type="INSTALLING_WAIT"] .install-btn__installing {
            display: flex !important;
        }

        .container[data-type="INSTALLING_WAIT"] .install-btn__install,
        .container[data-type="INSTALLING_WAIT"] .install-btn__ing,
        .container[data-type="INSTALLING_WAIT"] .install-btn__play,
        .container[data-type="INSTALLING_WAIT"] .install-btn__ready {
            display: none !important;
        }

        .install-btn__installing {
            display: none;
            background: #555;
            color: #aaa;
            justify-content: center;
            align-items: center;
            border-radius: 8px;
            font-size: 15px;
            font-weight: 600;
            height: 54px;
            width: 100%;
            cursor: not-allowed;
            pointer-events: none;
        }

        html {
            min-height: 100%;
            background-color: #0d1215;
            background-image:
                radial-gradient(circle at 16% 8%, rgba(0, 151, 108, 0.2), transparent 32%),
                radial-gradient(circle at 88% 92%, rgba(255, 183, 65, 0.18), transparent 34%),
                linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
            background-size: auto, auto, 30px 30px, 30px 30px;
            width: 100%;
        }

        body {
            align-items: center;
            background-color: #0d1215;
            background-image:
                radial-gradient(circle at 16% 8%, rgba(0, 151, 108, 0.2), transparent 32%),
                radial-gradient(circle at 88% 92%, rgba(255, 183, 65, 0.18), transparent 34%),
                linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
            background-size: auto, auto, 30px 30px, 30px 30px;
            box-sizing: border-box;
            display: flex;
            justify-content: center;
            margin: 0 !important;
            max-width: none !important;
            min-height: 100dvh;
            padding: 34px 18px;
            width: 100% !important;
        }

        .container {
            background: linear-gradient(180deg, #ffffff 0%, #f6f8fb 100%);
            border: 1px solid rgba(255, 255, 255, 0.68);
            border-radius: 20px;
            box-shadow: 0 28px 90px rgba(0, 0, 0, 0.46), 0 24px 58px rgba(1, 135, 95, 0.18);
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            margin: 0 auto;
            max-width: 640px;
            min-height: 0;
            overflow: hidden;
            padding: 46px 46px 34px;
            position: relative;
            width: min(100%, 640px);
        }

        .container::before {
            background: linear-gradient(90deg, #00a77b, #0b7259, #f5b63f);
            content: "";
            height: 6px;
            left: 0;
            position: absolute;
            right: 0;
            top: 0;
        }

        .header {
            align-items: center;
            display: flex;
            margin-bottom: 32px;
            min-height: 94px;
            text-align: left;
        }

        [dir=ltr] .header__icon {
            margin-right: 24px;
        }

        .header__icon {
            flex: 0 0 88px;
            height: 88px;
            overflow: visible;
            width: 88px;
        }

        .header__icon--img {
            background: #151515;
            border-radius: 20%;
            box-shadow: 0 20px 32px rgba(0, 0, 0, 0.18);
            height: 88px !important;
            object-fit: contain;
            overflow: visible;
            width: 88px !important;
        }

        .header__icon--loading {
            pointer-events: none;
        }

        .container:not(.container--landing-page)[data-type="INSTALLING"] .header__icon--img,
        .container:not(.container--landing-page)[data-type="PLAY"] .header__icon--img {
            height: 88px !important;
            object-fit: contain;
            width: 88px !important;
        }

        .container:not(.container--landing-page)[data-type="INSTALLING"] .header__icon--loading {
            height: 96px;
            left: -4px;
            top: -4px;
            width: 96px;
        }

        .header__info {
            flex: 1;
            min-width: 0;
            width: auto;
        }

        .header__info-title {
            align-items: center;
            display: flex;
            min-height: 0;
        }

        .header__info-title span[data-value="app_name"] {
            color: #071733;
            font-size: 36px;
            font-weight: 800;
            line-height: 1.05;
        }

        .header__info-title-tag {
            display: inline-block;
            flex: 0 0 20px;
            height: 20px;
            margin-left: 8px;
            width: 20px;
        }

        .header__info-description {
            color: #00865f;
            font-size: 17px;
            font-weight: 800;
            line-height: 1.35;
            margin: 9px 0 4px;
        }

        .header__info-progress {
            color: #071733;
            font-size: 14px;
            line-height: 1.35;
        }

        #installLineHint {
            color: #465568 !important;
            font-size: 13px !important;
            font-weight: 500 !important;
            margin-top: 3px !important;
        }

        .header__info-play {
            align-items: center;
            color: #617086;
            display: flex;
            font-size: 12px;
            gap: 6px;
            height: auto;
            line-height: 1.3;
            margin-top: 10px;
        }

        .header__info-play .security-icon {
            height: 12px;
            width: 12px;
        }

        [dir=ltr] .header__info-play .security-icon {
            margin-right: 0;
        }

        .info {
            display: block;
            margin-bottom: 18px;
        }

        .info__view__wrap {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            width: 100%;
        }

        .info__view {
            align-items: center;
            display: flex;
            flex-direction: column;
            min-width: 0;
            padding: 2px 12px;
            text-align: center;
        }

        .info__view + .info__view {
            border-left: 1px solid #d9dfe8;
        }

        .info__view:before {
            display: none;
        }

        .info__view-value {
            align-items: center;
            color: #071733;
            display: flex;
            font-size: 17px;
            font-weight: 800;
            gap: 4px;
            justify-content: center;
            line-height: 1.2;
            min-height: 22px;
        }

        .info__view-label {
            color: #617086;
            font-size: 12px;
            line-height: 1.25;
            margin-top: 6px;
            white-space: normal;
        }

        .rating-star {
            height: 13px;
            width: 13px;
        }

        .stat-shield {
            height: 19px;
            width: 19px;
        }

        .install-hook {
            background: linear-gradient(135deg, rgba(3, 149, 104, 0.1), rgba(7, 23, 51, 0.04));
            border: 1px solid rgba(3, 149, 104, 0.16);
            border-radius: 14px;
            margin-bottom: 20px;
            padding: 12px 14px;
        }

        .install-hook__title {
            color: #00795a;
            font-size: 15px;
            font-weight: 800;
            line-height: 1.25;
            margin: 0 0 4px;
        }

        .install-hook__text {
            color: #556276;
            font-size: 12.5px;
            font-weight: 500;
            line-height: 1.45;
            margin: 0;
        }

        .install-btn {
            height: 70px;
            margin-bottom: 28px;
        }

        .install-btn,
        .install-btn__ing,
        .install-btn__view {
            height: 70px;
        }

        .install-btn__ing,
        .install-btn__view,
        .install-btn__ready,
        .install-btn__installing {
            border-radius: 8px;
        }

        .install-btn__ing,
        .install-btn__view {
            background: #039568;
            box-shadow: 0 18px 36px rgba(3, 149, 104, 0.28);
        }

        .install-btn__ing__rapid {
            color: #fff;
            font-size: 18px;
            font-weight: 800;
            line-height: 1.1;
        }

        .install-btn__ing__rapid .install-lightning {
            display: block;
            filter: saturate(1.3);
            height: 18px;
            width: 18px;
        }

        .install-btn__ing__countdown {
            color: #ecfff8;
            font-size: 14px;
            font-weight: 700;
            margin-top: 2px;
        }

        .share-row {
            align-items: center;
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            justify-content: stretch;
            margin-bottom: 0;
            min-height: 42px;
            padding-top: 2px;
        }

        .share-row__item {
            align-items: center;
            display: flex;
            justify-content: center;
            margin: 0;
            min-width: 0;
        }

        .share-row__item>img {
            flex: 0 0 18px;
            height: 18px;
            width: 18px;
        }

        [dir=ltr] .share-row__item>img {
            margin-right: 10px;
        }

        .share-row__item>div {
            color: #00795a;
            flex: 0 1 auto;
            font-size: 15px;
            font-weight: 800;
            overflow: visible;
            white-space: nowrap;
        }

        @media (max-width: 520px) {
            body {
                align-items: center;
                display: flex;
                justify-content: center;
                padding: 14px 12px 24px;
            }

            .container {
                border: 1px solid rgba(255, 255, 255, 0.72);
                border-radius: 24px;
                box-shadow: 0 18px 56px rgba(0, 0, 0, 0.42);
                justify-content: flex-start;
                max-width: 420px;
                min-height: 0;
                padding: 34px 20px 24px;
                transform: translateY(-8vh);
                width: 100%;
            }

            .header {
                align-items: center;
                margin-bottom: 24px;
                min-height: 78px;
            }

            [dir=ltr] .header__icon {
                margin-right: 15px;
            }

            .header__icon,
            .header__icon--img {
                flex-basis: 74px;
                height: 74px !important;
                width: 74px !important;
            }

            .container:not(.container--landing-page)[data-type="INSTALLING"] .header__icon--img,
            .container:not(.container--landing-page)[data-type="PLAY"] .header__icon--img {
                height: 74px !important;
                object-fit: contain;
                width: 74px !important;
            }

            .container:not(.container--landing-page)[data-type="INSTALLING"] .header__icon--loading {
                height: 82px;
                left: -4px;
                top: -4px;
                width: 82px;
            }

            .header__info-title span[data-value="app_name"] {
                font-size: 29px;
            }

            .header__info-description {
                font-size: 15px;
                margin-top: 6px;
            }

            .header__info-play {
                margin-top: 7px;
            }

            .info {
                margin-bottom: 16px;
            }

            .info__view__wrap {
                gap: 0;
                grid-template-columns: repeat(4, minmax(0, 1fr));
            }

            .info__view {
                background: transparent;
                border: 0;
                border-radius: 0;
                padding: 0 5px;
            }

            .info__view + .info__view {
                border-left: 1px solid #d9dfe8;
            }

            .info__view-value {
                font-size: 16px;
            }

            .info__view-label {
                font-size: 11px;
            }

            .install-hook {
                border-radius: 13px;
                margin-bottom: 18px;
                padding: 11px 12px;
            }

            .install-hook__title {
                font-size: 14px;
            }

            .install-hook__text {
                font-size: 12px;
            }

            .install-btn,
            .install-btn__ing,
            .install-btn__view {
                height: 66px;
            }

            .install-btn {
                margin-bottom: 22px;
            }

            .install-btn__ing__rapid {
                font-size: 17px;
            }

            .install-btn__ing__countdown {
                font-size: 13px;
            }

            .share-row {
                min-height: 36px;
                padding-top: 0;
            }

            .share-row__item>div {
                font-size: 14px;
            }
        }

        @media (max-height: 620px) {
            body {
                align-items: flex-start;
            }

            .container {
                transform: none;
            }
        }

        @media (max-width: 360px) {
            body {
                padding-top: 14px;
            }

            .container {
                border-radius: 20px;
                padding-left: 16px;
                padding-right: 16px;
            }

            .header__info-title span[data-value="app_name"] {
                font-size: 25px;
            }

            .header__icon,
            .header__icon--img {
                flex-basis: 66px;
                height: 66px !important;
                width: 66px !important;
            }

            .container:not(.container--landing-page)[data-type="INSTALLING"] .header__icon--loading {
                height: 74px;
                width: 74px;
            }
        }

        @media (max-width: 320px) {
            .info__view__wrap {
                gap: 10px;
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }

            .info__view {
                background: #f1f5f8;
                border: 1px solid #e1e8ee;
                border-radius: 12px;
                padding: 12px 8px;
            }

            .info__view + .info__view {
                border-left: 1px solid #e1e8ee;
            }
        }

