:root {
    --banana: #ffcf33;
    --banana-deep: #f2b705;
    --ink: #22221f;
    --muted: #6e6c65;
    --paper: #fffdf7;
    --surface: #ffffff;
    --line: #e9e5d9;
    --peach: #ff8b6a;
    --mint: #91d8c4;
    --lilac: #a99ade;
    --shadow: 0 18px 50px rgba(43, 38, 24, 0.1);
    --radius-lg: 28px;
    --radius-md: 18px;
}

* {
    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-mode {
    --ink: #f8f3e7;
    --muted: #b9b4a9;
    --paper: #171713;
    --surface: #24231f;
    --line: #3c3a32;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
}

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

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

button,
input {
    font: inherit;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--paper) 92%, transparent);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}

.header-inner,
main,
.footer-inner {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

.header-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    gap: 20px;
}

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

.brand-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    color: #3b2f00;
    background: var(--banana);
    border: 2px solid var(--ink);
    border-radius: 15px 15px 15px 5px;
    font-size: 28px;
    line-height: 1;
    transform: rotate(-8deg);
}

.brand-copy {
    display: grid;
    line-height: 1.25;
}

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

.brand-copy small {
    color: var(--muted);
    font-size: 10px;
}

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

.main-nav a {
    min-width: 68px;
    padding: 8px 7px;
    display: grid;
    justify-items: center;
    color: var(--muted);
    border-radius: 12px;
    font-size: 12px;
    transition: 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--ink);
    background: var(--banana);
}

.nav-icon {
    font-size: 17px;
    line-height: 1.2;
}

.theme-toggle,
.nav-toggle {
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    color: var(--ink);
    background: var(--surface);
    border-radius: 13px;
    cursor: pointer;
}

.nav-toggle {
    display: none;
}

.hero {
    margin-top: 54px;
    min-height: 560px;
    padding: 64px;
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    align-items: center;
    gap: 58px;
    background: linear-gradient(135deg, #fff2a7 0%, #ffcf33 52%, #ffae73 100%);
    border: 2px solid var(--ink);
    border-radius: 36px;
    box-shadow: 10px 12px 0 var(--ink);
    overflow: hidden;
}

.hero-kicker,
.eyebrow {
    display: inline-block;
    color: #77620a;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.hero h1 {
    margin: 10px 0 18px;
    font-size: clamp(54px, 7vw, 92px);
    line-height: 1;
    letter-spacing: -0.05em;
}

.hero p {
    max-width: 590px;
    margin: 0;
    color: #4d421d;
    font-size: 18px;
}

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

.button {
    min-height: 46px;
    padding: 10px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px solid var(--ink);
    border-radius: 14px;
    font-weight: 800;
    cursor: pointer;
}

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

.button.secondary,
.button.compact {
    color: var(--ink);
    background: #fffdf7;
}

.button.compact {
    padding: 8px 16px;
    white-space: nowrap;
}

.hero-stats {
    margin: 34px 0 0;
    padding: 0;
    display: flex;
    gap: 30px;
    list-style: none;
}

.hero-stats li {
    display: grid;
}

.hero-stats strong {
    font-size: 24px;
}

.hero-stats span {
    color: #6b5a1d;
    font-size: 12px;
}

.hero-feature {
    position: relative;
    min-width: 0;
    transform: rotate(3deg);
}

.hero-feature img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border: 3px solid var(--ink);
    border-radius: 24px;
    box-shadow: 14px 14px 0 rgba(34, 34, 31, 0.24);
}

.feature-caption {
    position: absolute;
    right: -20px;
    bottom: 24px;
    width: min(250px, 80%);
    padding: 18px;
    display: grid;
    color: #fff;
    background: var(--ink);
    border-radius: 16px;
}

.feature-caption span {
    color: var(--banana);
    font-size: 11px;
}

.feature-caption strong {
    font-size: 22px;
}

.feature-caption a {
    margin-top: 4px;
    font-size: 13px;
}

.continue-panel {
    margin-top: 56px;
    padding: 24px 28px;
    display: grid;
    grid-template-columns: auto 1fr minmax(180px, 0.5fr) auto;
    align-items: center;
    gap: 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
}

.continue-icon,
.section-icon,
.note-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    color: #3b2f00;
    background: var(--banana);
    border-radius: 15px;
    font-weight: 900;
}

.continue-panel h2,
.continue-panel p {
    margin: 0;
}

.continue-panel h2 {
    font-size: 19px;
}

.continue-panel p {
    color: var(--muted);
    font-size: 13px;
}

.reading-progress {
    height: 8px;
    background: var(--line);
    border-radius: 99px;
    overflow: hidden;
}

.reading-progress span {
    height: 100%;
    display: block;
    background: var(--peach);
    border-radius: inherit;
}

.content-section,
.app-module {
    margin-top: 104px;
}

.section-heading {
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: 1fr minmax(260px, 0.7fr) auto;
    align-items: end;
    gap: 20px;
}

.heading-title {
    display: flex;
    align-items: center;
    gap: 14px;
}

.section-heading h2 {
    margin: 2px 0 0;
    font-size: clamp(27px, 4vw, 38px);
    line-height: 1.2;
}

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

.text-link {
    font-weight: 800;
    white-space: nowrap;
}

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

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

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

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

.comic-cover {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--line);
    border-radius: 18px;
}

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

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

.status-badge {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 4px 9px;
    color: #fff;
    background: rgba(34, 34, 31, 0.86);
    border-radius: 99px;
    font-size: 10px;
}

.comic-info {
    padding: 14px 3px 0;
}

.comic-type {
    color: #b27600;
    font-size: 11px;
    font-weight: 800;
}

.comic-info h3 {
    margin: 3px 0 5px;
    font-size: 17px;
    line-height: 1.35;
}

.comic-info p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.ranking-section {
    padding: 48px;
    background: var(--ink);
    border-radius: var(--radius-lg);
}

.ranking-section .section-heading,
.ranking-section .section-heading p,
.ranking-section .text-link {
    color: #fff;
}

.ranking-list {
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    list-style: none;
}

.ranking-list li {
    padding: 16px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    color: var(--ink);
    background: #fffdf7;
    border-radius: 17px;
}

.ranking-list img {
    width: 54px;
    height: 54px;
    grid-row: 1 / span 2;
    object-fit: cover;
    border-radius: 12px;
}

.rank-number {
    position: absolute;
    margin: -26px 0 0 -8px;
    color: var(--banana);
    font-size: 28px;
    font-weight: 900;
    text-shadow: 1px 1px 0 var(--ink);
}

.ranking-list div {
    min-width: 0;
    display: grid;
}

.ranking-list a {
    overflow: hidden;
    font-size: 14px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-list div span,
.ranking-list em {
    color: #777165;
    font-size: 10px;
    font-style: normal;
}

.ranking-list em {
    grid-column: 1 / -1;
}

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

.category-card {
    position: relative;
    min-height: 210px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.category-latest,
.category-romance {
    background: #fff2c6;
}

.category-popular,
.category-action {
    background: #ffe0d6;
}

.category-korean,
.category-completed {
    background: #e2f4ef;
}

.category-fantasy,
.category-healing {
    background: #e8e1f8;
}

.category-icon {
    font-size: 34px;
}

.category-card h3 {
    margin: 16px 0 6px;
    color: #22221f;
    font-size: 19px;
}

.category-card p {
    margin: 0;
    color: #625e55;
    font-size: 12px;
}

.category-arrow {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #22221f;
    font-size: 18px;
}

.korean-feature {
    padding: 40px;
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 54px;
    align-items: center;
    background: #e2f4ef;
    border-radius: var(--radius-lg);
}

.korean-visual {
    position: relative;
}

.korean-visual img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 22px;
}

.vertical-label {
    position: absolute;
    top: 20px;
    left: -16px;
    padding: 12px 8px;
    color: #fff;
    background: var(--ink);
    border-radius: 8px;
    writing-mode: vertical-rl;
    letter-spacing: 0.18em;
}

.korean-copy h2 {
    margin: 8px 0 16px;
    color: #22221f;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.2;
}

.korean-copy p {
    color: #55534c;
}

.feature-points {
    margin: 22px 0 26px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    color: #22221f;
    list-style: none;
    font-size: 13px;
    font-weight: 700;
}

.feature-points span {
    color: #08785f;
}

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

.schedule-day {
    min-height: 154px;
    padding: 18px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
}

.schedule-day.active {
    color: #22221f;
    background: var(--banana);
    border-color: var(--ink);
    transform: translateY(-8px);
}

.schedule-day span,
.schedule-day small {
    color: var(--muted);
    font-size: 11px;
}

.schedule-day.active span,
.schedule-day.active small {
    color: #5f4d08;
}

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

.mood-section {
    padding: 52px;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 46px;
    align-items: center;
    color: #fff;
    background: linear-gradient(135deg, #453c63, #24232e);
    border-radius: var(--radius-lg);
}

.mood-copy h2 {
    margin: 7px 0;
    font-size: 36px;
}

.mood-copy p {
    margin: 0;
    color: #cfc9dc;
}

.mood-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
}

.mood-tags a {
    padding: 13px 18px;
    border: 1px solid #77708b;
    border-radius: 99px;
    transition: 0.2s ease;
}

.mood-tags a:hover {
    color: #22221f;
    background: var(--banana);
    border-color: var(--banana);
}

.shelf-section {
    min-height: 390px;
    padding: 48px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
    background: #fff1ec;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.shelf-copy {
    color: #22221f;
}

.shelf-copy h2 {
    margin: 10px 0;
    font-size: 38px;
}

.shelf-copy p {
    color: #625a56;
}

.shelf-stack {
    position: relative;
    height: 300px;
}

.shelf-book {
    position: absolute;
    top: 10px;
    left: 50%;
    width: 185px;
    transform-origin: bottom center;
}

.shelf-book img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border: 3px solid #22221f;
    border-radius: 14px;
    box-shadow: 0 18px 30px rgba(30, 18, 15, 0.22);
}

.book-1 {
    z-index: 3;
    transform: translateX(-50%);
}

.book-2 {
    z-index: 2;
    transform: translateX(-95%) rotate(-10deg);
}

.book-3 {
    z-index: 1;
    transform: translateX(-5%) rotate(10deg);
}

.guide-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.guide-step {
    padding: 38px;
    border-right: 1px solid var(--line);
}

.guide-step:last-child {
    border-right: 0;
}

.guide-step > span {
    color: var(--banana-deep);
    font-size: 44px;
    font-weight: 900;
}

.guide-step h3 {
    margin: 4px 0;
}

.guide-step p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.update-story {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 70px;
}

.update-intro h2 {
    margin: 8px 0;
    font-size: 38px;
}

.update-intro p {
    color: var(--muted);
}

.timeline {
    position: relative;
}

.timeline::before {
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 54px;
    width: 2px;
    content: "";
    background: var(--line);
}

.timeline-item {
    position: relative;
    padding: 0 0 28px;
    display: grid;
    grid-template-columns: 78px 1fr;
    gap: 22px;
}

.timeline-item time {
    z-index: 1;
    width: 56px;
    padding: 4px;
    color: #22221f;
    background: var(--banana);
    border-radius: 8px;
    text-align: center;
    font-size: 11px;
    font-weight: 800;
}

.timeline-item h3,
.timeline-item p {
    margin: 0;
}

.timeline-item p {
    color: var(--muted);
    font-size: 13px;
}

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

.voice-grid blockquote {
    margin: 0;
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
}

.voice-grid blockquote > p {
    min-height: 82px;
    margin: 0 0 24px;
    font-size: 15px;
}

.voice-grid footer {
    display: flex;
    align-items: center;
    gap: 11px;
}

.avatar {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: #22221f;
    background: var(--banana);
    border-radius: 50%;
    font-weight: 900;
}

.voice-grid footer div {
    display: grid;
}

.voice-grid cite {
    font-style: normal;
    font-weight: 800;
}

.voice-grid small {
    color: var(--muted);
}

.about-section {
    padding: 56px;
    display: grid;
    grid-template-columns: 0.6fr 1.4fr;
    gap: 60px;
    color: #fff;
    background: var(--ink);
    border-radius: var(--radius-lg);
}

.about-badge {
    min-height: 260px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    color: #22221f;
    background: var(--banana);
    border-radius: 50% 50% 44% 56%;
}

.about-badge span {
    font-size: 80px;
}

.about-badge strong {
    font-size: 24px;
}

.about-copy h2 {
    margin: 5px 0 16px;
    font-size: 40px;
}

.about-copy p {
    color: #d2cec2;
}

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

.about-values span {
    padding: 6px 13px;
    color: #22221f;
    background: var(--banana);
    border-radius: 99px;
    font-size: 12px;
    font-weight: 800;
}

.app-module {
    margin-bottom: 104px;
    padding: 58px;
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    align-items: center;
    gap: 60px;
    background: linear-gradient(135deg, #fff1a3, #ffcf33);
    border: 2px solid var(--ink);
    border-radius: var(--radius-lg);
}

.app-copy {
    color: #22221f;
}

.app-copy h2 {
    margin: 8px 0 14px;
    font-size: 40px;
    line-height: 1.25;
}

.subscribe-form label {
    display: block;
    margin: 22px 0 7px;
    font-size: 13px;
    font-weight: 800;
}

.subscribe-row {
    display: flex;
    gap: 8px;
}

.subscribe-row input {
    min-width: 0;
    padding: 12px 15px;
    flex: 1;
    border: 2px solid #22221f;
    border-radius: 12px;
}

.subscribe-row button {
    padding: 10px 22px;
    color: #fff;
    background: #22221f;
    border: 2px solid #22221f;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
}

.form-note {
    display: block;
    margin-top: 8px;
    color: #6b5a1d;
    font-size: 11px;
}

.brand-code {
    padding: 28px;
    display: grid;
    justify-items: center;
    color: #22221f;
    background: #fffdf7;
    border: 3px solid #22221f;
    border-radius: 22px;
    transform: rotate(3deg);
}

.code-grid {
    width: 160px;
    height: 160px;
    padding: 14px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
    background: #fff;
    border: 1px solid #d8d2c1;
}

.code-grid span {
    border-radius: 4px;
}

.code-grid .filled {
    background: #22221f;
}

.brand-code strong {
    margin-top: 14px;
}

.brand-code small {
    color: #6e6c65;
}

.site-footer {
    padding: 46px 0;
    color: #fff;
    background: #181815;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 24px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 13px;
}

.footer-brand div {
    display: grid;
}

.footer-brand p {
    margin: 0;
    color: #a9a69e;
    font-size: 12px;
}

.footer-nav {
    display: flex;
    gap: 20px;
    font-size: 13px;
}

.copyright {
    grid-column: 1 / -1;
    margin: 0;
    padding-top: 20px;
    color: #77746c;
    border-top: 1px solid #33332e;
    font-size: 11px;
}

.breadcrumb {
    margin-top: 38px;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    color: var(--muted);
    font-size: 13px;
}

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

.listing-hero {
    margin-top: 26px;
    padding: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    background: linear-gradient(135deg, #fff2bd, #ffe07c);
    border-radius: var(--radius-lg);
}

.listing-hero > div:first-child {
    max-width: 720px;
}

.listing-icon {
    display: block;
    font-size: 40px;
}

.listing-hero h1 {
    margin: 4px 0 8px;
    color: #22221f;
    font-size: 50px;
}

.listing-hero p {
    margin: 0;
    color: #5b5030;
}

.listing-meta {
    width: 150px;
    height: 150px;
    display: grid;
    place-items: center;
    align-content: center;
    color: #fff;
    background: #22221f;
    border-radius: 50%;
}

.listing-meta strong {
    font-size: 28px;
}

.listing-meta span {
    font-size: 11px;
}

.listing-content {
    margin-top: 72px;
}

.category-note {
    margin-top: 86px;
    padding: 34px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 22px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
}

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

.category-note p {
    color: var(--muted);
}

.reader-article {
    max-width: 920px;
    margin: 32px auto 110px;
}

.reader-header {
    padding: 46px;
    text-align: center;
    background: linear-gradient(135deg, #fff0aa, #ffcf33);
    border-radius: var(--radius-lg);
}

.reader-category {
    color: #695409;
    font-weight: 800;
}

.reader-header h1 {
    margin: 8px 0 16px;
    color: #22221f;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.25;
}

.reader-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    color: #675d3b;
    font-size: 12px;
}

.reading-notice {
    margin-top: 28px;
    padding: 22px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
}

.reading-notice > span {
    font-size: 30px;
}

.reading-notice p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.chapter-nav {
    margin: 30px 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.chapter-nav a,
.chapter-nav .disabled {
    padding: 12px;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    font-size: 13px;
}

.chapter-nav a:hover,
.chapter-nav .back-button {
    color: #22221f;
    background: var(--banana);
    border-color: var(--banana-deep);
}

.chapter-nav .disabled {
    color: #aaa69c;
}

.chapter-content > h2 {
    margin: 48px 0 24px;
    text-align: center;
    font-size: 27px;
}

.manga-panel {
    margin: 0 0 38px;
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
}

.manga-panel img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 12px;
}

.manga-panel figcaption {
    padding: 14px 6px 4px;
    color: var(--muted);
    text-align: center;
    font-size: 13px;
}

.chapter-end {
    margin: 58px 0 34px;
    padding: 44px;
    text-align: center;
    background: var(--surface);
    border: 1px dashed var(--banana-deep);
    border-radius: var(--radius-md);
}

.chapter-end > span {
    color: var(--banana-deep);
    font-size: 34px;
}

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

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

@media (max-width: 1050px) {
    .header-inner {
        flex-wrap: wrap;
        padding: 12px 0;
    }

    .brand {
        margin-right: auto;
    }

    .nav-toggle {
        display: block;
    }

    .main-nav {
        width: 100%;
        order: 3;
        display: none;
        grid-template-columns: repeat(4, 1fr);
    }

    .main-nav.open {
        display: grid;
    }

    .five-cards,
    .ranking-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .five-cards .comic-card:nth-child(4),
    .five-cards .comic-card:nth-child(5) {
        grid-column: span 1;
    }

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

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

    .schedule-day:last-child {
        grid-column: 2 / span 2;
    }
}

@media (max-width: 780px) {
    .header-inner,
    main,
    .footer-inner {
        width: min(100% - 24px, 1200px);
    }

    .hero {
        margin-top: 30px;
        padding: 34px 24px;
        grid-template-columns: 1fr;
        gap: 34px;
        box-shadow: 6px 7px 0 var(--ink);
    }

    .hero h1 {
        font-size: 58px;
    }

    .hero-feature {
        max-width: 420px;
        margin: 0 auto;
    }

    .continue-panel {
        grid-template-columns: auto 1fr;
    }

    .reading-progress,
    .continue-panel .button {
        grid-column: 1 / -1;
    }

    .section-heading {
        grid-template-columns: 1fr;
        align-items: start;
    }

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

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

    .ranking-section {
        padding: 30px 20px;
    }

    .korean-feature,
    .mood-section,
    .shelf-section,
    .about-section,
    .app-module,
    .update-story {
        padding: 34px 24px;
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .shelf-stack {
        margin-top: 10px;
    }

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

    .guide-step {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .guide-step:last-child {
        border-bottom: 0;
    }

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

    .listing-hero {
        padding: 34px 25px;
        align-items: flex-start;
    }

    .listing-meta {
        width: 100px;
        height: 100px;
        flex: 0 0 auto;
    }
}

@media (max-width: 540px) {
    .brand-copy small {
        display: none;
    }

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

    .main-nav a {
        grid-template-columns: auto 1fr;
        justify-items: start;
        gap: 8px;
    }

    .hero h1 {
        font-size: 48px;
    }

    .hero-actions,
    .hero-actions .button {
        width: 100%;
    }

    .hero-stats {
        justify-content: space-between;
        gap: 10px;
    }

    .feature-caption {
        right: 8px;
    }

    .five-cards,
    .four-cards,
    .ranking-list,
    .category-grid,
    .schedule-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .five-cards .comic-card:last-child,
    .ranking-list li:last-child {
        width: calc(50% - 8px);
    }

    .comic-grid,
    .category-grid {
        gap: 16px;
    }

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

    .schedule-day:last-child {
        grid-column: 1 / -1;
        width: calc(50% - 5px);
        justify-self: center;
    }

    .shelf-book {
        width: 150px;
    }

    .app-copy h2,
    .about-copy h2,
    .shelf-copy h2 {
        font-size: 31px;
    }

    .subscribe-row {
        flex-direction: column;
    }

    .listing-hero {
        display: grid;
    }

    .listing-hero h1 {
        font-size: 40px;
    }

    .listing-meta {
        width: 100%;
        height: auto;
        padding: 14px;
        display: flex;
        gap: 8px;
        border-radius: 12px;
    }

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

    .reader-header {
        padding: 34px 20px;
    }

    .reader-meta {
        display: grid;
        gap: 4px;
    }

    .manga-panel {
        padding: 6px;
    }
}
