:root {
    --ink: #17152d;
    --muted: #6f6c82;
    --paper: #fffdfb;
    --surface: #f5f3fb;
    --line: #e6e1ef;
    --primary: #6c4cf1;
    --primary-dark: #4b2dc4;
    --coral: #ff6b6b;
    --mint: #4ecdc4;
    --shadow: 0 24px 70px rgba(35, 24, 79, 0.12);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

* {
    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, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.75;
    overflow-x: hidden;
}

body.nav-open {
    overflow: hidden;
}

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

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(230, 225, 239, 0.8);
    background: rgba(255, 253, 251, 0.94);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    width: min(1200px, calc(100% - 40px));
    min-height: 78px;
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

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

.brand-mark {
    display: grid;
    width: 46px;
    height: 46px;
    color: #ffffff;
    border-radius: 15px 6px 15px 6px;
    background: linear-gradient(145deg, var(--primary), #a26bff);
    box-shadow: 0 10px 24px rgba(108, 76, 241, 0.28);
    font-size: 22px;
    font-weight: 800;
    place-items: center;
}

.brand-text {
    display: grid;
    line-height: 1.2;
}

.brand-text strong {
    font-size: 18px;
    letter-spacing: 0.08em;
}

.brand-text small {
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.18em;
}

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

.nav-link {
    display: grid;
    min-width: 70px;
    padding: 9px 8px;
    color: #5d5971;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.25;
    text-align: center;
    transition: 0.25s ease;
}

.nav-icon {
    margin-bottom: 4px;
    font-size: 17px;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--primary);
    background: #f0ecff;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 11px;
    border: 0;
    border-radius: 12px;
    background: #f0ecff;
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 4px 0;
    border-radius: 2px;
    background: var(--primary);
}

.hero {
    display: grid;
    min-height: 640px;
    margin-top: 46px;
    padding: 70px;
    overflow: hidden;
    grid-template-columns: 1.02fr 0.98fr;
    align-items: center;
    gap: 60px;
    border: 1px solid #e8e1ff;
    border-radius: 38px;
    background: radial-gradient(circle at 18% 22%, rgba(255, 107, 107, 0.15), transparent 30%), linear-gradient(135deg, #f8f5ff 0%, #fff8f3 100%);
}

.hero-kicker,
.eyebrow {
    margin: 0 0 12px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    font-size: clamp(56px, 7vw, 90px);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.hero h1 a {
    background: linear-gradient(120deg, var(--ink), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-lead {
    max-width: 600px;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 18px;
}

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

.button {
    display: inline-flex;
    min-height: 48px;
    padding: 10px 22px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    transition: 0.25s ease;
}

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

.button-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), #8f63ff);
    box-shadow: 0 12px 26px rgba(108, 76, 241, 0.25);
}

.button-ghost {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.8);
}

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

.button-light {
    color: var(--primary-dark);
    background: #ffffff;
}

.hero-stats {
    display: flex;
    margin-top: 44px;
    gap: 34px;
}

.hero-stats div {
    display: grid;
}

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

.hero-stats span {
    color: var(--muted);
    font-size: 13px;
}

.hero-art {
    position: relative;
    min-width: 0;
}

.hero-main-cover {
    position: relative;
    width: 82%;
    margin-left: auto;
    padding: 12px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--shadow);
    transform: rotate(2.5deg);
}

.hero-main-cover img {
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 20px;
    object-fit: cover;
}

.hero-cover-note {
    position: absolute;
    right: 26px;
    bottom: 26px;
    left: 26px;
    display: grid;
    padding: 18px;
    color: #ffffff;
    border-radius: 16px;
    background: rgba(23, 21, 45, 0.82);
    backdrop-filter: blur(10px);
}

.hero-cover-note span {
    color: #d8cfff;
    font-size: 12px;
}

.floating-card {
    position: absolute;
    display: grid;
    min-width: 108px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 45px rgba(35, 24, 79, 0.16);
    backdrop-filter: blur(12px);
    text-align: center;
}

.floating-card span {
    color: var(--coral);
    font-size: 22px;
}

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

.floating-one {
    top: 10%;
    left: 0;
}

.floating-two {
    right: -2%;
    bottom: 9%;
}

.news-strip {
    display: grid;
    margin-top: 28px;
    padding: 17px 24px;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 22px;
    border-radius: 16px;
    background: var(--ink);
    color: #ffffff;
}

.news-label {
    color: #cfc3ff;
    font-weight: 800;
}

.news-strip p {
    margin: 0;
    color: #e2dfec;
}

.news-strip a {
    color: #ffffff;
    font-weight: 700;
}

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

.section-tint,
.section-dark,
.shelf-section {
    padding: 110px 0;
}

.section-tint {
    background: #f5f3fb;
}

.section-dark {
    color: #ffffff;
    background: var(--ink);
}

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

.section-heading h2,
.feature-copy h2,
.genre-title h2,
.shelf-copy h2,
.about-copy h2,
.app-copy h2 {
    margin: 0;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.2;
    letter-spacing: -0.04em;
}

.section-heading > p {
    max-width: 430px;
    margin: 0;
    color: var(--muted);
}

.heading-light > p {
    color: #aaa5bd;
}

.text-link {
    color: var(--primary);
    font-weight: 800;
}

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

.category-card {
    position: relative;
    min-height: 245px;
    padding: 28px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #ffffff;
    transition: 0.25s ease;
}

.category-card::after {
    position: absolute;
    right: -26px;
    bottom: -26px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--accent);
    content: "";
    opacity: 0.12;
}

.category-card:first-child {
    grid-column: span 2;
}

.category-card:hover {
    border-color: var(--accent);
    box-shadow: 0 18px 50px rgba(35, 24, 79, 0.1);
    transform: translateY(-5px);
}

.category-icon {
    display: grid;
    width: 48px;
    height: 48px;
    margin-bottom: 22px;
    color: #ffffff;
    border-radius: 15px;
    background: var(--accent);
    font-size: 22px;
    place-items: center;
}

.category-card strong {
    font-size: 21px;
}

.category-card p {
    margin: 8px 0 18px;
    color: var(--muted);
    font-size: 14px;
}

.category-count {
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
}

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

.comic-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #ffffff;
    transition: 0.25s ease;
}

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

.comic-card-featured {
    display: grid;
    grid-row: span 2;
}

.comic-cover {
    position: relative;
    display: block;
    overflow: hidden;
}

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

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

.cover-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 5px 10px;
    color: #ffffff;
    border-radius: 999px;
    background: rgba(23, 21, 45, 0.82);
    font-size: 12px;
}

.comic-card-body {
    padding: 22px;
}

.comic-card-body h3 {
    margin: 0;
    font-size: 21px;
    line-height: 1.35;
}

.comic-card-body > p:not(.eyebrow) {
    display: -webkit-box;
    margin: 10px 0 18px;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.card-meta {
    display: flex;
    color: #827d93;
    font-size: 13px;
    justify-content: space-between;
}

.ranking-layout {
    display: grid;
    grid-template-columns: 0.72fr 1.28fr;
    gap: 70px;
}

.ranking-intro {
    position: sticky;
    top: 120px;
    align-self: start;
}

.ranking-intro h2 {
    margin: 0;
    font-size: 52px;
    line-height: 1.15;
}

.ranking-intro p:not(.eyebrow) {
    margin: 22px 0 28px;
    color: var(--muted);
}

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

.ranking-list li {
    display: grid;
    padding: 18px 0;
    grid-template-columns: 52px 74px 1fr auto;
    align-items: center;
    gap: 18px;
    border-bottom: 1px solid var(--line);
}

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

.ranking-list img {
    width: 74px;
    height: 74px;
    border-radius: 16px;
    object-fit: cover;
}

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

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

.score {
    color: var(--coral);
    font-weight: 900;
}

.korean-feature {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    align-items: center;
    gap: 70px;
}

.feature-image {
    position: relative;
}

.feature-image img {
    width: 100%;
    aspect-ratio: 6 / 5;
    border-radius: 36px;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.vertical-label {
    position: absolute;
    top: 30px;
    right: -18px;
    padding: 18px 10px;
    color: #ffffff;
    border-radius: 12px;
    background: var(--primary);
    font-weight: 800;
    letter-spacing: 0.25em;
    writing-mode: vertical-rl;
}

.feature-copy > p:not(.eyebrow) {
    margin: 22px 0;
    color: var(--muted);
}

.feature-points {
    display: grid;
    margin: 0 0 28px;
    padding: 0;
    gap: 10px;
    list-style: none;
}

.feature-points span {
    margin-right: 10px;
    color: var(--primary);
}

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

.editor-card {
    position: relative;
    min-height: 390px;
    overflow: hidden;
    border-radius: 24px;
}

.editor-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.4s ease;
}

.editor-card::after {
    position: absolute;
    inset: 35% 0 0;
    background: linear-gradient(transparent, rgba(10, 8, 24, 0.9));
    content: "";
}

.editor-card:hover img {
    transform: scale(1.04);
}

.editor-card > div {
    position: absolute;
    z-index: 2;
    right: 20px;
    bottom: 20px;
    left: 20px;
}

.editor-card h3 {
    margin: 4px 0 0;
    font-size: 20px;
}

.editor-card > div span {
    color: #d4c9ff;
    font-size: 13px;
}

.editor-number {
    position: absolute;
    z-index: 2;
    top: 16px;
    left: 16px;
    font-size: 30px;
    font-weight: 900;
}

.schedule-board {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.schedule-item {
    display: grid;
    min-height: 170px;
    padding: 20px;
    align-content: space-between;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #ffffff;
}

.schedule-item span,
.schedule-item small {
    color: var(--muted);
}

.schedule-item strong {
    line-height: 1.4;
}

.schedule-item.is-today {
    color: #ffffff;
    border-color: transparent;
    background: var(--primary);
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(108, 76, 241, 0.25);
}

.schedule-item.is-today span,
.schedule-item.is-today small {
    color: #e2dcff;
}

.genre-panel {
    display: grid;
    padding: 60px;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 70px;
    border-radius: 32px;
    background: #fff1ed;
}

.genre-title > span {
    display: block;
    margin-bottom: 30px;
    color: var(--coral);
    font-size: 42px;
}

.genre-columns {
    display: grid;
}

.genre-columns a {
    display: grid;
    padding: 22px 0;
    grid-template-columns: 50px 170px 1fr;
    align-items: center;
    gap: 18px;
    border-bottom: 1px solid #ebd7d2;
}

.genre-columns a:first-child {
    border-top: 1px solid #ebd7d2;
}

.genre-columns span {
    color: var(--coral);
    font-weight: 900;
}

.genre-columns p {
    margin: 0;
    color: #756b6d;
}

.shelf-section {
    background: linear-gradient(135deg, #eee9ff, #f7fbff);
}

.shelf-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: 90px;
}

.shelf-copy > p:not(.eyebrow, .save-feedback) {
    margin: 20px 0 28px;
    color: var(--muted);
}

.save-feedback,
.subscribe-feedback {
    min-height: 28px;
    margin: 12px 0 0;
    font-size: 14px;
    font-weight: 700;
}

.shelf-stack {
    position: relative;
    display: flex;
    min-height: 430px;
    align-items: center;
    justify-content: center;
}

.shelf-stack a {
    position: absolute;
    width: 230px;
    padding: 10px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--shadow);
    transform: translateX(calc((var(--rotate) / 4deg) * 130px)) rotate(var(--rotate));
}

.shelf-stack img {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 14px;
    object-fit: cover;
}

.shelf-stack span {
    display: block;
    padding: 12px 5px 5px;
    font-weight: 800;
    text-align: center;
}

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

.guide-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.guide-steps > div {
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 24px;
    text-align: center;
}

.step-icon {
    display: grid;
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    color: var(--primary);
    border-radius: 18px;
    background: #f0ecff;
    font-size: 24px;
    place-items: center;
}

.guide-steps strong {
    font-size: 19px;
}

.guide-steps p {
    margin: 8px 0 0;
    color: var(--muted);
}

.about-section {
    display: grid;
    padding-top: 80px;
    grid-template-columns: 160px 1fr 0.7fr;
    gap: 50px;
    border-top: 1px solid var(--line);
}

.about-mark {
    display: grid;
    width: 140px;
    height: 140px;
    color: #ffffff;
    border-radius: 42px 15px 42px 15px;
    background: linear-gradient(145deg, var(--primary), var(--coral));
    box-shadow: var(--shadow);
    font-size: 58px;
    font-weight: 900;
    place-items: center;
}

.about-copy p:not(.eyebrow) {
    color: var(--muted);
}

.about-values {
    display: grid;
    gap: 12px;
}

.about-values div {
    display: grid;
    padding: 20px;
    border-radius: 18px;
    background: var(--surface);
}

.about-values strong {
    color: var(--primary);
    font-size: 21px;
}

.about-values span {
    color: var(--muted);
    font-size: 14px;
}

.app-banner {
    display: grid;
    padding: 60px 70px;
    grid-template-columns: 0.85fr 1.15fr;
    align-items: center;
    gap: 70px;
    color: #ffffff;
    border-radius: 34px;
    background: radial-gradient(circle at 15% 20%, rgba(255, 107, 107, 0.35), transparent 35%), var(--primary-dark);
}

.app-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.phone-frame {
    display: grid;
    width: 190px;
    min-height: 300px;
    padding: 28px 20px;
    align-content: center;
    border: 8px solid #ffffff;
    border-radius: 34px;
    background: #17152d;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
    text-align: center;
}

.phone-logo {
    display: grid;
    width: 58px;
    height: 58px;
    margin: 0 auto 24px;
    border-radius: 18px 7px 18px 7px;
    background: var(--coral);
    font-size: 26px;
    place-items: center;
}

.phone-frame small {
    margin-top: 8px;
    color: #beb7dc;
}

.qr-mark {
    display: grid;
    width: 130px;
    height: 130px;
    padding: 14px;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    border-radius: 20px;
    background: #ffffff;
}

.qr-mark span {
    border-radius: 4px;
    background: var(--ink);
}

.qr-mark span:nth-child(2),
.qr-mark span:nth-child(4),
.qr-mark span:nth-child(8) {
    background: var(--primary);
}

.app-copy .eyebrow {
    color: #cfc3ff;
}

.app-copy > p:not(.eyebrow, .subscribe-feedback) {
    margin: 20px 0 26px;
    color: #ddd8ed;
}

.site-footer {
    margin-top: 100px;
    color: #dcd8e8;
    background: #11101f;
}

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

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

.footer-brand p {
    margin: 2px 0 0;
    color: #8f8a9e;
}

.footer-links {
    display: flex;
    margin: 35px 0;
    padding: 24px 0;
    flex-wrap: wrap;
    gap: 28px;
    border-top: 1px solid #29263e;
    border-bottom: 1px solid #29263e;
}

.copyright {
    margin: 0;
    color: #777286;
    font-size: 13px;
}

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

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

.category-hero {
    position: relative;
    display: grid;
    min-height: 360px;
    margin-top: 30px;
    padding: 58px 64px;
    overflow: hidden;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 50px;
    border-radius: 34px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, white), #faf8ff);
}

.category-hero::after {
    position: absolute;
    right: -80px;
    bottom: -120px;
    width: 360px;
    height: 360px;
    border: 70px solid var(--accent);
    border-radius: 50%;
    content: "";
    opacity: 0.12;
}

.category-hero-icon {
    display: grid;
    width: 58px;
    height: 58px;
    margin-bottom: 22px;
    color: #ffffff;
    border-radius: 18px;
    background: var(--accent);
    font-size: 26px;
    place-items: center;
}

.category-hero h1 {
    margin: 0;
    font-size: clamp(44px, 6vw, 72px);
    line-height: 1.1;
}

.category-hero p:not(.eyebrow) {
    max-width: 700px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 18px;
}

.category-hero-stat {
    position: relative;
    z-index: 1;
    display: grid;
    min-width: 170px;
    text-align: center;
}

.category-hero-stat strong {
    color: var(--accent);
    font-size: 74px;
    line-height: 1;
}

.category-hero-stat span {
    color: var(--muted);
}

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

.catalog-grid .catalog-lead {
    grid-column: span 2;
}

.catalog-grid .catalog-lead .comic-cover img {
    aspect-ratio: 2 / 1;
}

.category-note {
    display: grid;
    padding: 38px 44px;
    grid-template-columns: 0.5fr 1.5fr;
    align-items: center;
    gap: 50px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fbfaff;
}

.category-note > div {
    display: flex;
    align-items: center;
    gap: 15px;
}

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

.category-note > div span {
    color: var(--primary);
    font-size: 30px;
}

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

.reader-page {
    background: #f6f4fa;
}

.reader {
    margin-top: 28px;
    padding: 56px 0 90px;
}

.reader-header {
    max-width: 900px;
    margin: 0 auto 34px;
    text-align: center;
}

.reader-header h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.2;
    letter-spacing: -0.04em;
}

.reader-summary {
    max-width: 760px;
    margin: 22px auto;
    color: var(--muted);
    font-size: 18px;
}

.reader-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.reader-meta span {
    padding: 7px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    color: var(--muted);
    font-size: 13px;
}

.reader-meta strong {
    margin-right: 6px;
    color: var(--ink);
}

.reading-notice {
    display: flex;
    max-width: 900px;
    margin: 0 auto 42px;
    padding: 22px 26px;
    gap: 18px;
    border: 1px solid #ded6ff;
    border-radius: 18px;
    background: #f0ecff;
}

.reading-notice > span {
    color: var(--primary);
    font-size: 24px;
}

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

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

.comic-panel {
    margin: 0 0 54px;
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(35, 24, 79, 0.1);
}

.comic-panel img {
    width: 100%;
    aspect-ratio: 3 / 4;
    background: #eae7f0;
    object-fit: cover;
}

.comic-panel figcaption {
    display: grid;
    padding: 26px 30px;
    grid-template-columns: 55px 1fr;
    align-items: start;
    gap: 18px;
}

.comic-panel figcaption span {
    color: var(--primary);
    font-size: 28px;
    font-weight: 900;
}

.comic-panel figcaption p {
    margin: 0;
    color: var(--muted);
}

.chapter-end {
    max-width: 900px;
    margin: 70px auto 35px;
    padding: 48px;
    border-radius: 24px;
    background: var(--ink);
    color: #ffffff;
    text-align: center;
}

.chapter-end > span {
    color: #bdaeff;
    font-size: 32px;
}

.chapter-end h2 {
    margin: 10px 0;
    font-size: 30px;
}

.chapter-end p {
    margin: 0;
    color: #c9c5d4;
}

.chapter-nav {
    display: grid;
    max-width: 1100px;
    margin: 0 auto;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 14px;
}

.chapter-nav > *:last-child {
    justify-self: end;
}

.chapter-edge {
    color: var(--muted);
    font-size: 14px;
}

@media (max-width: 1080px) {
    .header-inner {
        gap: 12px;
    }

    .nav-link {
        min-width: 58px;
        font-size: 12px;
    }

    .hero {
        padding: 50px;
        gap: 35px;
    }

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

    .category-card:first-child {
        grid-column: span 1;
    }

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

    .about-section {
        grid-template-columns: 140px 1fr;
    }

    .about-values {
        grid-column: 2;
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 820px) {
    .shell,
    .header-inner,
    .footer-inner {
        width: min(100% - 28px, 1200px);
    }

    .header-inner {
        min-height: 70px;
    }

    .nav-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 70px;
        right: 14px;
        left: 14px;
        display: grid;
        max-height: 0;
        padding: 0 14px;
        overflow: hidden;
        grid-template-columns: repeat(2, 1fr);
        border: 1px solid transparent;
        border-radius: 20px;
        background: #ffffff;
        opacity: 0;
        transition: 0.25s ease;
    }

    .main-nav.is-open {
        max-height: calc(100vh - 90px);
        padding: 14px;
        border-color: var(--line);
        box-shadow: var(--shadow);
        opacity: 1;
    }

    .nav-link {
        display: flex;
        min-width: 0;
        padding: 12px;
        align-items: center;
        gap: 10px;
        font-size: 14px;
        text-align: left;
    }

    .nav-icon {
        margin: 0;
    }

    .hero,
    .korean-feature,
    .ranking-layout,
    .shelf-layout,
    .genre-panel,
    .app-banner,
    .category-hero,
    .category-note {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        margin-top: 28px;
        padding: 42px 30px;
    }

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

    .hero-art {
        max-width: 560px;
        margin: 0 auto;
    }

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

    .comic-card-featured {
        grid-row: auto;
    }

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

    .ranking-intro {
        position: static;
    }

    .genre-panel,
    .app-banner {
        padding: 46px 34px;
    }

    .shelf-layout {
        gap: 30px;
    }

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

    .about-section {
        grid-template-columns: 1fr;
    }

    .about-values {
        grid-column: auto;
    }

    .category-hero-stat {
        justify-self: start;
        text-align: left;
    }

    .catalog-grid .catalog-lead {
        grid-column: span 2;
    }

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

    .chapter-nav > *,
    .chapter-nav > *:last-child {
        width: 100%;
        justify-self: stretch;
    }

    .chapter-edge {
        padding: 12px;
        text-align: center;
    }
}

@media (max-width: 560px) {
    body {
        font-size: 16px;
    }

    .brand-text small {
        display: none;
    }

    .hero {
        padding: 36px 22px;
        border-radius: 26px;
    }

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

    .hero-lead {
        font-size: 16px;
    }

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

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

    .hero-main-cover {
        width: 92%;
    }

    .floating-card {
        min-width: 86px;
        padding: 10px;
    }

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

    .news-strip p {
        grid-column: 1 / -1;
        grid-row: 2;
    }

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

    .section-tint,
    .section-dark,
    .shelf-section {
        padding: 78px 0;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
        gap: 16px;
    }

    .category-grid,
    .latest-grid,
    .catalog-grid,
    .editor-grid,
    .schedule-board {
        grid-template-columns: 1fr;
    }

    .category-card,
    .category-card:first-child,
    .catalog-grid .catalog-lead {
        grid-column: span 1;
    }

    .catalog-grid .catalog-lead .comic-cover img {
        aspect-ratio: 3 / 4;
    }

    .ranking-list li {
        grid-template-columns: 42px 62px 1fr;
    }

    .ranking-list img {
        width: 62px;
        height: 62px;
    }

    .score {
        display: none;
    }

    .schedule-item.is-today {
        transform: none;
    }

    .genre-panel,
    .app-banner {
        padding: 34px 22px;
    }

    .genre-columns a {
        grid-template-columns: 38px 1fr;
    }

    .genre-columns p {
        grid-column: 2;
    }

    .shelf-stack {
        min-height: 330px;
    }

    .shelf-stack a {
        width: 165px;
        transform: translateX(calc((var(--rotate) / 4deg) * 72px)) rotate(var(--rotate));
    }

    .about-mark {
        width: 100px;
        height: 100px;
        font-size: 42px;
    }

    .about-values {
        grid-template-columns: 1fr;
    }

    .app-visual {
        flex-direction: column;
    }

    .category-hero {
        padding: 40px 26px;
    }

    .category-note {
        padding: 28px;
        gap: 20px;
    }

    .reader {
        padding-top: 34px;
    }

    .comic-panel {
        margin-bottom: 32px;
        border-radius: 18px;
    }

    .comic-panel figcaption {
        padding: 22px;
        grid-template-columns: 42px 1fr;
    }

    .chapter-end {
        padding: 36px 24px;
    }

    .footer-links {
        gap: 16px 22px;
    }
}
