.inner-main {
    --reading-paper: #fff5e9;
    --reading-ink: #2a202e;
    --reading-muted: #564758;
    --reading-line: #e4cfc7;
    --reading-accent: #913e41;
    --reading-panel: #221a2c;
    --reading-panel-line: #493548;
}

.inner-main .profile-masthead {
    --ink: #15213a;
    --muted: #4f5c72;
    --blue-dark: #1635a8;
    --line: #dbe1ec;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--reading-panel-line);
    border-radius: 22px;
    box-shadow: 0 16px 44px #0d09144d;
}

.inner-main .app-heading {
    color: #fff4eb;
    background: radial-gradient(ellipse at 98% 0%, #71364985 0%, transparent 62%),
        linear-gradient(133deg, #2d2035 0%, #21192b 62%, #251a28 100%);
    border: 1px solid var(--reading-panel-line);
    border-radius: 22px;
    padding: clamp(22px, 3.6vw, 43px);
}

.inner-main .profile-masthead > .app-heading {
    border: 0;
    border-radius: 21px 21px 0 0;
}

.inner-main .profile-masthead > .app-heading:only-child { border-radius: inherit; }

.inner-main .app-title-row {
    align-items: center;
    gap: clamp(13px, 2vw, 22px);
}

.inner-main .app-title-row h1 {
    color: #fff4eb;
    font-size: clamp(1.85rem, 4.55vw, 3.65rem);
    line-height: 1.04;
    letter-spacing: -.057em;
    overflow-wrap: anywhere;
}

.inner-main .app-title-row .app-icon {
    border: 1px solid #fff4eb80;
    border-radius: 17px;
    box-shadow: 0 6px 22px #160b1770;
}

.inner-main .app-heading .intro {
    max-width: 69ch;
    color: #e6d4e6;
}

.inner-main .app-heading :is(.publisher, .category-label) {
    color: #ffab99;
}

.inner-main .app-heading .checked {
    margin-top: 12px;
    padding-top: 10px;
    color: #d2bcd3;
    border-color: #fce6ff24;
    font-size: .8rem;
}

.inner-main .app-heading .age-note {
    color: #e0cedd;
}

.inner-main .app-heading .age-note a {
    text-decoration-color: #ae8caa;
}

.inner-main .app-heading .age-note a:hover {
    color: #fff4eb;
}

.inner-main .app-heading .age-note span {
    color: #ffd9cc;
    background: #493044;
    border-color: #85586c;
}

.store-rating {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    min-height: 54px;
    margin-top: 9px;
    padding: 7px 9px;
    border: 1px solid #725268;
    border-radius: 9px;
    background: linear-gradient(110deg, #513545, #2c2037);
    color: #fff1e8;
    font-size: .78rem;
    text-decoration: none;
}
.store-rating-score { display: flex; align-items: center; gap: 5px; flex: none; font-size: 1.06rem; color: #ffd49d; font-variant-numeric: tabular-nums; }
.store-rating-source { display: grid; gap: 2px; line-height: 1.25; }
.store-rating small { color: #f0bfd8; font-size: .72rem; }
.store-rating time { white-space: nowrap; }
.store-rating .symbol { width: 15px; height: 15px; }
.store-rating > .symbol { margin-inline-start: auto; color: #f2bace; }
.store-rating:is(:hover, :focus-visible, :active) { border-color: #ffb69b; color: #fff; }

.profile-navigation {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 8px;
    margin-block: 15px 0;
}
.inner-main .profile-navigation .profile-contents { margin: 0; }
.profile-related-jump {
    display: inline-flex; align-items: center; gap: 7px; justify-content: center;
    min-height: 47px; padding: 7px 10px; color: #ffc2b4; background: #352437;
    border: 1px solid #795064; border-radius: 10px; text-decoration: none; font-size: .86rem; font-weight: 700;
}
.profile-related-jump .symbol { width: 15px; height: 15px; }
.profile-related-jump:is(:hover, :focus-visible, :active) { color: #fff; border-color: #ffad9d; }

@media (prefers-reduced-motion: no-preference) {
    .store-rating, .profile-related-jump { transition: border-color .18s ease, box-shadow .18s ease; }
    .store-rating-score > .symbol { animation: store-star-in .36s ease-out; transition: transform .18s ease, filter .18s ease; }
    .store-rating:is(:hover, :focus-visible, :active) .store-rating-score > .symbol { transform: scale(1.13); filter: drop-shadow(0 0 4px #ffb37a); }
}
@keyframes store-star-in {
    from { opacity: .55; transform: scale(.85); }
    to { opacity: 1; transform: scale(1); }
}

.inner-main .detail-grid {
    grid-template-columns: minmax(0, 1fr) minmax(235px, 28%);
    gap: clamp(18px, 3.1vw, 38px);
    margin-top: clamp(14px, 2vw, 24px);
}

.inner-main :is(.app-prose, .reader) {
    --ink: var(--reading-ink);
    --muted: var(--reading-muted);
    --line: var(--reading-line);
    --blue: var(--reading-accent);
    --blue-dark: var(--reading-accent);
    min-width: 0;
    color: var(--reading-ink);
    background: var(--reading-paper);
    border: 1px solid #cfb4b0;
    border-radius: 20px;
    padding: clamp(19px, 3.3vw, 42px);
    box-shadow: 0 15px 44px #0d09142e;
}

.inner-main :is(.app-prose, .reader .prose) {
    color: var(--reading-ink);
    font-size: clamp(1rem, 1.5vw, 1.08rem);
    line-height: 1.7;
}

.inner-main :is(.app-prose, .reader .prose) > :is(p, ul, ol) {
    max-width: 73ch;
    margin-bottom: 1em;
}

.inner-main :is(.app-prose, .reader .prose) :is(h2, h3) {
    color: var(--reading-ink);
    font-weight: 720;
    line-height: 1.15;
}

.inner-main :is(.app-prose, .reader .prose) h2 {
    margin: clamp(23px, 3vw, 33px) 0 10px;
    padding-top: 16px;
    border-top: 1px solid var(--reading-line);
    font-size: clamp(1.38rem, 2.5vw, 1.8rem);
}

.inner-main :is(.app-prose, .reader .prose) > h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.inner-main :is(.app-prose, .reader .prose) a {
    color: var(--reading-accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.inner-main :is(.app-prose, .reader .prose) a:hover {
    color: #6b2d38;
    text-decoration-thickness: 2px;
}

.inner-main .app-prose .profile-overview {
    margin-bottom: 18px;
    color: var(--reading-muted);
    font-size: 1.08em;
}

.inner-main .app-prose .profile-facts {
    overflow: hidden;
    border: 1px solid #ddc8c0;
    border-radius: 12px;
    background: #faeadd;
}

.inner-main .app-prose .profile-facts > div {
    padding: 11px 14px;
}

.inner-main .app-prose .profile-facts > div:first-child {
    border-top: 0;
}

.inner-main .app-prose .profile-facts dt {
    color: #693846;
    font-size: .88rem;
}

.inner-main .app-prose .profile-facts dd {
    color: var(--reading-ink);
    font-size: .94rem;
}

.inner-main .app-prose :is(.guide-rooms, .guide-access, .faq-list) {
    background: #fffaf4;
    border-color: #e6cfc6;
    border-radius: 12px;
}

.inner-main .app-prose .guide-access dt {
    color: #6a4656;
}

.inner-main .app-prose :is(.guide-links, .guide-version, .guide-note) {
    color: var(--reading-muted);
    background: #f6e5dc;
    border-color: #cd867b;
}

.inner-main .app-prose .faq-item summary {
    min-height: 45px;
    align-items: center;
}

.inner-main .app-prose .faq-item summary:hover {
    background: #f9ebdf;
}

.inner-main :is(.profile-contents, .focus-aside .fact-panel, .app-aside .fact-panel, .app-aside .aside-links) {
    color: #e6d1e7;
    background: var(--reading-panel);
    border-color: var(--reading-panel-line);
    border-radius: 15px;
}

.inner-main .profile-contents {
    margin: 15px 0 0;
    padding: 3px clamp(15px, 2.8vw, 28px);
}

.inner-main :is(.profile-contents, .profile-sources) summary {
    min-height: 44px;
    padding-block: 10px;
    color: #ffd0bf;
}

.inner-main .profile-contents nav {
    padding: 2px 0 12px;
}

.inner-main .profile-contents nav ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 20px;
    padding-left: 0;
    margin: 0;
    list-style: none;
}

.inner-main .profile-contents nav li {
    padding: 0;
}

.inner-main :is(.profile-contents nav, .focus-aside .lane-links, .app-aside .aside-links) a {
    display: flex;
    min-height: 44px;
    align-items: center;
    color: #e6d1e7;
    padding: 7px 0;
    font-size: .92rem;
    overflow-wrap: anywhere;
}

.inner-main .profile-contents nav a {
    text-decoration-color: #ac8caa;
    text-underline-offset: 3px;
}

.inner-main :is(.profile-contents nav, .focus-aside .lane-links, .app-aside .aside-links) a:hover {
    color: #ffab99;
}

.inner-main :is(.focus-aside, .app-aside) .fact-panel h2 {
    color: #fff4eb;
    margin: 0 0 9px;
}

.inner-main :is(.focus-aside .lane-links, .app-aside .aside-links) :is(li, a) + :is(li, a) {
    border-top-color: var(--reading-panel-line);
}

.inner-main .related-apps {
    min-width: 0;
    padding: clamp(14px, 2vw, 20px);
}

.inner-main .related-app-list {
    display: grid;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.inner-main .related-app-card {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 16px;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 7px 9px;
    border: 1px solid #4b3b53;
    border-radius: 10px;
    background: #2c2237;
    color: #fff4eb;
    font-size: .92rem;
    font-weight: 650;
    line-height: 1.25;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.inner-main .related-app-card .profile-icon { border-radius: 9px; }

.inner-main .related-apps .symbol {
    width: 16px;
    height: 16px;
    color: #ffa591;
}

.inner-main .related-app-card:is(:hover, :focus-visible, :active) {
    border-color: #97677e;
    background: #3a293e;
}

.inner-main .related-apps-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    margin-top: 3px;
    color: #ffb7a6;
    font-size: .88rem;
    font-weight: 650;
    text-underline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
    .inner-main .related-app-card { transition: background-color 160ms ease, border-color 160ms ease; }
    .inner-main .related-app-card .symbol { transition: transform 160ms ease; }
    .inner-main .related-app-card:is(:hover, :focus-visible) .symbol { transform: translateX(2px); }
}

.inner-main .app-aside .fact-panel :is(dt, .checked) {
    color: #d4c1d5;
}

.inner-main .app-aside .fact-panel :is(dd, .checked) {
    border-color: var(--reading-panel-line);
}

.inner-main .profile-sources ul {
    margin-block: 1px 8px;
    overflow-wrap: anywhere;
    font-size: .875rem;
}

.inner-main .reader {
    width: min(100%, 920px);
    margin-inline: auto;
    max-width: none;
}

.inner-main .reader header {
    margin-bottom: 26px;
    padding-bottom: 18px;
    border-bottom: 3px solid #c26a60;
}

.inner-main .reader header h1 {
    margin-bottom: .4em;
    color: var(--reading-ink);
}

.inner-main .reader header .intro {
    margin-bottom: 0;
    color: var(--reading-muted);
}

@media (max-width: 900px) {
    .inner-main .detail-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .inner-main .focus-aside {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr));
        align-items: start;
    }
}

@media (max-width: 600px) {
    .inner-main .app-heading {
        padding: 18px 16px 15px;
    }

    .inner-main .app-title-row .app-icon {
        width: 49px;
        height: 49px;
        border-radius: 12px;
    }

    .inner-main .app-title-row h1 {
        font-size: clamp(1.62rem, 7vw, 2.1rem);
    }

    .inner-main .app-heading .intro {
        margin: 10px 0 0;
        font-size: .93rem;
        line-height: 1.48;
    }

    .inner-main .app-heading :is(.age-note, .checked) {
        margin-top: 8px;
        font-size: .77rem;
    }

    .inner-main .app-heading .checked {
        padding-top: 7px;
    }

    .inner-main .profile-contents nav ul {
        grid-template-columns: minmax(0, 1fr);
    }

    .inner-main :is(.app-prose, .reader) {
        padding: 17px;
        border-radius: 16px;
    }

    .inner-main .app-prose .profile-facts > div {
        grid-template-columns: minmax(0, 1fr);
        gap: 2px;
        padding: 8px 11px;
    }
}
