/* Win88 - Google Play Store style landing (mobile-first) */

:root {
    --ps-green: #01875f;
    --ps-green-dark: #01684a;
    --ps-text: #1f1f1f;
    --ps-muted: #5f6368;
    --ps-divider: #dadce0;
    --ps-bg: #ffffff;
    --ps-blue: #1a73e8;
}

* { box-sizing: border-box; }

.ps-body {
    margin: 0;
    background: var(--ps-bg);
    color: var(--ps-text);
    font-family: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    line-height: 1.4;
}

.ps-search.hidden { display: none; }
.ps-search {
    width: 100%;
    border: 0;
    border-bottom: 1px solid var(--ps-divider);
    padding: 12px 16px;
    font: inherit;
    font-size: 15px;
    outline: none;
    background: #f1f3f4;
}

/* ---- Top bar ---- */
.ps-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 56px;
    padding: 0 8px;
    background: var(--ps-bg);
    border-bottom: 1px solid var(--ps-divider);
}
.ps-topbar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border: 0;
    background: transparent;
    color: var(--ps-text);
    cursor: pointer;
    border-radius: 50%;
}
.ps-topbar-btn:hover { background: #f1f3f4; }
.ps-topbar-btn svg { width: 22px; height: 22px; }
.ps-topbar-title {
    font-size: 20px;
    font-weight: 500;
    color: var(--ps-text);
    text-transform: lowercase;
}
.ps-topbar-spacer { flex: 1; }
.ps-topbar-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0b3d91, #072363);
    color: #ffe14d;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 0 0 2px rgba(255,225,77,.35);
}

/* ---- Tabs ---- */
.ps-tabs {
    display: flex;
    gap: 24px;
    padding: 12px 16px 8px;
    border-bottom: 1px solid var(--ps-divider);
    overflow-x: auto;
    scrollbar-width: none;
}
.ps-tabs::-webkit-scrollbar { display: none; }
.ps-tab {
    border: 0;
    background: transparent;
    color: var(--ps-muted);
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 4px;
    cursor: pointer;
    white-space: nowrap;
    border-radius: 999px;
}
.ps-tab--active {
    background: #e6f4ea;
    color: var(--ps-green-dark);
    padding: 8px 16px;
}

/* ---- Main container ---- */
.ps-main {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 16px 40px;
}

/* ---- App head ---- */
.ps-app-head {
    display: flex;
    gap: 16px;
    padding: 20px 0 16px;
    align-items: center;
}
.ps-app-icon {
    width: 80px; height: 80px;
    border-radius: 18px;
    object-fit: cover;
    background: #0b3d91;
    flex: 0 0 auto;
}
.ps-app-meta { min-width: 0; }
.ps-app-name {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 700;
    color: var(--ps-text);
    overflow: hidden;
    text-overflow: ellipsis;
}
.ps-app-link {
    margin: 0 0 2px;
    font-size: 13px;
    color: var(--ps-blue);
    font-weight: 500;
    word-break: break-all;
}
.ps-app-sub {
    margin: 0;
    font-size: 13px;
    color: var(--ps-muted);
}
.ps-app-head--bottom {
    padding-top: 8px;
    margin-top: 4px;
    border-top: 1px solid var(--ps-divider);
}
.ps-app-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 2px 0 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--ps-text);
}
.ps-star { width: 14px; height: 14px; color: #000; flex: 0 0 auto; }

/* ---- Stats ---- */
.ps-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--ps-divider);
}
.ps-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
}
.ps-stat-value { font-size: 16px; font-weight: 700; color: var(--ps-text); }
.ps-stat-label { font-size: 11px; color: var(--ps-muted); }
.ps-stat-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    border: 2px solid var(--ps-text);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ps-text);
}
.ps-stat-divider {
    width: 1px;
    align-self: stretch;
    background: var(--ps-divider);
    margin: 4px 0;
}

/* ---- Install button ---- */
.ps-install {
    width: 100%;
    margin: 18px 0 6px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: var(--ps-green);
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .4px;
    cursor: pointer;
    text-transform: uppercase;
    transition: background .15s ease;
}
.ps-install:hover { background: var(--ps-green-dark); }
.ps-install:disabled { background: #9aa0a6; cursor: default; }
.ps-install.is-installed { background: #e6f4ea; color: var(--ps-green-dark); text-transform: none; }
.ps-install-hint {
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--ps-muted);
    text-align: center;
}
.ps-install-hint.hidden { display: none; }

/* ---- Screenshots ---- */
.ps-shots { padding: 14px 0 4px; }
.ps-shots-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 6px;
}
.ps-shots-track::-webkit-scrollbar { display: none; }
.ps-shot { flex: 0 0 auto; width: 170px; margin: 0; }
.ps-shot-title {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--ps-text);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ps-shot-frame {
    width: 170px;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    background: #f1f3f4;
    border: 1px solid var(--ps-divider);
}
.ps-shot-frame img { width: 100%; height: 100%; object-fit: cover; }

/* ---- About ---- */
.ps-about { padding: 18px 0 8px; border-bottom: 1px solid var(--ps-divider); }
.ps-about-title { font-size: 16px; font-weight: 600; margin: 0 0 8px; }
.ps-about-text {
    margin: 0;
    font-size: 14px;
    color: var(--ps-text);
    line-height: 1.6;
}

/* ---- Promo banner ---- */
.ps-promo {
    position: relative;
    margin: 18px 0;
    border-radius: 16px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255,255,255,.06) 25%, transparent 25%) 0 0/22px 22px,
        linear-gradient(225deg, rgba(255,255,255,.06) 25%, transparent 25%) 0 0/22px 22px,
        linear-gradient(45deg, rgba(255,255,255,.06) 25%, transparent 25%) 11px 11px/22px 22px,
        linear-gradient(315deg, rgba(255,255,255,.06) 25%, transparent 25%) 11px 11px/22px 22px,
        linear-gradient(160deg, #0b1b3a, #112a5c 60%, #0b3d91);
    color: #fff;
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 150px;
}
.ps-promo-badge {
    position: absolute;
    top: 14px; right: 16px;
    background: #ffd54f;
    color: #0b1b3a;
    font-weight: 700;
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 999px;
}
.ps-promo-inner { position: relative; z-index: 2; max-width: 80%; }
.ps-promo-title {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.15;
    color: #ffe14d;
    text-shadow: 0 1px 2px rgba(0,0,0,.4);
}
.ps-promo-sub {
    margin: 8px 0 0;
    display: inline-block;
    background: #1a73e8;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    align-self: flex-start;
}
.ps-promo-img {
    position: absolute;
    right: 0; bottom: 0;
    max-height: 130px;
    max-width: 45%;
    object-fit: contain;
    z-index: 1;
}
/* Full-banner mode (image with baked-in text, no overlay) */
.ps-promo--banner {
    background: none;
    padding: 0;
}
.ps-promo--banner .ps-promo-img {
    position: static;
    width: 100%;
    max-width: 100%;
    max-height: none;
    height: auto;
    display: block;
    border-radius: 16px;
}

/* ---- Nav list ---- */
.ps-navlist {
    margin: 8px 0 16px;
    border-top: 1px solid var(--ps-divider);
}
.ps-navlink {
    display: block;
    padding: 14px 4px;
    color: var(--ps-text);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
}
.ps-navlink:hover { background: #f8f9fa; }
.ps-navheader {
    padding: 14px 4px 8px;
    margin-top: 4px;
    border-top: 1px solid var(--ps-divider);
    color: var(--ps-muted);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .2px;
}

/* ---- Push opt-in ---- */
.ps-push {
    width: 100%;
    margin: 8px 0 18px;
    height: 40px;
    border: 1px solid var(--ps-divider);
    border-radius: 999px;
    background: #fff;
    color: var(--ps-text);
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.ps-push:hover { background: #f8f9fa; }
.ps-push-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: #dadce0;
    box-shadow: 0 0 0 0 rgba(1,135,95,.5);
}
.ps-push.is-on .ps-push-dot {
    background: var(--ps-green);
    animation: ps-pulse 1.8s infinite;
}
.ps-push.is-on .ps-push-label::before { content: ""; }
@keyframes ps-pulse {
    0% { box-shadow: 0 0 0 0 rgba(1,135,95,.5); }
    70% { box-shadow: 0 0 0 8px rgba(1,135,95,0); }
    100% { box-shadow: 0 0 0 0 rgba(1,135,95,0); }
}

/* ---- Footer ---- */
.ps-footer { margin-top: 12px; border-top: 1px solid var(--ps-divider); padding-top: 14px; }
.ps-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-bottom: 14px;
}
.ps-footer-links a {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    color: var(--ps-muted);
    text-decoration: none;
}
.ps-footer-links a:hover { color: var(--ps-text); }
.ps-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.ps-footer-url { font-size: 12px; color: var(--ps-muted); text-decoration: none; display: inline-flex; align-items: center; }
.ps-footer-url:hover { color: var(--ps-text); }
.ps-footer-locale {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--ps-muted);
}
.ps-flag { width: 20px; height: 14px; border-radius: 2px; border: 1px solid var(--ps-divider); }

/* Utility (fallback if Tailwind .hidden is absent) */
.hidden { display: none !important; }

/* Notification prompt modal (Android landing) */
.ps-modal {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(0,0,0,.45);
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
    -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.ps-modal-card {
    width: 100%; max-width: 360px;
    background: var(--ps-bg);
    border-radius: 18px; padding: 22px 20px 18px;
    text-align: center; box-shadow: 0 12px 40px rgba(0,0,0,.25);
    animation: ps-modal-in .22s ease;
}
@keyframes ps-modal-in { from { transform: translateY(12px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
.ps-modal-icon {
    width: 56px; height: 56px; margin: 0 auto 12px;
    border-radius: 50%; background: #e8f0fe;
    display: flex; align-items: center; justify-content: center;
}
.ps-modal-card h3 { margin: 0 0 6px; font-size: 18px; color: var(--ps-text); }
.ps-modal-text { margin: 0 0 18px; font-size: 14px; line-height: 1.5; color: var(--ps-muted); }
.ps-modal-actions { display: flex; gap: 10px; }
.ps-modal-btn {
    flex: 1 1 0; padding: 12px 14px; border-radius: 999px; border: 1px solid var(--ps-divider);
    font-size: 14px; font-weight: 700; cursor: pointer; background: var(--ps-bg); color: var(--ps-text);
}
.ps-modal-btn--ghost { background: transparent; color: var(--ps-muted); }
.ps-modal-btn--primary { background: var(--ps-blue); color: #fff; border-color: var(--ps-blue); }

/* Desktop: center the phone-width column */
@media (min-width: 600px) {
    .ps-topbar > * { /* keep */ }
    .ps-body { background: #f1f3f4; }
    .ps-topbar { max-width: 480px; margin: 0 auto; border-left: 1px solid var(--ps-divider); border-right: 1px solid var(--ps-divider); }
    .ps-tabs { max-width: 480px; margin: 0 auto; border-left: 1px solid var(--ps-divider); border-right: 1px solid var(--ps-divider); }
    .ps-main { background: var(--ps-bg); min-height: 80vh; box-shadow: 0 1px 6px rgba(0,0,0,.08); }
}
