:root {
    --ink: #12203b;
    --ink-soft: #31415f;
    --paper: #f7f9fd;
    --white: #ffffff;
    --line: #dce4f2;
    --coral: #ff685b;
    --coral-dark: #e84c43;
    --mint: #65d9ca;
    --yellow: #ffd768;
    --blue: #5278ff;
    --shadow: 0 18px 50px rgba(18, 32, 59, 0.11);
    --shadow-small: 0 8px 24px rgba(18, 32, 59, 0.08);
    --radius-large: 28px;
    --radius-medium: 18px;
    --radius-small: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 8% 12%, rgba(101, 217, 202, 0.12), transparent 24rem),
        radial-gradient(circle at 92% 3%, rgba(255, 104, 91, 0.1), transparent 26rem),
        var(--paper);
    font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
}

body::before {
    position: fixed;
    z-index: -1;
    inset: 0;
    background-image: radial-gradient(rgba(18, 32, 59, 0.07) 0.7px, transparent 0.7px);
    background-size: 13px 13px;
    content: "";
    pointer-events: none;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.site-shell {
    width: min(1200px, calc(100% - 40px));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    z-index: 50;
    top: 0;
    border-bottom: 1px solid rgba(220, 228, 242, 0.82);
    background: rgba(247, 249, 253, 0.9);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    min-height: 76px;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    font-size: 1.28rem;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 2px solid var(--ink);
    border-radius: 13px 13px 13px 4px;
    color: var(--white);
    background: var(--coral);
    box-shadow: 4px 4px 0 var(--ink);
    font-size: 1.1rem;
    transform: rotate(-2deg);
}

.site-nav {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

.nav-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 12px;
    color: var(--ink-soft);
    font-size: 0.88rem;
    font-weight: 700;
    white-space: nowrap;
    transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: var(--ink);
    background: var(--white);
    transform: translateY(-2px);
}

.nav-link.is-active {
    color: var(--white);
    background: var(--ink);
}

.nav-icon {
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 7px;
    color: var(--ink);
    background: var(--yellow);
    font-size: 0.77rem;
    font-weight: 900;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    margin-left: auto;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--ink);
    background: var(--white);
    cursor: pointer;
}

.hero {
    position: relative;
    display: grid;
    min-height: 520px;
    margin-top: 42px;
    padding: 62px;
    grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
    align-items: center;
    gap: 54px;
    overflow: hidden;
    border: 2px solid var(--ink);
    border-radius: 36px 36px 36px 10px;
    color: var(--white);
    background: var(--ink);
    box-shadow: 12px 12px 0 var(--mint);
}

.hero::before {
    position: absolute;
    width: 420px;
    height: 420px;
    right: -140px;
    top: -160px;
    border: 70px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    content: "";
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    color: var(--mint);
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    font-size: clamp(3.2rem, 7vw, 6.4rem);
    line-height: 0.95;
    letter-spacing: -0.08em;
}

.hero h1 a {
    display: inline-block;
}

.hero-lead {
    max-width: 650px;
    margin: 26px 0 0;
    color: #cad4e7;
    font-size: clamp(1rem, 2vw, 1.16rem);
}

.hero-actions,
.button-row {
    display: flex;
    margin-top: 30px;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border: 2px solid var(--ink);
    border-radius: 13px;
    color: var(--ink);
    background: var(--white);
    box-shadow: 4px 4px 0 var(--ink);
    font-weight: 800;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--ink);
}

.button.is-coral {
    color: var(--ink);
    background: var(--coral);
}

.button.is-mint {
    background: var(--mint);
}

.button.is-dark {
    color: var(--white);
    background: var(--ink);
    box-shadow: 4px 4px 0 var(--coral);
}

.hero-board {
    position: relative;
    display: grid;
    min-height: 350px;
    padding: 28px;
    align-content: space-between;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 28px 28px 8px 28px;
    background:
        linear-gradient(135deg, rgba(82, 120, 255, 0.72), rgba(255, 104, 91, 0.74)),
        radial-gradient(circle, rgba(255, 255, 255, 0.24) 1px, transparent 1px);
    background-size: auto, 15px 15px;
    transform: rotate(2deg);
}

.speech-bubble {
    position: relative;
    width: min(240px, 88%);
    padding: 20px;
    border-radius: 22px 22px 22px 5px;
    color: var(--ink);
    background: var(--white);
    box-shadow: 8px 8px 0 rgba(18, 32, 59, 0.55);
    font-size: 1.25rem;
    font-weight: 900;
    line-height: 1.45;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.hero-stat {
    padding: 14px 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 14px;
    background: rgba(18, 32, 59, 0.58);
    text-align: center;
}

.hero-stat strong,
.hero-stat span {
    display: block;
}

.hero-stat strong {
    font-size: 1.15rem;
}

.hero-stat span {
    color: #dfe6f3;
    font-size: 0.76rem;
}

.notice-strip {
    display: grid;
    margin-top: 42px;
    padding: 18px 22px;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-medium);
    background: var(--white);
    box-shadow: var(--shadow-small);
}

.notice-badge,
.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    color: var(--ink);
    background: var(--yellow);
    font-size: 0.8rem;
    font-weight: 800;
}

.notice-strip p {
    margin: 0;
    color: var(--ink-soft);
}

.notice-strip a {
    color: var(--blue);
    font-weight: 800;
}

.section {
    margin-top: 92px;
}

.section-heading {
    display: flex;
    margin-bottom: 28px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.section-kicker {
    margin: 0 0 4px;
    color: var(--coral-dark);
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 2.65rem);
    line-height: 1.15;
    letter-spacing: -0.045em;
}

.section-heading > p {
    max-width: 520px;
    margin: 0;
    color: var(--ink-soft);
    text-align: right;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--blue);
    font-weight: 800;
}

.shelf {
    display: grid;
    padding: 24px;
    grid-template-columns: 1.35fr repeat(3, 1fr);
    gap: 18px;
    border-radius: var(--radius-large);
    background: #e9eef9;
}

.shelf-intro {
    padding: 22px;
    border-radius: var(--radius-medium);
    color: var(--white);
    background: var(--blue);
}

.shelf-intro h3,
.shelf-intro p {
    margin-top: 0;
}

.shelf-item {
    display: grid;
    padding: 18px;
    align-content: space-between;
    gap: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-medium);
    background: var(--white);
}

.progress-track {
    height: 7px;
    overflow: hidden;
    border-radius: 99px;
    background: #e6eaf2;
}

.progress-bar {
    display: block;
    height: 100%;
    border-radius: 99px;
    background: var(--coral);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.comic-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--shadow-small);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.comic-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.comic-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #dfe6f3;
}

.comic-card-body {
    padding: 20px;
}

.comic-card h3 {
    margin: 8px 0 6px;
    font-size: 1.18rem;
}

.comic-card p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.94rem;
}

.card-meta {
    display: flex;
    margin-top: 16px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #64718a;
    font-size: 0.82rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.category-tile {
    min-height: 210px;
    padding: 24px;
    border: 2px solid var(--ink);
    border-radius: 24px 24px 24px 7px;
    background: var(--white);
    box-shadow: 6px 6px 0 var(--ink);
    transition: transform 180ms ease, background 180ms ease;
}

.category-tile:hover {
    background: var(--mint);
    transform: translate(-2px, -3px);
}

.category-icon {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border: 2px solid var(--ink);
    border-radius: 16px;
    background: var(--yellow);
    font-size: 1.3rem;
    font-weight: 900;
}

.category-tile h3 {
    margin: 24px 0 8px;
}

.category-tile p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.9rem;
}

.spotlight {
    display: grid;
    overflow: hidden;
    grid-template-columns: 1.15fr 0.85fr;
    border-radius: 32px;
    background: var(--ink);
    box-shadow: var(--shadow);
}

.spotlight-copy {
    padding: 48px;
    color: var(--white);
}

.spotlight-copy h2 {
    margin: 8px 0 16px;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.08;
}

.spotlight-copy p {
    color: #cad4e7;
}

.spotlight-art {
    position: relative;
    min-height: 420px;
    overflow: hidden;
}

.spotlight-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spotlight-note {
    position: absolute;
    right: 24px;
    bottom: 24px;
    max-width: 230px;
    padding: 16px;
    border: 2px solid var(--ink);
    border-radius: 18px 18px 5px 18px;
    color: var(--ink);
    background: var(--yellow);
    box-shadow: 6px 6px 0 var(--ink);
    font-weight: 800;
}

.ranking-board {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.ranking-column {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--white);
}

.ranking-column h3 {
    margin-top: 0;
}

.ranking-list {
    display: grid;
    margin: 0;
    padding: 0;
    gap: 0;
    list-style: none;
}

.ranking-item {
    display: grid;
    padding: 15px 0;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    gap: 14px;
    border-bottom: 1px dashed var(--line);
}

.ranking-item:last-child {
    border-bottom: 0;
}

.rank-number {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 11px;
    color: var(--white);
    background: var(--ink);
    font-weight: 900;
}

.rank-number.top {
    color: var(--ink);
    background: var(--coral);
}

.korean-ribbon {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.ribbon-card {
    position: relative;
    min-height: 330px;
    overflow: hidden;
    border-radius: 22px;
    background: var(--ink);
}

.ribbon-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.78;
    transition: transform 280ms ease, opacity 280ms ease;
}

.ribbon-card:hover img {
    opacity: 0.48;
    transform: scale(1.05);
}

.ribbon-caption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 44px 16px 18px;
    color: var(--white);
    background: linear-gradient(transparent, rgba(18, 32, 59, 0.96));
}

.ribbon-caption h3,
.ribbon-caption p {
    margin: 0;
}

.ribbon-caption p {
    color: #dfe6f3;
    font-size: 0.82rem;
}

.mosaic {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    grid-template-rows: 1fr 1fr;
    gap: 18px;
}

.mosaic-item {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    border-radius: 22px;
}

.mosaic-item:first-child {
    grid-row: span 2;
}

.mosaic-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mosaic-label {
    position: absolute;
    right: 14px;
    bottom: 14px;
    left: 14px;
    padding: 14px;
    border-radius: 14px;
    color: var(--white);
    background: rgba(18, 32, 59, 0.88);
    backdrop-filter: blur(8px);
}

.mosaic-label h3,
.mosaic-label p {
    margin: 0;
}

.mosaic-label p {
    color: #dfe6f3;
    font-size: 0.8rem;
}

.schedule {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.day-card {
    min-height: 175px;
    padding: 18px 14px;
    border-top: 5px solid var(--mint);
    border-radius: 0 0 18px 18px;
    background: var(--white);
    box-shadow: var(--shadow-small);
}

.day-card:nth-child(2n) {
    border-color: var(--coral);
}

.day-card strong,
.day-card span {
    display: block;
}

.day-card strong {
    margin-bottom: 18px;
    font-size: 1.05rem;
}

.day-card span {
    color: var(--ink-soft);
    font-size: 0.84rem;
}

.guide-panel {
    display: grid;
    padding: 40px;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 42px;
    border: 2px solid var(--ink);
    border-radius: 30px;
    background: var(--yellow);
    box-shadow: 10px 10px 0 var(--ink);
}

.guide-panel h2 {
    margin-top: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.12;
}

.guide-steps {
    display: grid;
    gap: 14px;
}

.guide-step {
    display: grid;
    padding: 18px;
    grid-template-columns: 46px 1fr;
    gap: 15px;
    border: 2px solid var(--ink);
    border-radius: 17px;
    background: var(--white);
}

.guide-step b {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    color: var(--white);
    background: var(--ink);
}

.guide-step h3,
.guide-step p {
    margin: 0;
}

.guide-step p {
    color: var(--ink-soft);
    font-size: 0.9rem;
}

.journal-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
}

.journal-feature,
.journal-list {
    padding: 30px;
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--shadow-small);
}

.journal-feature {
    border-left: 8px solid var(--coral);
}

.journal-feature h3 {
    margin: 8px 0 14px;
    font-size: 1.7rem;
}

.journal-list article {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.journal-list article:last-child {
    border-bottom: 0;
}

.journal-list h3,
.journal-list p {
    margin: 0;
}

.journal-list p {
    color: var(--ink-soft);
    font-size: 0.86rem;
}

.about-panel {
    display: grid;
    padding: 48px;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 52px;
    border-radius: 32px;
    color: var(--white);
    background: var(--blue);
}

.about-panel h2 {
    margin: 0;
    font-size: clamp(2.25rem, 5vw, 4.2rem);
    line-height: 1;
}

.about-copy p {
    margin-top: 0;
    color: #edf1ff;
}

.about-points {
    display: grid;
    margin-top: 26px;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.about-point {
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    background: rgba(18, 32, 59, 0.18);
}

.app-banner {
    display: grid;
    margin-top: 92px;
    padding: 42px;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 36px;
    border: 2px solid var(--ink);
    border-radius: 30px 30px 8px 30px;
    background: var(--mint);
    box-shadow: 10px 10px 0 var(--ink);
}

.app-banner h2 {
    margin: 6px 0 10px;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.15;
}

.app-banner p {
    max-width: 720px;
    margin: 0;
}

.subscribe-form {
    display: flex;
    max-width: 660px;
    margin-top: 22px;
    gap: 10px;
}

.subscribe-form input {
    min-width: 0;
    flex: 1;
    padding: 13px 15px;
    border: 2px solid var(--ink);
    border-radius: 12px;
    color: var(--ink);
    background: var(--white);
}

.brand-code {
    width: 146px;
    padding: 12px;
    border: 2px solid var(--ink);
    border-radius: 18px;
    background: var(--white);
    box-shadow: 6px 6px 0 var(--ink);
    text-align: center;
}

.code-grid {
    display: grid;
    aspect-ratio: 1;
    padding: 8px;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    border: 1px solid var(--line);
    background: var(--white);
}

.code-grid i {
    display: block;
    background: var(--ink);
}

.code-grid i:nth-child(3n),
.code-grid i:nth-child(7n) {
    background: var(--coral);
}

.brand-code small {
    display: block;
    margin-top: 8px;
    font-weight: 800;
}

.site-footer {
    margin-top: 110px;
    padding: 54px 0 28px;
    color: #cbd4e5;
    background: var(--ink);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 42px;
}

.footer-brand p {
    max-width: 380px;
}

.footer-column h2 {
    margin-top: 0;
    color: var(--white);
    font-size: 1rem;
}

.footer-column a {
    display: block;
    margin: 8px 0;
    color: #cbd4e5;
}

.footer-column a:hover {
    color: var(--mint);
}

.copyright {
    margin-top: 42px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #8f9bb2;
    font-size: 0.84rem;
    text-align: center;
}

.page-hero {
    position: relative;
    margin-top: 42px;
    padding: 48px;
    overflow: hidden;
    border: 2px solid var(--ink);
    border-radius: 30px 30px 30px 8px;
    background: var(--white);
    box-shadow: 9px 9px 0 var(--coral);
}

.page-hero::after {
    position: absolute;
    width: 220px;
    height: 220px;
    right: -40px;
    bottom: -100px;
    border: 42px solid var(--mint);
    border-radius: 50%;
    content: "";
    opacity: 0.65;
}

.page-hero h1 {
    position: relative;
    z-index: 1;
    max-width: 850px;
    margin: 8px 0 12px;
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1.02;
    letter-spacing: -0.065em;
}

.page-hero p {
    position: relative;
    z-index: 1;
    max-width: 780px;
    margin: 0;
    color: var(--ink-soft);
}

.breadcrumb {
    display: flex;
    margin: 30px 0 0;
    padding: 0;
    flex-wrap: wrap;
    gap: 8px;
    color: #65728b;
    font-size: 0.88rem;
    list-style: none;
}

.breadcrumb li:not(:last-child)::after {
    margin-left: 8px;
    color: #aab3c3;
    content: "/";
}

.catalog-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

.catalog-list {
    display: grid;
    gap: 22px;
}

.catalog-card {
    display: grid;
    min-height: 240px;
    overflow: hidden;
    grid-template-columns: 270px 1fr;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--shadow-small);
}

.catalog-card img {
    width: 100%;
    height: 100%;
    min-height: 240px;
    object-fit: cover;
}

.catalog-card-copy {
    display: flex;
    padding: 26px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.catalog-card-copy h2 {
    margin: 8px 0;
    font-size: 1.55rem;
}

.catalog-card-copy p {
    margin: 0;
    color: var(--ink-soft);
}

.catalog-card-copy .text-link {
    margin-top: 18px;
}

.catalog-sidebar {
    position: sticky;
    top: 104px;
    align-self: start;
    padding: 25px;
    border-radius: 22px;
    color: var(--white);
    background: var(--ink);
}

.catalog-sidebar h2 {
    margin-top: 0;
}

.catalog-sidebar a {
    display: flex;
    margin-top: 10px;
    padding: 10px 12px;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 11px;
    color: #dfe6f3;
}

.catalog-sidebar a:hover {
    color: var(--ink);
    background: var(--mint);
}

.reader-header {
    max-width: 900px;
    margin: 26px auto 0;
    text-align: center;
}

.reader-header h1 {
    margin: 12px 0;
    font-size: clamp(2.35rem, 6vw, 4.6rem);
    line-height: 1.05;
    letter-spacing: -0.055em;
}

.reader-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px 18px;
    color: #69758d;
    font-size: 0.9rem;
}

.reading-note {
    max-width: 900px;
    margin: 34px auto 0;
    padding: 20px 24px;
    border-left: 6px solid var(--coral);
    border-radius: 0 16px 16px 0;
    background: var(--white);
    box-shadow: var(--shadow-small);
}

.reading-note h2,
.reading-note p {
    margin: 0;
}

.reader-canvas {
    max-width: 900px;
    margin: 34px auto 0;
}

.chapter-panel {
    margin-bottom: 34px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--shadow-small);
}

.chapter-panel img {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
    object-fit: cover;
    background: #e5eaf3;
}

.chapter-panel figcaption {
    padding: 16px 6px 4px;
    color: var(--ink-soft);
    text-align: center;
}

.story-text {
    margin: 0 0 34px;
    padding: 28px 34px;
    border: 2px solid var(--ink);
    border-radius: 22px 22px 22px 6px;
    background: var(--yellow);
    font-size: 1.05rem;
}

.chapter-end {
    max-width: 900px;
    margin: 50px auto 0;
    padding: 36px;
    border-radius: 26px;
    color: var(--white);
    background: var(--ink);
    text-align: center;
}

.chapter-end h2 {
    margin: 0 0 8px;
}

.chapter-end p {
    margin: 0;
    color: #cbd4e5;
}

.chapter-nav {
    display: grid;
    max-width: 900px;
    margin: 26px auto 0;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.chapter-nav a,
.chapter-nav span {
    display: flex;
    min-height: 54px;
    padding: 12px;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--ink);
    border-radius: 13px;
    background: var(--white);
    font-weight: 800;
    text-align: center;
}

.chapter-nav span {
    border-color: var(--line);
    color: #99a3b5;
}

.chapter-nav a:nth-child(2) {
    color: var(--white);
    background: var(--ink);
}

.toast {
    position: fixed;
    z-index: 100;
    right: 24px;
    bottom: 24px;
    max-width: min(360px, calc(100% - 48px));
    padding: 14px 18px;
    border: 2px solid var(--ink);
    border-radius: 14px;
    color: var(--ink);
    background: var(--yellow);
    box-shadow: 6px 6px 0 var(--ink);
    font-weight: 800;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1080px) {
    .menu-toggle {
        display: inline-flex;
    }

    .site-nav {
        position: absolute;
        right: 20px;
        top: calc(100% + 10px);
        display: none;
        width: min(360px, calc(100vw - 40px));
        padding: 12px;
        flex-direction: column;
        align-items: stretch;
        border: 1px solid var(--line);
        border-radius: 18px;
        background: var(--white);
        box-shadow: var(--shadow);
    }

    .site-nav.is-open {
        display: flex;
    }

    .nav-link {
        justify-content: flex-start;
    }

    .hero {
        padding: 48px;
        grid-template-columns: 1fr 0.8fr;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .schedule {
        grid-template-columns: repeat(4, 1fr);
    }

    .catalog-layout {
        grid-template-columns: 1fr;
    }

    .catalog-sidebar {
        position: static;
    }
}

@media (max-width: 800px) {
    .site-shell {
        width: min(100% - 28px, 1200px);
    }

    .hero {
        min-height: auto;
        margin-top: 28px;
        padding: 38px 28px;
        grid-template-columns: 1fr;
        gap: 36px;
        border-radius: 28px 28px 28px 8px;
        box-shadow: 7px 7px 0 var(--mint);
    }

    .hero-board {
        min-height: 300px;
        transform: none;
    }

    .notice-strip {
        grid-template-columns: auto 1fr;
    }

    .notice-strip a {
        grid-column: 1 / -1;
    }

    .section {
        margin-top: 70px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .section-heading > p {
        text-align: left;
    }

    .shelf {
        grid-template-columns: repeat(2, 1fr);
    }

    .shelf-intro {
        grid-column: 1 / -1;
    }

    .card-grid,
    .ranking-board,
    .spotlight,
    .guide-panel,
    .journal-grid,
    .about-panel {
        grid-template-columns: 1fr;
    }

    .spotlight-art {
        min-height: 340px;
    }

    .mosaic {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .korean-ribbon {
        grid-template-columns: repeat(2, 1fr);
    }

    .mosaic-item:first-child {
        grid-column: 1 / -1;
        grid-row: auto;
        min-height: 360px;
    }

    .schedule {
        grid-template-columns: repeat(2, 1fr);
    }

    .app-banner {
        grid-template-columns: 1fr;
    }

    .brand-code {
        width: 160px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .catalog-card {
        grid-template-columns: 210px 1fr;
    }
}

@media (max-width: 560px) {
    .header-inner {
        min-height: 68px;
    }

    .brand {
        font-size: 1.06rem;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
    }

    .hero h1 {
        font-size: 3.4rem;
    }

    .hero-actions,
    .button-row,
    .subscribe-form {
        align-items: stretch;
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .shelf,
    .card-grid,
    .category-grid,
    .ranking-board,
    .korean-ribbon,
    .mosaic,
    .schedule,
    .about-points,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .mosaic-item:first-child {
        grid-column: auto;
        min-height: 260px;
    }

    .spotlight-copy,
    .about-panel,
    .guide-panel,
    .app-banner,
    .page-hero {
        padding: 30px 22px;
    }

    .spotlight-art {
        min-height: 300px;
    }

    .page-hero {
        margin-top: 28px;
    }

    .catalog-card {
        grid-template-columns: 1fr;
    }

    .catalog-card img {
        min-height: auto;
        aspect-ratio: 4 / 3;
    }

    .story-text {
        padding: 22px;
    }

    .chapter-panel {
        padding: 10px;
        border-radius: 18px;
    }

    .chapter-nav {
        grid-template-columns: 1fr;
    }

    .reader-header {
        text-align: left;
    }

    .reader-meta {
        justify-content: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
