:root {
    --bg:         #ffffff;
    --bg-reply:   #e8eaed;
    --text:       #5f6368;
    --title:      #202124;
    --primary:    #0b57cf;
    --on-primary: #ffffff;
    --border:     #dadce0;
    --divider:    #e8eaed;
    --star:       #0b57cf;
    --star-off:   #bec3c9;
    --shadow:     0 1px 2px 0 rgba(60,64,67,.3),
                  0 1px 3px 1px rgba(60,64,67,.15);
    --r-btn:      8px;
    --pad:        24px;
    --sans:       "Google Sans", Roboto, Arial, sans-serif;
    --sans-body:  Roboto, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg:         #121212;
        --bg-reply:   #374340;
        --text:       #d9d9d9;
        --title:      #e4e4e4;
        --primary:    #a8c8fa;
        --on-primary: #00205a;
        --border:     #5f6368;
        --divider:    #5f6368;
        --star:       #a8c8fa;
    }
}

@media (min-width: 920px) {
    :root { --pad: 48px }
}


*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html  { height: 100% }

body {
    min-height: 100%;
    font: 14px/1.43 var(--sans);
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

a      { color: inherit; text-decoration: none }
img    { display: block; max-width: 100%; height: auto; border: 0 }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer }

h1, h2, h3, h4 {
    color: var(--title);
    font-weight: 500;
}


.i         { width: 24px; height: 24px; display: block; flex-shrink: 0; fill: currentColor }
.i--xs     { width: 12px; height: 12px }
.i--sm     { width: 16px; height: 16px }
.i--md     { width: 20px; height: 20px }
.i-star    { fill: var(--star) }
.i-star-off { fill: var(--star-off) }
.i-thumb    { fill: var(--star) }


.app {
    max-width: 1296px;
    margin: 0 auto;
    padding: 0 var(--pad);
}

.bleed {
    margin-left: calc(-1 * var(--pad));
    margin-right: calc(-1 * var(--pad));
    padding-left: var(--pad);
    padding-right: var(--pad);
}

@media (min-width: 920px) {
    .bleed {
        margin: 0;
        padding-left: 0;
        padding-right: 0;
    }
}

.hscroll {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.hscroll::-webkit-scrollbar { display: none }

.sprite { display: none }


.header {
    padding: 24px 0 16px;
    position: relative;
}

@media (min-width: 920px) {
    .header { padding: 40px 0 32px }
}

.header__identity {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.header__icon-mobile {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

@media (min-width: 920px) {
    .header__icon-mobile { display: none }
}

.header__icon-desktop {
    display: none;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: var(--shadow);
    position: absolute;
    right: var(--pad);
    top: 40px;
}

@media (min-width: 920px) {
    .header__icon-desktop {
        display: block;
        width: 210px;
        height: 210px;
    }
}

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

@media (min-width: 920px) {
    .header__info { max-width: 620px }
}

.header__info h1 {
    font-size: 1.5rem;
    line-height: 1.3;
}

@media (min-width: 920px) {
    .header__info h1 { font-size: 3rem }
}

.header__developer {
    margin-top: 4px;
    font-size: .875rem;
    font-weight: 500;
    color: var(--primary);
}

@media (min-width: 920px) {
    .header__developer { margin-top: 12px }
}

.header__subtitle {
    display: block;
    margin-top: 2px;
    font-size: .75rem;
    color: var(--text);
    font-family: var(--sans-body);
}


.stats {
    align-items: center;
    margin: 16px 0;
    padding: 8px 0;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    flex: 1;
    min-width: 90px;
}

@media (min-width: 920px) {
    .stat {
        flex: 0 0 auto;
        min-width: 120px;
        padding: 0 28px;
    }
}

.stat__div {
    width: 1px;
    height: 24px;
    background: var(--divider);
    flex-shrink: 0;
}

.stat__val {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: .875rem;
    font-weight: 500;
    color: var(--title);
    fill: var(--title);
    white-space: nowrap;
    height: 24px;
}

.stat__lbl {
    font-size: .75rem;
    font-family: var(--sans-body);
    color: var(--text);
    white-space: nowrap;
    margin-top: 2px;
}

.age-badge {
    width: 22px;
    height: 22px;
    border: 1px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    font-weight: 500;
    color: var(--primary);
}


.actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

@media (min-width: 920px) {
    .actions {
        flex-direction: row;
        align-items: center;
        gap: 16px;
    }
}

.actions__btns {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.actions__btns .btn { width: 100% }

@media (min-width: 920px) {
    .actions__btns { flex-direction: row }
    .actions__btns .btn { width: auto; min-width: 160px }
}

.actions__secondary {
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
}

@media (min-width: 920px) {
    .actions__secondary { justify-content: flex-start }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 24px;
    border: none;
    border-radius: 20px;
    background: var(--primary);
    color: var(--on-primary);
    font: 500 .875rem/1 var(--sans);
    letter-spacing: .02em;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    gap: 8px;
    -webkit-appearance: none;
    appearance: none;
}

@media (min-width: 920px) {
    .btn {
        height: 38px;
        border-radius: var(--r-btn);
        font-size: .9375rem;
    }
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 8px;
    height: 36px;
    border-radius: var(--r-btn);
    font: 500 .875rem/1 var(--sans);
    color: var(--primary);
    fill: var(--primary);
    white-space: nowrap;
}

.btn-pill {
    padding: 6px 18px;
    border: 1px solid var(--border);
    border-radius: var(--r-btn);
    font: 500 .8rem var(--sans);
    color: var(--text);
    cursor: pointer;
    background: none;
}

.btn-pill.active {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--on-primary);
}

.avail {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0 4px;
    font-size: .875rem;
    color: var(--text);
    fill: var(--text);
}

.spinner         { color: var(--on-primary); display: none }
.spinner.active  { display: inline-block }


.screenshots {
    position: relative;
    margin: 24px 0;
}

.screenshots__track {
    gap: 12px;
    padding-top: 4px;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scroll-padding-left: var(--pad);
}

@media (min-width: 920px) {
    .screenshots__track { cursor: grab }
}

.screenshots__img {
    height: 204px;
    min-width: 92px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    flex-shrink: 0;
    user-select: none;
    -webkit-user-drag: none;
    scroll-snap-align: start;
}

@media (min-width: 920px) {
    .screenshots__img { height: 260px }
}


.section {
    padding: 32px 0;
    font-size: .875rem;
    line-height: 1.5;
    font-family: var(--sans-body);
}

@media (min-width: 920px) {
    .section {
        padding: 36px 0;
        max-width: 820px;
    }
}

.section__head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-family: var(--sans);
    fill: var(--title);
}

.section__head h3 {
    font-size: 1.125rem;
    line-height: 1.4;
}

@media (min-width: 920px) {
    .section__head h3 { font-size: 1.25rem }
}

.section__body { color: var(--text) }

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 16px;
    border-radius: 16px;
    border: 1px solid var(--border);
    font: 500 .875rem var(--sans);
}


.rating {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin: 24px 0 32px;
}

.rating__num {
    font-size: 3rem;
    line-height: 1;
    font-weight: 400;
    color: var(--title);
}

.rating__stars {
    display: flex;
    gap: 2px;
    margin-top: 4px;
}

.rating__bars {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 4px;
}

.bar {
    height: 10px;
    border-radius: 10px;
    background: var(--star-off);
}

.bar__fill {
    height: 100%;
    border-radius: 10px;
    background: var(--primary);
}




.review { padding: 28px 0 }

.review__author {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--title);
    font-size: .875rem;
}

.review__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    box-shadow: var(--shadow);
}

.review__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: .75rem;
    font-family: var(--sans-body);
}

.review__stars {
    display: flex;
    gap: 1px;
}

.review__text {
    margin-top: 8px;
    font-size: .875rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.review__imgs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    overflow-x: auto;
    scrollbar-width: none;
}

.review__imgs::-webkit-scrollbar { display: none }

.review__img {
    height: 204px;
    width: auto;
    max-width: none;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.review__helpful {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.review__ask {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
    font-size: .75rem;
    font-family: var(--sans-body);
}

.review__ask-btns {
    display: flex;
    gap: 8px;
}

.review__reply {
    background: var(--bg-reply);
    border-radius: 12px;
    margin: 16px 0 0 44px;
    padding: 12px 16px;
}

.review__reply h4 {
    font-size: .875rem;
    margin-bottom: 8px;
}


.similar {
    gap: 16px;
    margin-top: 8px;
}

.sim-app { flex-shrink: 0; width: 94px }

.sim-app__icon {
    width: 94px;
    height: 94px;
    border-radius: 22px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.sim-app__name {
    margin-top: 8px;
    font-size: .8rem;
    color: var(--title);
    line-height: 1.3;
}

.sim-app__meta {
    font-size: .7rem;
    font-family: var(--sans-body);
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 3px;
    margin-top: 2px;
}


.footer {
    border-top: 1px solid var(--divider);
    margin-top: 40px;
    padding: 24px 0;
}


.install-bar {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: var(--bg);
    transition: transform .3s ease;
}

.install-bar--top {
    top: 0;
    border-bottom: 1px solid var(--divider);
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

.install-bar--top[hidden] {
    display: flex;
    transform: translateY(-100%);
    pointer-events: none;
}

.install-bar--top:not([hidden]) {
    transform: translateY(0);
}

.install-bar__icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    flex-shrink: 0;
}

.install-bar__name {
    flex: 1;
    min-width: 0;
    font: 500 .875rem/1.3 var(--sans);
    color: var(--title);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.install-bar__btn {
    flex-shrink: 0;
    padding: 0 20px;
    height: 32px;
    font-size: .8125rem;
}