:root {
    --banana: #ffd83d;
    --banana-soft: #fff4b5;
    --ink: #14213d;
    --ink-soft: #43506a;
    --paper: #fffdf7;
    --white: #ffffff;
    --coral: #ff6b57;
    --mint: #80d8c3;
    --violet: #7568ff;
    --line: #e9e4d8;
    --shadow: 0 18px 60px rgba(20, 33, 61, 0.12);
    --radius-lg: 30px;
    --radius-md: 20px;
    --shell: min(1180px, calc(100% - 40px));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

body.dark-theme {
    --paper: #0f172b;
    --white: #182238;
    --ink: #f7f3e8;
    --ink-soft: #c8ced9;
    --line: #2b3850;
    --shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

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

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.shell {
    width: var(--shell);
    margin-right: auto;
    margin-left: auto;
}

.ui-icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.site-header {
    position: sticky;
    z-index: 40;
    top: 0;
    border-bottom: 1px solid rgba(233, 228, 216, 0.8);
    background: color-mix(in srgb, var(--paper) 92%, transparent);
    backdrop-filter: blur(18px);
}

.header-shell {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    min-height: 78px;
    gap: 28px;
}

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

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

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

.brand-copy strong {
    font-size: 18px;
    letter-spacing: 1px;
}

.brand-copy small {
    margin-top: 4px;
    color: var(--ink-soft);
    font-size: 9px;
    letter-spacing: 1.5px;
}

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

.nav-link {
    display: flex;
    align-items: center;
    padding: 9px 10px;
    border-radius: 12px;
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 700;
    gap: 6px;
    transition: 180ms ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #14213d;
    background: var(--banana);
}

.theme-toggle,
.menu-toggle {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--ink);
    background: var(--white);
}

.menu-toggle {
    display: none;
}

.hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    min-height: 640px;
    padding-top: 68px;
    padding-bottom: 72px;
    gap: 72px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--coral);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
}

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

.hero h1 {
    margin: 0;
    font-size: clamp(64px, 9vw, 116px);
    line-height: 0.92;
    letter-spacing: -7px;
}

.hero h1 a {
    background: linear-gradient(120deg, var(--ink) 0 58%, var(--coral) 58% 100%);
    background-clip: text;
    color: transparent;
}

.hero-lead {
    max-width: 640px;
    margin: 30px 0;
    color: var(--ink-soft);
    font-size: 18px;
}

.comic-search label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.search-control {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 8px 8px 8px 18px;
    border: 2px solid var(--ink);
    border-radius: 18px;
    background: var(--white);
    gap: 12px;
    box-shadow: 7px 7px 0 var(--banana);
}

.search-control input {
    min-width: 0;
    border: 0;
    outline: 0;
    color: var(--ink);
    background: transparent;
}

.search-control button,
.subscribe-button {
    padding: 11px 18px;
    border: 0;
    border-radius: 12px;
    color: white;
    background: var(--ink);
    font-weight: 800;
}

.search-feedback {
    margin: 13px 0 0;
    color: var(--ink-soft);
    font-size: 12px;
}

.hero-actions {
    display: flex;
    margin-top: 26px;
    gap: 12px;
    flex-wrap: wrap;
}

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

.button-primary {
    color: white;
    background: var(--ink);
}

.button-ghost {
    background: transparent;
}

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

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

.hero-art {
    position: relative;
    min-height: 520px;
}

.hero-poster {
    position: absolute;
    inset: 10px 35px 10px 50px;
    overflow: hidden;
    border: 3px solid var(--ink);
    border-radius: 48% 48% 22px 22px;
    background: var(--banana-soft);
    box-shadow: 14px 14px 0 var(--ink);
    transform: rotate(2deg);
}

.hero-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.poster-caption {
    position: absolute;
    right: 18px;
    bottom: 18px;
    left: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-radius: 14px;
    color: white;
    background: rgba(20, 33, 61, 0.88);
}

.poster-caption span {
    font-size: 12px;
}

.hero-sticker {
    position: absolute;
    display: grid;
    place-items: center;
    border: 2px solid var(--ink);
    color: #14213d;
    background: var(--banana);
    font-weight: 900;
    box-shadow: 5px 5px 0 var(--ink);
}

.sticker-one {
    top: 45px;
    left: 0;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    transform: rotate(-12deg);
}

.sticker-two {
    right: 0;
    bottom: 55px;
    padding: 10px 18px;
    border-radius: 12px;
    transform: rotate(8deg);
}

.section {
    margin-top: 108px;
    margin-bottom: 108px;
}

.section-heading {
    margin-bottom: 34px;
}

.section-heading h2,
.spotlight-copy h2,
.completed-copy h2,
.about-copy h2,
.app-copy h2 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.12;
    letter-spacing: -2px;
}

.split-heading,
.row-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 32px;
}

.split-heading > p,
.row-heading > p {
    max-width: 470px;
    margin: 0;
    color: var(--ink-soft);
}

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

.category-card {
    position: relative;
    min-height: 280px;
    padding: 26px;
    overflow: hidden;
    border: 2px solid var(--ink);
    border-radius: var(--radius-md);
    color: #14213d;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.category-card:hover {
    z-index: 2;
    transform: translateY(-7px) rotate(-1deg);
    box-shadow: 8px 8px 0 var(--ink);
}

.tone-1,
.tone-5 {
    background: var(--banana);
}

.tone-2,
.tone-7 {
    background: #ff9d90;
}

.tone-3,
.tone-6 {
    background: #a8e8d8;
}

.tone-4 {
    background: #b9b2ff;
}

.tone-8 {
    background: #ffd6a5;
}

.category-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.category-number {
    position: absolute;
    top: 18px;
    right: 22px;
    font-size: 12px;
    font-weight: 900;
}

.category-card h3 {
    margin: 34px 0 10px;
    font-size: 24px;
}

.category-card p {
    margin: 0 0 18px;
    font-size: 14px;
}

.category-cta {
    font-size: 13px;
    font-weight: 900;
}

.comic-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.comic-card {
    min-width: 0;
}

.cover-link {
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border: 2px solid var(--ink);
    border-radius: 18px;
    background: var(--line);
}

.cover-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 250ms ease;
}

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

.card-body {
    padding: 16px 4px 0;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    color: var(--ink-soft);
    font-size: 11px;
    font-weight: 700;
}

.card-body h3 {
    margin: 7px 0;
    font-size: 20px;
    line-height: 1.3;
}

.card-body p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--ink-soft);
    font-size: 13px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
}

.text-link {
    font-size: 13px;
    font-weight: 900;
}

.shelf-button {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border: 0;
    border-radius: 8px;
    color: var(--ink-soft);
    background: transparent;
    font-size: 11px;
    gap: 4px;
}

.shelf-button.is-saved {
    color: #14213d;
    background: var(--banana);
}

.ranking-band {
    padding: 82px 0;
    color: white;
    background: var(--ink);
}

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

.ranking-intro h2 {
    margin: 0 0 20px;
    font-size: clamp(44px, 6vw, 72px);
    line-height: 1;
}

.ranking-intro p {
    margin-bottom: 28px;
    color: #cbd2df;
}

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

.ranking-list li {
    display: grid;
    grid-template-columns: 54px 1fr auto;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    gap: 16px;
}

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

.ranking-list h3,
.ranking-list p {
    margin: 0;
}

.ranking-list h3 {
    font-size: 20px;
}

.ranking-list p {
    color: #aeb8c9;
    font-size: 12px;
}

.rank-arrow {
    font-size: 22px;
}

.spotlight-section {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 76px;
}

.spotlight-image {
    position: relative;
}

.spotlight-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    border: 3px solid var(--ink);
    border-radius: 150px 24px 24px 24px;
    object-fit: cover;
    box-shadow: 12px 12px 0 var(--mint);
}

.vertical-label {
    position: absolute;
    top: 28px;
    left: 22px;
    padding: 10px 8px;
    color: white;
    background: var(--ink);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 2px;
    writing-mode: vertical-rl;
}

.spotlight-copy p {
    color: var(--ink-soft);
}

.story-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 26px 0;
    padding: 18px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.story-facts div {
    padding: 0 14px;
    border-right: 1px solid var(--line);
}

.story-facts div:first-child {
    padding-left: 0;
}

.story-facts div:last-child {
    border-right: 0;
}

.story-facts dt {
    color: var(--ink-soft);
    font-size: 11px;
}

.story-facts dd {
    margin: 3px 0 0;
    font-weight: 900;
}

.route-section {
    padding: 60px;
    border: 2px solid var(--ink);
    border-radius: var(--radius-lg);
    background: var(--banana-soft);
    box-shadow: 10px 10px 0 var(--ink);
}

.route-line {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--ink);
}

.route-line article {
    padding: 28px;
    color: #14213d;
    background: var(--banana-soft);
}

.route-line span {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    color: white;
    background: var(--coral);
    font-size: 11px;
    font-weight: 900;
}

.route-line h3 {
    margin: 16px 0 7px;
}

.route-line p {
    margin: 0;
    font-size: 14px;
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    overflow: hidden;
    border: 2px solid var(--ink);
    border-radius: var(--radius-md);
}

.schedule-day {
    display: flex;
    flex-direction: column;
    min-height: 150px;
    padding: 22px 14px;
    border-right: 1px solid var(--line);
    background: var(--white);
}

.schedule-day:last-child {
    border-right: 0;
}

.schedule-day.is-today {
    color: #14213d;
    background: var(--banana);
}

.schedule-day strong {
    font-size: 13px;
}

.schedule-day span {
    margin-top: auto;
    font-size: 18px;
    font-weight: 900;
}

.schedule-day small {
    color: var(--ink-soft);
}

.mosaic-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    grid-template-rows: repeat(2, 260px);
    gap: 18px;
}

.mosaic-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.mosaic-item:first-child {
    grid-row: span 2;
}

.mosaic-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mosaic-overlay {
    position: absolute;
    inset: auto 0 0;
    padding: 48px 24px 22px;
    color: white;
    background: linear-gradient(transparent, rgba(10, 18, 36, 0.9));
}

.mosaic-overlay h3 {
    margin: 4px 0;
    font-size: 25px;
}

.mosaic-overlay span,
.mosaic-overlay a {
    font-size: 12px;
}

.completed-section {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    align-items: center;
    gap: 70px;
}

.completed-copy p {
    margin: 22px 0 28px;
    color: var(--ink-soft);
}

.completed-list {
    border-top: 2px solid var(--ink);
}

.completed-list a {
    display: grid;
    grid-template-columns: 52px 1fr 110px auto;
    align-items: center;
    padding: 22px 4px;
    border-bottom: 1px solid var(--line);
    gap: 12px;
}

.completed-list a:hover strong {
    color: var(--coral);
}

.completed-list span {
    color: var(--coral);
    font-weight: 900;
}

.completed-list small {
    color: var(--ink-soft);
}

.reading-guide {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 70px;
}

.guide-title h2 {
    margin: 0;
    font-size: 42px;
    line-height: 1.2;
}

.guide-steps {
    display: grid;
    gap: 18px;
}

.guide-steps article {
    display: grid;
    grid-template-columns: 58px 180px 1fr;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
    gap: 18px;
}

.guide-steps span {
    color: var(--coral);
    font-size: 24px;
    font-weight: 900;
}

.guide-steps h3,
.guide-steps p {
    margin: 0;
}

.guide-steps p {
    color: var(--ink-soft);
    font-size: 14px;
}

.shelf-section {
    display: grid;
    grid-template-columns: 110px 1fr;
    align-items: center;
    padding: 44px 54px;
    border-radius: var(--radius-lg);
    color: white;
    background: var(--violet);
    gap: 28px;
}

.shelf-icon {
    display: grid;
    width: 90px;
    height: 90px;
    place-items: center;
    border: 2px solid white;
    border-radius: 50%;
}

.shelf-icon .ui-icon {
    width: 34px;
    height: 34px;
}

.shelf-section h2,
.shelf-section p {
    margin: 0;
}

.shelf-section h2 {
    font-size: 32px;
}

.saved-books {
    display: flex;
    margin-top: 16px;
    gap: 8px;
    flex-wrap: wrap;
}

.saved-books span {
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 20px;
    font-size: 12px;
}

.about-section {
    display: grid;
    grid-template-columns: 170px 1fr 180px;
    align-items: start;
    padding-top: 65px;
    border-top: 2px solid var(--ink);
    gap: 48px;
}

.about-number {
    color: var(--coral);
    font-size: 13px;
    font-weight: 900;
}

.about-copy p {
    color: var(--ink-soft);
}

.about-points {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.about-points span {
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
}

.app-section {
    display: grid;
    grid-template-columns: 1fr 300px;
    align-items: center;
    padding: 68px;
    border-radius: var(--radius-lg);
    color: white;
    background: var(--ink);
    gap: 70px;
}

.app-copy p {
    max-width: 650px;
    color: #c8d0de;
}

.subscribe-button {
    margin-top: 14px;
    color: #14213d;
    background: var(--banana);
}

.subscribe-status {
    font-size: 12px;
}

.brand-code {
    padding: 20px;
    border-radius: 18px;
    color: #14213d;
    background: white;
    text-align: center;
}

.code-grid {
    display: grid;
    width: 160px;
    height: 160px;
    margin: 0 auto 14px;
    padding: 12px;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
    background: var(--banana-soft);
}

.code-grid i {
    border-radius: 4px;
    background: white;
}

.code-grid i.filled {
    background: #14213d;
}

.brand-code strong,
.brand-code span {
    display: block;
}

.brand-code span {
    color: #667085;
    font-size: 11px;
}

.site-footer {
    margin-top: 100px;
    padding: 62px 0 28px;
    border-top: 1px solid var(--line);
}

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

.footer-grid h2 {
    margin: 0 0 12px;
    font-size: 14px;
}

.footer-grid p,
.footer-links a {
    color: var(--ink-soft);
    font-size: 13px;
}

.footer-links {
    display: flex;
    flex-direction: column;
}

.copyright {
    grid-column: 1 / -1;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    text-align: center;
}

.inner-main,
.reader-main {
    padding-top: 34px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    min-height: 46px;
    color: var(--ink-soft);
    font-size: 13px;
    gap: 10px;
}

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

.category-hero {
    display: grid;
    grid-template-columns: 1fr 260px;
    align-items: center;
    min-height: 380px;
    margin-top: 28px;
    padding: 58px 64px;
    overflow: hidden;
    border: 2px solid var(--ink);
    border-radius: var(--radius-lg);
    color: #14213d;
    background: var(--banana-soft);
    gap: 40px;
}

.category-popular,
.category-romance {
    background: #ffe2dd;
}

.category-korean,
.category-action {
    background: #dff7f0;
}

.category-fantasy,
.category-completed,
.category-shorts {
    background: #e7e4ff;
}

.category-hero h1 {
    margin: 0;
    font-size: clamp(54px, 8vw, 90px);
    line-height: 1;
}

.category-hero p {
    max-width: 680px;
    font-size: 17px;
}

.category-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.category-tags span {
    padding: 6px 11px;
    border: 1px solid #14213d;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
}

.category-emblem {
    display: grid;
    width: 210px;
    height: 210px;
    place-items: center;
    border: 3px solid #14213d;
    border-radius: 50%;
    background: var(--banana);
    box-shadow: 12px 12px 0 #14213d;
    transform: rotate(6deg);
}

.category-emblem .ui-icon {
    width: 62px;
    height: 62px;
}

.category-emblem span {
    margin-top: -54px;
    font-size: 18px;
    font-weight: 900;
}

.category-comic-grid .feature-card {
    grid-column: span 2;
}

.category-comic-grid .feature-card .cover-link {
    aspect-ratio: 1.54 / 1;
}

.category-comic-grid .feature-card .card-body h3 {
    font-size: 25px;
}

.editorial-note {
    display: grid;
    grid-template-columns: 190px 1fr;
    padding: 42px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    gap: 36px;
}

.note-index {
    color: var(--coral);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 2px;
}

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

.editorial-note p {
    margin-top: 10px;
    color: var(--ink-soft);
}

.reader-article {
    max-width: 980px;
}

.reader-header {
    padding: 70px 40px 52px;
    text-align: center;
}

.reader-kicker {
    color: var(--coral);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 2px;
}

.reader-header h1 {
    margin: 14px 0 18px;
    font-size: clamp(48px, 8vw, 88px);
    line-height: 1.05;
    letter-spacing: -3px;
}

.reader-summary {
    max-width: 720px;
    margin: 0 auto;
    color: var(--ink-soft);
    font-size: 17px;
}

.reader-meta {
    display: flex;
    justify-content: center;
    margin-top: 26px;
    gap: 18px;
    flex-wrap: wrap;
}

.reader-meta span,
.reader-meta time {
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 20px;
    font-size: 11px;
}

.reading-notice {
    display: grid;
    grid-template-columns: 64px 1fr;
    padding: 25px;
    border-left: 5px solid var(--banana);
    border-radius: 0 16px 16px 0;
    background: var(--white);
    box-shadow: var(--shadow);
    gap: 18px;
}

.notice-icon {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 50%;
    color: #14213d;
    background: var(--banana);
}

.reading-notice h2,
.reading-notice p {
    margin: 0;
}

.reading-notice p {
    color: var(--ink-soft);
    font-size: 14px;
}

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

.chapter-heading {
    margin-bottom: 34px;
    text-align: center;
}

.chapter-heading span {
    color: var(--coral);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 2px;
}

.chapter-heading h2 {
    margin: 8px 0;
    font-size: 36px;
}

.chapter-heading p {
    max-width: 720px;
    margin: 0 auto;
    color: var(--ink-soft);
}

.reader-panels {
    display: grid;
    gap: 36px;
}

.reader-panel {
    margin: 0;
}

.reader-panel img {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 10px;
    background: var(--line);
    object-fit: cover;
}

.reader-panel figcaption {
    padding: 8px 4px;
    color: var(--ink-soft);
    font-size: 11px;
    text-align: center;
}

.chapter-end {
    margin: 60px 0;
    padding: 52px;
    border: 2px solid var(--ink);
    border-radius: var(--radius-lg);
    text-align: center;
    background: var(--banana-soft);
}

.chapter-end span {
    color: var(--coral);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 4px;
}

.chapter-end h2,
.chapter-end p {
    margin: 7px 0;
}

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

.chapter-button,
.chapter-home {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    font-size: 13px;
    font-weight: 800;
}

.chapter-button:last-child {
    text-align: right;
}

.chapter-home {
    color: white;
    background: var(--ink);
}

.is-hidden {
    display: none !important;
}

@media (max-width: 1100px) {
    .header-shell {
        grid-template-columns: auto auto auto;
        justify-content: space-between;
    }

    .menu-toggle {
        display: grid;
        order: 2;
    }

    .theme-toggle {
        order: 3;
    }

    .main-nav {
        position: absolute;
        top: 77px;
        right: 20px;
        left: 20px;
        display: none;
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: 16px;
        background: var(--white);
        box-shadow: var(--shadow);
        flex-wrap: wrap;
    }

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

    .comic-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .schedule-day {
        border-bottom: 1px solid var(--line);
    }
}

@media (max-width: 820px) {
    :root {
        --shell: min(100% - 28px, 720px);
    }

    .hero,
    .spotlight-section,
    .completed-section,
    .reading-guide,
    .about-section,
    .app-section,
    .ranking-layout {
        grid-template-columns: 1fr;
    }

    .hero {
        gap: 30px;
    }

    .hero-art {
        min-height: 480px;
    }

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

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

    .category-comic-grid .feature-card {
        grid-column: span 2;
    }

    .ranking-layout {
        gap: 38px;
    }

    .route-line {
        grid-template-columns: 1fr;
    }

    .mosaic-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(3, 300px);
    }

    .mosaic-item:first-child {
        grid-row: auto;
    }

    .reading-guide,
    .about-section,
    .app-section {
        gap: 30px;
    }

    .about-points {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .app-section {
        padding: 44px;
    }

    .brand-code {
        width: 260px;
        margin: 0 auto;
    }

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

    .footer-note {
        grid-column: 1 / -1;
    }

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

    .category-emblem {
        display: none;
    }
}

@media (max-width: 560px) {
    .brand-copy small,
    .theme-toggle {
        display: none;
    }

    .header-shell {
        grid-template-columns: auto auto;
    }

    .hero {
        min-height: auto;
        padding-top: 52px;
    }

    .hero h1 {
        font-size: 60px;
        letter-spacing: -4px;
    }

    .search-control {
        grid-template-columns: auto 1fr;
    }

    .search-control button {
        grid-column: 1 / -1;
    }

    .hero-art {
        min-height: 390px;
    }

    .hero-poster {
        inset: 10px 18px 10px 30px;
    }

    .section {
        margin-top: 74px;
        margin-bottom: 74px;
    }

    .split-heading,
    .row-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .category-grid,
    .comic-grid {
        grid-template-columns: 1fr 1fr;
        gap: 13px;
    }

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

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

    .card-body h3 {
        font-size: 16px;
    }

    .card-body p,
    .shelf-button {
        display: none;
    }

    .ranking-band {
        padding: 58px 0;
    }

    .spotlight-image img {
        border-radius: 80px 18px 18px 18px;
    }

    .route-section {
        padding: 28px;
    }

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

    .completed-list a {
        grid-template-columns: 40px 1fr auto;
    }

    .completed-list small {
        display: none;
    }

    .guide-steps article {
        grid-template-columns: 42px 1fr;
    }

    .guide-steps p {
        grid-column: 2;
    }

    .shelf-section {
        grid-template-columns: 1fr;
        padding: 34px;
    }

    .shelf-icon {
        width: 64px;
        height: 64px;
    }

    .app-section {
        padding: 34px 24px;
    }

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

    .footer-note {
        grid-column: auto;
    }

    .category-hero {
        min-height: 330px;
        padding: 38px 28px;
    }

    .category-hero h1 {
        font-size: 52px;
    }

    .editorial-note {
        grid-template-columns: 1fr;
        padding: 28px;
    }

    .reader-header {
        padding: 50px 8px 36px;
    }

    .reader-header h1 {
        font-size: 47px;
        letter-spacing: -2px;
    }

    .reading-notice {
        grid-template-columns: 1fr;
    }

    .chapter-heading h2 {
        font-size: 28px;
    }

    .chapter-end {
        padding: 34px 20px;
    }

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

    .chapter-button,
    .chapter-button:last-child,
    .chapter-home {
        text-align: center;
    }
}
