html.page-view { background: #f5f5f7; }

.page-fade {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 92px;
    z-index: 95;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(245,245,247,0.92), rgba(245,245,247,0));
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
    mask-image: linear-gradient(to bottom, #000 55%, transparent);
}

.page-logo {
    position: fixed;
    top: calc(22px + env(safe-area-inset-top));
    left: calc(82px + env(safe-area-inset-left));
    z-index: 100;
    display: block;
    transition: transform .4s var(--ease-smooth);
}
.page-logo img {
    display: block;
    height: 34px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
}
@media (hover: hover) {
    .menu:not(.open):hover ~ .page-logo { transform: translateX(70px); }
}

.page-main {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 116px 20px 64px;
    flex: 1;
}

.page-head {
    margin-bottom: 28px;
}
.page-kicker {
    margin: 0 0 6px;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .3px;
    color: #6b6b70;
}
.page-title {
    margin: 0;
    font-size: clamp(2rem, 6vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -1px;
    color: #111;
}
.page-sub {
    margin: 8px 0 0;
    font-size: 1rem;
    color: #6b6b70;
}


.page-tabs {
    position: relative;
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 22px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(0,0,0,0.06);
}
.page-tab {
    position: relative;
    z-index: 1;
    display: flex; align-items: center; justify-content: center;
    padding: 9px 20px;
    border-radius: 999px;
    font-size: .88rem;
    font-weight: 600;
    white-space: nowrap;
    color: #6b6b70;
    text-decoration: none;
    transition: color .3s ease;
}
.page-tabs[data-current="updates"] .tab-updates,
.page-tabs[data-current="news"] .tab-news { color: #111; }
.tab-pill {
    position: absolute;
    top: 4px; bottom: 4px; left: 4px;
    width: calc(50% - 4px);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 4px 10px rgba(0,0,0,0.06);
    transition: transform .4s var(--ease-smooth);
}
.page-tabs[data-current="updates"] .tab-pill { transform: translateX(100%); }

.update-list {
    position: relative;
}
.update-list:not(:has(.update)) { display: none; }
.update {
    position: relative;
    display: block;
    color: inherit;
    text-decoration: none;
    margin-bottom: 16px;
    padding: 18px 20px;
    border-radius: 18px;
    border: 1px solid rgba(0,0,0,0.05);
    background: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.06);
}
.update-meta {
    display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
}
.update-version {
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0,122,255,0.1);
    color: var(--blue);
    font-size: .76rem;
    font-weight: 700;
}
.update-meta time, .news-body time {
    font-size: .8rem;
    font-weight: 500;
    color: #6b6b70;
}
.update-title {
    margin: 10px 0 8px;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.2px;
    color: #111;
}
.update-changes {
    margin: 0;
    padding: 0;
    list-style: none;
}
.update-changes li {
    display: flex; align-items: baseline; gap: 10px;
    padding: 8px 0;
    border-top: 1px solid rgba(0,0,0,0.05);
    font-size: .92rem;
    line-height: 1.45;
    color: #2a2a2c;
}
.update-changes li:first-child { border-top: none; }

.tag {
    flex-shrink: 0;
    min-width: 62px;
    padding: 3px 8px;
    border-radius: 6px;
    text-align: center;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .2px;
}
.tag.new { background: rgba(52,199,89,0.14); color: #1f8a3b; }
.tag.fix { background: rgba(255,149,0,0.16); color: #a85a00; }
.tag.change { background: rgba(0,122,255,0.12); color: #0060c9; }
.tag.remove { background: rgba(255,59,48,0.12); color: #c4271d; }

.news-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
.news-list:not(:has(.news-card)) { display: none; }

.news-card {
    display: flex; flex-direction: column;
    color: inherit;
    text-decoration: none;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(0,0,0,0.05);
    background: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.06);
}
.news-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #e5e5ea;
}
.news-body { padding: 16px 18px 18px; }
.news-title {
    margin: 6px 0 6px;
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: -0.2px;
    color: #111;
}
.news-text {
    margin: 0;
    font-size: .92rem;
    line-height: 1.5;
    color: #3a3a3c;
}
.update-summary {
    margin: 0;
    font-size: .92rem;
    line-height: 1.5;
    color: #3a3a3c;
}
.card-more {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 12px;
    font-size: .86rem;
    font-weight: 600;
    color: var(--blue);
}
.card-more i { font-size: .7rem; }
.news-link {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 12px;
    font-size: .88rem;
    font-weight: 600;
    color: var(--blue);
    text-decoration: none;
}

.back-link {
    display: inline-flex; align-items: center; gap: 8px;
    margin-bottom: 22px;
    padding: 8px 14px 8px 12px;
    border-radius: 999px;
    background: rgba(0,0,0,0.06);
    color: #111;
    font-size: .86rem;
    font-weight: 600;
    text-decoration: none;
}
.back-link i { font-size: .75rem; }
.post {
    padding: 26px 24px 28px;
    border-radius: 22px;
    border: 1px solid rgba(0,0,0,0.05);
    background: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.06);
}
.post-title {
    margin: 12px 0 8px;
    font-size: clamp(1.6rem, 5vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -0.6px;
    line-height: 1.15;
    color: #111;
}
.post-lead {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.55;
    color: #3a3a3c;
}
.post-image {
    display: block;
    width: 100%;
    margin-top: 20px;
    border-radius: 16px;
    background: #e5e5ea;
}
.post-section { margin-top: 24px; }
.post-section-title {
    margin: 0 0 6px;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .3px;
    color: #6b6b70;
}
.post-body p {
    margin: 0 0 14px;
    font-size: .98rem;
    line-height: 1.65;
    color: #2a2a2c;
}
.post-body p:last-child { margin-bottom: 0; }

.post-follow {
    margin-top: 18px;
    padding: 24px 20px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.06);
    text-align: center;
}
.post-follow-title {
    margin: 0 0 14px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #111;
}

.page-hero {
    position: relative;
    display: flex; flex-direction: column; justify-content: flex-end;
    min-height: clamp(190px, 32vw, 250px);
    margin-bottom: 26px;
    padding: 24px 24px 22px;
    overflow: hidden;
    border-radius: 26px;
    background: #1c1c1e center / cover no-repeat;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06), 0 14px 34px rgba(0,0,0,0.14);
}
.page-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.35) 55%, rgba(0,0,0,0.1) 100%);
}
.page-hero > * { position: relative; }
.page-hero .page-kicker { color: rgba(255,255,255,0.75); }
.page-hero .page-title { color: #fff; }
.page-hero .page-sub { color: rgba(255,255,255,0.85); }


.change-counts {
    display: flex; flex-wrap: wrap; align-items: center;
    margin-top: 12px;
    font-size: .84rem;
    font-weight: 500;
    color: #6b6b70;
}
.change-count + .change-count::before {
    content: '·';
    margin: 0 7px;
    color: #b0b0b5;
}

.change-groups {
    display: flex; flex-direction: column; gap: 14px;
    margin-top: 18px;
}
.change-group {
    padding: 18px 20px 10px;
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.05);
    background: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.06);
}
.change-head {
    display: flex; align-items: baseline; gap: 8px;
    margin: 0 0 4px;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.2px;
    color: #111;
}
.change-total {
    font-size: .88rem;
    font-weight: 500;
    color: #8e8e93;
}

.change-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.change-list li {
    position: relative;
    padding: 10px 0 10px 18px;
    border-top: 1px solid rgba(0,0,0,0.05);
    font-size: .94rem;
    line-height: 1.45;
    color: #2a2a2c;
}
.change-list li:first-child { border-top: none; }
.change-list li::before {
    content: '';
    position: absolute;
    top: 18px; left: 2px;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #c7c7cc;
}

.post-note {
    margin: 6px 0 10px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f5f5f7;
    color: #3a3a3c;
    font-size: .92rem;
    line-height: 1.5;
}
.post-note strong { color: #111; }

.post-more {
    margin: 16px 4px 0;
    text-align: center;
    font-size: .92rem;
    font-weight: 600;
    color: #6b6b70;
}

.empty-card {
    padding: 36px 24px 32px;
    border-radius: 22px;
    border: 1px solid rgba(0,0,0,0.05);
    background: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.06);
    text-align: center;
}
.page-entries:has(.update, .news-card) .empty-card { display: none; }
.empty-title {
    margin: 0 0 6px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #111;
}
.empty-text {
    max-width: 380px;
    margin: 0 auto 20px;
    font-size: .92rem;
    line-height: 1.5;
    color: #6b6b70;
}

.page-footer {
    padding: 22px 20px calc(22px + env(safe-area-inset-bottom));
    background: #ebebf0;
    border-top: 1px solid rgba(0,0,0,0.06);
    text-align: center;
    font-size: .78rem;
    font-weight: 500;
    color: #6b6b70;
}
.page-footer p { margin: 0; }

html.page-view .menu { animation: none; }

.update-list > .update:first-child .update-meta::before {
    content: 'Latest';
    color: var(--blue);
    font-size: .8rem;
    font-weight: 700;
}

.discord-btn {
    display: inline-flex; align-items: center; gap: 10px;
    margin-top: 6px;
    padding: 12px 20px;
    border-radius: 14px;
    background: #5865f2;
    color: #fff;
    font-size: .95rem;
    font-weight: 700;
    text-decoration: none;
}
.discord-btn i { font-size: 1.1rem; }

.post.post-plain {
    max-width: 640px;
    padding: 4px 0 0;
    border: none;
    background: none;
    box-shadow: none;
}
.post-plain .post-title { margin-top: 10px; }
.post-plain .post-lead {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #2a2a2c;
}
.post-plain .post-image { margin-top: 24px; }
.post-plain .post-body { margin-top: 26px; }
.post-plain .post-body p {
    font-size: 1.06rem;
    line-height: 1.75;
}
.post-plain .discord-btn { margin-top: 10px; }

.change-groups.change-plain {
    max-width: 640px;
    gap: 30px;
    margin-top: 34px;
}
.change-plain .change-group {
    padding: 0;
    border: none;
    border-radius: 0;
    background: none;
    box-shadow: none;
}
.change-plain .change-head {
    margin-bottom: 4px;
    font-size: 1.2rem;
}
.change-plain .change-list li {
    padding: 11px 0 11px 18px;
    border-top-color: rgba(0,0,0,0.07);
    font-size: 1.02rem;
    line-height: 1.6;
}
.change-plain .change-list li::before { top: 21px; }
.change-plain .post-note { margin-top: 10px; }
.change-plain + .post-more {
    max-width: 640px;
    margin: 26px 0 0;
    text-align: left;
}

.news-card .news-image { aspect-ratio: 2 / 1; max-height: 170px; }
@media (min-width: 480px) {
    .news-card { flex-direction: row; align-items: stretch; }
    .news-card .news-image {
        width: 40%;
        flex-shrink: 0;
        aspect-ratio: auto;
        min-height: 160px;
        max-height: 200px;
    }
    .news-card .news-body {
        display: flex; flex-direction: column; justify-content: center;
        padding: 18px 22px;
    }
}

@keyframes tab-in-right {
    from { opacity: 0; transform: translateX(32px); }
    to   { opacity: 1; transform: none; }
}
@keyframes tab-in-left {
    from { opacity: 0; transform: translateX(-32px); }
    to   { opacity: 1; transform: none; }
}
html.tab-from-right .page-hero,
html.tab-from-right .page-head,
html.tab-from-right .page-entries { animation: tab-in-right .5s var(--ease-out) backwards; }
html.tab-from-left .page-hero,
html.tab-from-left .page-head,
html.tab-from-left .page-entries { animation: tab-in-left .5s var(--ease-out) backwards; }
html.tab-from-right .page-entries,
html.tab-from-left .page-entries { animation-delay: .06s; }

.page-hero, .page-head, .page-entries {
    transition: opacity .25s ease, transform .32s var(--ease-smooth);
}
html.tab-leave-right .page-hero,
html.tab-leave-right .page-head,
html.tab-leave-right .page-entries { opacity: 0; transform: translateX(-24px); }
html.tab-leave-left .page-hero,
html.tab-leave-left .page-head,
html.tab-leave-left .page-entries { opacity: 0; transform: translateX(24px); }

.byline {
    display: flex; align-items: center; gap: 8px;
    font-size: .8rem;
    color: #6b6b70;
}
.byline-badge {
    width: 22px; height: 22px;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: #111;
}
.byline-badge img {
    display: block;
    width: 82%;
    height: auto;
}
.byline-name {
    font-weight: 700;
    color: #111;
}
.byline-name::after {
    content: '·';
    margin-left: 8px;
    font-weight: 400;
    color: #b0b0b5;
}
.byline time { font-weight: 500; }
.byline-large { font-size: .9rem; }
.byline-large .byline-badge { width: 30px; height: 30px; }

.stat-card {
    max-width: 640px;
    padding: 24px 24px 20px;
    border-radius: 22px;
    border: 1px solid rgba(0,0,0,0.05);
    background: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.06);
}
.stat-label {
    margin: 0;
    font-size: .88rem;
    font-weight: 600;
    color: #6b6b70;
}
.stat-value {
    margin: 4px 0 0;
    font-size: clamp(1.6rem, 5vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.6px;
    color: #111;
}
.stat-text {
    margin: 12px 0 0;
    font-size: .95rem;
    line-height: 1.6;
    color: #3a3a3c;
}
.stat-track {
    position: relative;
    margin-top: 48px;
}
.stat-bar {
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: #ececf0;
}
.stat-fill {
    width: var(--value, 0%);
    height: 100%;
    border-radius: 999px;
    background: var(--blue);
    animation: stat-grow 1.4s cubic-bezier(.22,.9,.24,1) .2s backwards;
}
.stat-tag {
    position: absolute;
    bottom: calc(100% + 10px);
    left: var(--value, 0%);
    min-width: 40px;
    padding: 5px 10px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
    text-align: center;
    font-size: .92rem;
    font-weight: 700;
    color: #111;
    transform: translateX(-50%);
    animation: stat-tag-move 1.4s cubic-bezier(.22,.9,.24,1) .2s backwards;
}
.stat-tag::after {
    content: '';
    position: absolute;
    top: 100%; left: 50%;
    width: 10px; height: 10px;
    margin-top: -5px;
    background: #fff;
    border-right: 1px solid rgba(0,0,0,0.06);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transform: translateX(-50%) rotate(45deg);
}
@keyframes stat-grow {
    from { width: 0; }
}
@keyframes stat-tag-move {
    from { left: 0; }
}

.reach-row {
    display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 14px;
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #f5f5f7;
}
.reach-label {
    font-size: .88rem;
    font-weight: 600;
    color: #6b6b70;
}
.reach-value {
    font-size: 1.02rem;
    font-weight: 700;
    color: #111;
}
.stat-note {
    margin: 12px 0 0;
    font-size: .85rem;
    color: #6b6b70;
}
.stat-card + .stat-card { margin-top: 16px; }
.stat-scale {
    display: flex; justify-content: space-between;
    margin-top: 8px;
    font-size: .85rem;
    font-weight: 600;
    color: #3a3a3c;
}
.stat-updated {
    display: flex; align-items: center; gap: 8px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(0,0,0,0.06);
    font-size: .85rem;
    color: #6b6b70;
}
.stat-info {
    position: relative;
    width: 22px; height: 22px;
    padding: 0;
    display: inline-flex; align-items: center; justify-content: center;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #8e8e93;
    font-size: .9rem;
    cursor: help;
}
.stat-info::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    padding: 6px 10px;
    border-radius: 8px;
    background: #111;
    color: #fff;
    font-size: .76rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    transform: translate(-50%, 4px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}
.stat-info:hover::after,
.stat-info:focus-visible::after {
    opacity: 1;
    transform: translate(-50%, 0);
}

.stats-main {
    max-width: 1040px;
    padding-top: 92px;
    padding-bottom: 28px;
}
.stats-main .page-head { margin-bottom: 18px; }
.stats-main .page-title { font-size: clamp(1.7rem, 5vw, 2.2rem); }
.stats-main .page-sub { margin-top: 4px; }
.stats-grid {
    display: grid;
    gap: 14px;
}
.stats-grid .stat-card {
    max-width: none;
    padding: 18px 20px 16px;
}
.stats-grid .stat-card + .stat-card { margin-top: 0; }
.stats-grid .stat-value { font-size: clamp(1.4rem, 4vw, 1.75rem); }
.stats-grid .stat-text {
    margin-top: 8px;
    font-size: .88rem;
    line-height: 1.5;
}
.stats-grid .reach-row { margin-top: 12px; padding: 12px 14px; }
.stats-grid .stat-note { margin-top: 8px; }
.stats-grid .stat-track { margin-top: 42px; }
.stats-grid .stat-updated { margin-top: 12px; padding-top: 10px; }
@media (min-width: 860px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        align-items: stretch;
    }
    .stats-grid .stat-card { display: flex; flex-direction: column; }
    .stats-grid .stat-card .stat-note,
    .stats-grid .stat-card .stat-updated { margin-top: auto; }
    .stats-grid .stat-card .reach-row + .stat-note { padding-top: 10px; }
}

a.update, a.news-card { -webkit-user-drag: none; }

.remake-discord {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 11px 18px;
    border-radius: 14px;
    background: #5865f2;
    color: #fff;
    font-size: .92rem;
    font-weight: 700;
    text-decoration: none;
}
.remake-discord i { font-size: 1.05rem; }

.listen-btn {
    width: 34px; height: 34px;
    margin-left: auto;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    border: none;
    border-radius: 50%;
    background: #111;
    color: #fff;
    font-size: .8rem;
    cursor: pointer;
    transition: background-color .2s ease, transform .2s ease;
}
.listen-btn .fa-play { margin-left: 2px; }
@media (hover: hover) {
    .listen-btn:hover { background: #2a2a2a; }
}

.read-word {
    border-radius: .25em;
    transition: background-color .18s ease, color .18s ease;
}
.read-word.now { background-color: #ffe873; color: #111; }
.reading .read-word.done { color: inherit; }

.post-lead + .byline { margin-top: 18px; }

