:root {
    --ink: #17191d;
    --muted: #697078;
    --paper: #fffdf7;
    --surface: #ffffff;
    --line: #e8e5dc;
    --banana: #ffd928;
    --banana-dark: #e5b800;
    --mint: #2cb67d;
    --coral: #ff6b35;
    --container: 1200px;
    --shadow: 0 18px 50px rgba(23, 25, 29, 0.09);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

.container {
    width: min(var(--container), calc(100% - 40px));
    margin-right: auto;
    margin-left: auto;
}

.section-space {
    margin-top: 96px;
    margin-bottom: 96px;
}

.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    border-bottom: 1px solid rgba(23, 25, 29, 0.08);
    background: rgba(255, 253, 247, 0.94);
    backdrop-filter: blur(16px);
}

.header-inner {
    display: flex;
    min-height: 78px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 11px;
}

.brand-mark {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 2px solid var(--ink);
    border-radius: 55% 45% 52% 48%;
    color: var(--ink);
    background: var(--banana);
    box-shadow: 4px 4px 0 var(--ink);
    font-weight: 900;
    transform: rotate(-5deg);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-copy strong {
    font-size: 1.08rem;
    letter-spacing: 0.06em;
}

.brand-copy small {
    margin-top: 5px;
    color: var(--muted);
    font-size: 0.75rem;
}

.main-nav {
    min-width: 0;
}

.nav-list {
    display: flex;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.nav-list a {
    display: flex;
    padding: 9px 10px;
    align-items: center;
    gap: 5px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 700;
    white-space: nowrap;
    transition: 0.2s ease;
}

.nav-list a:hover,
.nav-list a.is-active {
    background: var(--banana);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--ink);
    background: var(--surface);
    cursor: pointer;
}

.hero {
    position: relative;
    display: grid;
    min-height: 590px;
    margin-top: 42px;
    padding: 68px 72px;
    grid-template-columns: 1.05fr 0.75fr;
    align-items: center;
    gap: 64px;
    overflow: hidden;
    border: 2px solid var(--ink);
    border-radius: 32px;
    background: var(--banana);
    box-shadow: 12px 12px 0 var(--ink);
}

.hero::before {
    position: absolute;
    top: -80px;
    right: 34%;
    width: 220px;
    height: 220px;
    border: 2px solid rgba(23, 25, 29, 0.2);
    border-radius: 50%;
    content: "";
}

.hero-copy {
    position: relative;
    z-index: 2;
}

.eyebrow {
    display: inline-block;
    color: #786300;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.eyebrow.light {
    color: var(--banana);
}

.hero h1 {
    margin: 14px 0 22px;
    font-size: clamp(3.6rem, 7vw, 6.6rem);
    line-height: 0.95;
    letter-spacing: -0.07em;
}

.hero h1 a {
    display: inline-block;
}

.hero-copy > p {
    max-width: 650px;
    margin: 0;
    font-size: 1.08rem;
    font-weight: 600;
}

.hero-actions {
    display: flex;
    margin-top: 32px;
    flex-wrap: wrap;
    gap: 14px;
}

.button {
    display: inline-flex;
    min-height: 48px;
    padding: 0 22px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px solid var(--ink);
    border-radius: 14px;
    font-weight: 900;
    transition: 0.2s ease;
}

.button:hover {
    transform: translateY(-3px);
}

.button-primary {
    color: #ffffff;
    background: var(--ink);
    box-shadow: 4px 4px 0 rgba(23, 25, 29, 0.2);
}

.button-ghost {
    background: rgba(255, 255, 255, 0.52);
}

.button-light {
    color: var(--ink);
    background: var(--banana);
}

.button-dark {
    color: var(--banana);
    background: var(--ink);
}

.hero-metrics {
    display: flex;
    margin-top: 38px;
    flex-wrap: wrap;
    gap: 24px;
    color: #544900;
    font-size: 0.86rem;
}

.hero-metrics span {
    display: flex;
    flex-direction: column;
}

.hero-metrics strong {
    color: var(--ink);
    font-size: 1.35rem;
}

.hero-art {
    position: relative;
    z-index: 1;
    max-width: 390px;
    margin: 0 auto;
}

.hero-cover {
    overflow: hidden;
    border: 3px solid var(--ink);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 12px 14px 0 rgba(23, 25, 29, 0.9);
    transform: rotate(3deg);
}

.hero-cover img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.speech-bubble {
    position: absolute;
    bottom: 40px;
    left: -76px;
    max-width: 190px;
    padding: 14px 18px;
    border: 2px solid var(--ink);
    border-radius: 18px 18px 4px 18px;
    background: #ffffff;
    box-shadow: 5px 5px 0 var(--ink);
    font-weight: 900;
    transform: rotate(-4deg);
}

.hero-sticker {
    position: absolute;
    top: -24px;
    right: -34px;
    display: grid;
    width: 78px;
    height: 78px;
    place-items: center;
    border: 2px solid var(--ink);
    border-radius: 50%;
    color: #ffffff;
    background: var(--coral);
    font-weight: 900;
    letter-spacing: 0.08em;
    transform: rotate(10deg);
}

.quick-shelf {
    display: flex;
    padding: 28px 34px;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.compact-heading {
    flex: 0 0 auto;
}

.heading-icon {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border: 2px solid var(--ink);
    border-radius: 16px;
    background: var(--banana);
    box-shadow: 4px 4px 0 var(--ink);
    font-size: 1.5rem;
}

.compact-heading {
    display: flex;
    align-items: center;
    gap: 16px;
}

.compact-heading h2 {
    margin: 2px 0 0;
    font-size: 1.35rem;
}

.mood-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.mood-pills a {
    display: inline-flex;
    padding: 9px 14px;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #faf9f5;
    font-size: 0.9rem;
    font-weight: 700;
}

.mood-pills a:hover {
    border-color: var(--ink);
    background: var(--banana);
}

.section-heading {
    display: flex;
    margin-bottom: 32px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.section-heading h2 {
    margin: 6px 0 4px;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.section-heading p {
    margin: 0;
    color: var(--muted);
}

.centered-heading {
    justify-content: center;
    text-align: center;
}

.text-link {
    flex: 0 0 auto;
    padding-bottom: 4px;
    border-bottom: 2px solid var(--ink);
    font-weight: 900;
}

.comic-grid {
    display: grid;
    gap: 22px;
}

.five-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.comic-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
    transition: 0.22s ease;
}

.comic-card:hover {
    border-color: var(--ink);
    box-shadow: 7px 7px 0 var(--banana);
    transform: translateY(-5px);
}

.cover-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: #ece9df;
}

.cover-link img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.comic-card:hover .cover-link img {
    transform: scale(1.035);
}

.cover-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    padding: 4px 9px;
    border-radius: 8px;
    color: #ffffff;
    background: rgba(23, 25, 29, 0.88);
    font-size: 0.72rem;
    font-weight: 800;
}

.card-body {
    padding: 16px;
}

.card-body h3 {
    margin: 0;
    overflow: hidden;
    font-size: 1.05rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-body p {
    display: -webkit-box;
    min-height: 66px;
    margin: 8px 0 12px;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.83rem;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #8b7100;
    font-size: 0.72rem;
    font-weight: 800;
}

.ranking-zone {
    padding: 86px 0;
    color: #ffffff;
    background: var(--ink);
}

.ranking-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 80px;
}

.ranking-intro h2 {
    margin: 10px 0 18px;
    font-size: clamp(2.6rem, 5vw, 5rem);
    line-height: 1;
}

.ranking-intro p {
    max-width: 440px;
    margin: 0 0 30px;
    color: #bfc2c7;
}

.ranking-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ranking-list li {
    display: grid;
    padding: 17px 0;
    grid-template-columns: 52px 1fr 42px;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.rank-number {
    color: var(--banana);
    font-size: 1.4rem;
    font-weight: 900;
}

.ranking-list strong,
.ranking-list div span {
    display: block;
}

.ranking-list div span {
    color: #9fa3aa;
    font-size: 0.8rem;
}

.ranking-list > li > a {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.category-card {
    position: relative;
    min-height: 285px;
    padding: 28px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface);
    transition: 0.22s ease;
}

.category-card::after {
    position: absolute;
    right: -42px;
    bottom: -42px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--category-color) 18%, transparent);
    content: "";
}

.category-card:hover {
    color: #ffffff;
    border-color: var(--category-color);
    background: var(--category-color);
    transform: translateY(-6px);
}

.category-icon {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 16px;
    color: #ffffff;
    background: var(--category-color);
    font-size: 1.45rem;
}

.category-card:hover .category-icon {
    color: var(--ink);
    background: var(--banana);
}

.category-card h3 {
    margin: 22px 0 8px;
    font-size: 1.25rem;
}

.category-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.category-card:hover p {
    color: rgba(255, 255, 255, 0.82);
}

.category-arrow {
    display: inline-block;
    margin-top: 18px;
    font-size: 0.82rem;
    font-weight: 900;
}

.editor-feature {
    display: grid;
    padding: 26px;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 58px;
    border: 2px solid var(--ink);
    border-radius: 30px;
    background: #ffe9f3;
    box-shadow: 10px 10px 0 var(--ink);
}

.feature-image {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.feature-image img {
    width: 100%;
    aspect-ratio: 1.52 / 1;
    object-fit: cover;
}

.feature-label {
    position: absolute;
    top: 18px;
    left: 18px;
    padding: 6px 12px;
    border: 2px solid var(--ink);
    border-radius: 8px;
    background: var(--banana);
    font-size: 0.78rem;
    font-weight: 900;
}

.feature-copy {
    padding-right: 28px;
}

.feature-copy h2 {
    margin: 8px 0 18px;
    font-size: clamp(2.2rem, 4vw, 4.3rem);
    line-height: 1.05;
}

.feature-copy p {
    color: #65565d;
}

.tag-list {
    display: flex;
    margin: 24px 0 30px;
    padding: 0;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
}

.tag-list li {
    padding: 5px 10px;
    border: 1px solid #d9a8bd;
    border-radius: 999px;
    font-size: 0.8rem;
}

.poster-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.poster-row article {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--ink);
}

.poster-row img {
    width: 100%;
    aspect-ratio: 4 / 6;
    object-fit: cover;
    transition: 0.3s ease;
}

.poster-row a:hover img {
    transform: scale(1.04);
}

.poster-row span {
    display: block;
    padding: 18px;
    color: #ffffff;
    font-weight: 900;
}

.update-calendar {
    padding: 80px 0;
    background: #eaf8f2;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 12px;
}

.day-card {
    display: flex;
    min-height: 180px;
    padding: 18px;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid #cbe6da;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
}

.day-card > span {
    color: #358064;
    font-size: 0.78rem;
    font-weight: 900;
}

.day-card strong {
    line-height: 1.35;
}

.day-card small {
    color: var(--muted);
}

.day-card.is-today {
    border: 2px solid var(--ink);
    background: var(--banana);
    box-shadow: 5px 5px 0 var(--ink);
    transform: translateY(-8px);
}

.reader-tools {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    align-items: center;
    gap: 60px;
}

.tools-copy h2 {
    margin: 8px 0 18px;
    font-size: clamp(2rem, 4vw, 3.8rem);
    line-height: 1.1;
}

.tools-copy p {
    color: var(--muted);
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.tool-grid article {
    padding: 25px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
}

.tool-grid article > span {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    background: var(--banana);
    font-size: 1.3rem;
}

.tool-grid h3 {
    margin: 16px 0 4px;
}

.tool-grid p {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.completed-strip {
    display: grid;
    padding: 38px;
    grid-template-columns: 0.45fr 1.55fr;
    gap: 44px;
    border-radius: 26px;
    color: #ffffff;
    background: #3657d8;
}

.completed-head {
    display: flex;
    align-items: center;
    gap: 16px;
}

.completed-head > span {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 50%;
    color: var(--ink);
    background: var(--banana);
    font-weight: 900;
}

.completed-head h2 {
    margin: 3px 0 0;
}

.completed-head .eyebrow {
    color: #cad4ff;
}

.completed-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.completed-list a {
    display: flex;
    min-height: 98px;
    padding: 14px;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
}

.completed-list span {
    color: #cfd7ff;
    font-size: 0.76rem;
}

.voice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.voice-grid blockquote {
    position: relative;
    margin: 0;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface);
}

.voice-grid blockquote::before {
    color: var(--banana-dark);
    content: "“";
    font-family: Georgia, serif;
    font-size: 4.5rem;
    line-height: 0.7;
}

.voice-grid p {
    margin: 18px 0 24px;
}

.voice-grid footer {
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 800;
}

.about-section {
    display: grid;
    padding: 58px;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 70px;
    border: 2px solid var(--ink);
    border-radius: 28px;
    background: #ffffff;
}

.about-title-block {
    position: relative;
}

.about-number {
    display: block;
    color: var(--banana);
    font-size: 7rem;
    font-weight: 950;
    line-height: 0.85;
    text-shadow: 3px 3px 0 var(--ink);
}

.about-title-block h2 {
    margin: 15px 0 0;
    font-size: 2.5rem;
    line-height: 1.15;
}

.about-copy p {
    margin: 0 0 20px;
    color: #4f555b;
}

.about-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.about-points span {
    padding: 7px 12px;
    border: 1px solid var(--ink);
    border-radius: 8px;
    background: var(--banana);
    font-size: 0.8rem;
    font-weight: 900;
}

.app-panel {
    display: grid;
    width: min(var(--container), calc(100% - 40px));
    margin-right: auto;
    margin-left: auto;
    padding: 58px 68px;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 70px;
    border-radius: 28px;
    background: var(--banana);
}

.app-copy h2 {
    margin: 8px 0 14px;
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1.1;
}

.app-copy p {
    max-width: 680px;
    margin: 0 0 26px;
}

.qr-card {
    width: 220px;
    padding: 18px;
    border: 2px solid var(--ink);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 7px 7px 0 var(--ink);
    text-align: center;
}

.qr-pattern {
    display: grid;
    width: 130px;
    height: 130px;
    margin: 0 auto 12px;
    place-items: center;
    border: 10px dotted var(--ink);
    color: var(--ink);
    background: repeating-linear-gradient(45deg, var(--banana) 0 8px, #ffffff 8px 16px);
    font-size: 2.4rem;
    font-weight: 950;
}

.qr-card strong,
.qr-card span {
    display: block;
}

.qr-card span {
    color: var(--muted);
    font-size: 0.76rem;
}

.site-footer {
    margin-top: 96px;
    padding: 55px 0;
    color: #ffffff;
    background: var(--ink);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 60px;
}

.footer-brand {
    color: var(--banana);
    font-size: 1.3rem;
    font-weight: 950;
}

.footer-grid p {
    margin: 10px 0 0;
    color: #aeb2b8;
    font-size: 0.86rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, auto);
    align-content: start;
    gap: 10px 28px;
    font-size: 0.88rem;
}

.footer-links a:hover {
    color: var(--banana);
}

.footer-note {
    text-align: right;
}

.breadcrumb {
    display: flex;
    margin-top: 38px;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    color: var(--muted);
    font-size: 0.85rem;
}

.breadcrumb a:hover {
    color: var(--ink);
}

.category-hero {
    display: grid;
    margin-top: 24px;
    padding: 48px 56px;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 30px;
    border: 2px solid var(--ink);
    border-radius: 26px;
    background: color-mix(in srgb, var(--category-color) 13%, white);
    box-shadow: 8px 8px 0 var(--ink);
}

.category-hero-icon {
    display: grid;
    width: 74px;
    height: 74px;
    place-items: center;
    border-radius: 20px;
    color: #ffffff;
    background: var(--category-color);
    font-size: 2rem;
}

.category-hero h1 {
    margin: 0 0 7px;
    font-size: clamp(2.3rem, 5vw, 4rem);
    line-height: 1.1;
}

.category-hero p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
}

.category-count {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.category-count strong {
    color: var(--category-color);
    font-size: 2.6rem;
    line-height: 1;
}

.category-count span {
    color: var(--muted);
    font-size: 0.78rem;
}

.category-note {
    display: flex;
    padding: 34px;
    align-items: center;
    gap: 24px;
    border: 1px solid #d8d4c9;
    border-radius: 22px;
    background: #f4f1e9;
}

.category-note h2,
.category-note p {
    margin: 0;
}

.category-note h2 {
    font-size: 1.2rem;
}

.category-note p {
    color: var(--muted);
    font-size: 0.9rem;
}

.reader-shell {
    margin-top: 24px;
}

.reader-header {
    padding: 54px;
    border: 2px solid var(--ink);
    border-radius: 26px;
    background: var(--banana);
    box-shadow: 8px 8px 0 var(--ink);
    text-align: center;
}

.reader-header h1 {
    margin: 8px 0 15px;
    font-size: clamp(2.4rem, 5vw, 4.6rem);
    line-height: 1.08;
}

.reader-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 24px;
    color: #665700;
    font-size: 0.84rem;
    font-weight: 700;
}

.reading-guide {
    display: flex;
    max-width: 820px;
    margin: 30px auto 0;
    padding: 16px 20px;
    align-items: flex-start;
    gap: 12px;
    border: 1px solid rgba(23, 25, 29, 0.25);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.45);
    text-align: left;
}

.reading-guide p {
    margin: 0;
    font-size: 0.9rem;
}

.chapter-content {
    max-width: 900px;
    margin: 70px auto;
}

.chapter-content > h2 {
    margin: 0 0 30px;
    text-align: center;
}

.chapter-content figure {
    margin: 0 0 34px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.chapter-content figure img {
    width: 100%;
    aspect-ratio: 5 / 7;
    object-fit: cover;
}

.chapter-content figcaption {
    padding: 12px 16px;
    color: var(--muted);
    font-size: 0.78rem;
    text-align: center;
}

.chapter-end {
    padding: 45px 28px;
    border: 2px dashed var(--ink);
    border-radius: 22px;
    background: #ffffff;
    text-align: center;
}

.chapter-end > span {
    color: var(--banana-dark);
    font-size: 2rem;
}

.chapter-end h2 {
    margin: 8px 0;
}

.chapter-end p {
    margin: 0;
    color: var(--muted);
}

.chapter-nav {
    display: grid;
    margin-bottom: 90px;
    grid-template-columns: 1fr auto 1fr;
    align-items: stretch;
    gap: 16px;
}

.chapter-link {
    display: flex;
    min-height: 90px;
    padding: 18px;
    flex-direction: column;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #ffffff;
}

.chapter-link.next {
    text-align: right;
}

.chapter-link span {
    color: var(--muted);
    font-size: 0.76rem;
}

.back-section {
    display: grid;
    min-width: 120px;
    place-items: center;
    border: 2px solid var(--ink);
    border-radius: 16px;
    background: var(--banana);
    font-weight: 900;
}

@media (max-width: 1100px) {
    .header-inner {
        min-height: 72px;
    }

    .nav-toggle {
        display: grid;
        place-items: center;
    }

    .main-nav {
        position: absolute;
        top: calc(100% + 1px);
        right: 20px;
        left: 20px;
        display: none;
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: 18px;
        background: var(--surface);
        box-shadow: var(--shadow);
    }

    .main-nav.is-open {
        display: block;
    }

    .nav-list {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .nav-list a {
        justify-content: center;
    }

    .five-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .five-grid .comic-card:last-child {
        grid-column: 1 / -1;
        width: calc(50% - 11px);
        justify-self: center;
    }

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

    .completed-strip {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .section-space {
        margin-top: 70px;
        margin-bottom: 70px;
    }

    .hero {
        min-height: auto;
        padding: 48px 34px;
        grid-template-columns: 1fr;
        gap: 54px;
    }

    .hero-art {
        width: min(78%, 390px);
    }

    .quick-shelf,
    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .mood-pills {
        justify-content: flex-start;
    }

    .ranking-layout,
    .editor-feature,
    .reader-tools,
    .about-section {
        grid-template-columns: 1fr;
    }

    .category-grid,
    .poster-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .calendar-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .day-card:last-child {
        grid-column: 1 / -1;
    }

    .voice-grid {
        grid-template-columns: 1fr;
    }

    .completed-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .completed-list a:last-child {
        grid-column: 1 / -1;
    }

    .app-panel {
        padding: 44px 34px;
        grid-template-columns: 1fr;
    }

    .qr-card {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-note {
        text-align: left;
    }

    .category-hero {
        grid-template-columns: auto 1fr;
    }

    .category-count {
        grid-column: 1 / -1;
        text-align: left;
    }
}

@media (max-width: 560px) {
    .container,
    .app-panel {
        width: min(100% - 24px, var(--container));
    }

    .brand-copy small {
        display: none;
    }

    .nav-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero {
        margin-top: 24px;
        padding: 36px 22px;
        border-radius: 22px;
        box-shadow: 6px 6px 0 var(--ink);
    }

    .hero h1 {
        font-size: clamp(3.1rem, 17vw, 4.5rem);
    }

    .hero-art {
        width: 82%;
    }

    .speech-bubble {
        bottom: 18px;
        left: -34px;
        max-width: 155px;
        font-size: 0.82rem;
    }

    .hero-sticker {
        right: -24px;
        width: 62px;
        height: 62px;
        font-size: 0.75rem;
    }

    .quick-shelf {
        padding: 24px;
    }

    .mood-pills a {
        flex: 1 0 calc(50% - 10px);
        justify-content: center;
    }

    .five-grid,
    .category-grid,
    .poster-row,
    .tool-grid,
    .calendar-grid,
    .completed-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .five-grid .comic-card:last-child {
        width: calc(50% - 8px);
    }

    .card-body {
        padding: 12px;
    }

    .card-body p {
        display: none;
    }

    .card-meta span:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .category-card {
        min-height: 245px;
        padding: 20px;
    }

    .category-card p {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }

    .editor-feature {
        padding: 18px;
        gap: 30px;
        box-shadow: 6px 6px 0 var(--ink);
    }

    .feature-copy {
        padding: 0 4px 10px;
    }

    .day-card:last-child,
    .completed-list a:last-child {
        grid-column: 1 / -1;
    }

    .about-section,
    .app-panel {
        padding: 34px 24px;
        gap: 34px;
    }

    .about-number {
        font-size: 5rem;
    }

    .category-hero {
        padding: 30px 24px;
        grid-template-columns: 1fr;
        gap: 20px;
        box-shadow: 5px 5px 0 var(--ink);
    }

    .category-count {
        grid-column: auto;
    }

    .category-note {
        align-items: flex-start;
        flex-direction: column;
    }

    .reader-header {
        padding: 36px 20px;
        box-shadow: 5px 5px 0 var(--ink);
    }

    .reader-meta {
        align-items: center;
        flex-direction: column;
        gap: 5px;
    }

    .chapter-content {
        margin-top: 50px;
    }

    .chapter-content figure {
        border-radius: 10px;
    }

    .chapter-nav {
        grid-template-columns: 1fr 1fr;
    }

    .back-section {
        min-height: 54px;
        grid-column: 1 / -1;
        grid-row: 2;
    }
}
