:root {
    --ink: #172238;
    --muted: #657089;
    --paper: #f6f2e9;
    --card: #fffdf8;
    --night: #14223a;
    --night-soft: #203354;
    --coral: #ff6f5e;
    --mint: #27b7a0;
    --sun: #ffc857;
    --line: rgba(23, 34, 56, 0.13);
    --shadow: 0 20px 60px rgba(23, 34, 56, 0.12);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button {
    font: inherit;
}

.skip-link {
    position: fixed;
    top: -80px;
    left: 20px;
    z-index: 100;
    padding: 10px 18px;
    color: white;
    background: var(--coral);
    border-radius: 10px;
}

.skip-link:focus {
    top: 12px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(20, 34, 58, 0.97);
    backdrop-filter: blur(16px);
}

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

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

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

.brand-mark {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    color: var(--night);
    background: var(--sun);
    border: 3px solid white;
    border-radius: 16px 16px 16px 4px;
    font-size: 23px;
    font-weight: 900;
    transform: rotate(-4deg);
}

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

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

.brand-copy small {
    margin-top: 5px;
    color: #afbed6;
    font-size: 11px;
    letter-spacing: 0.18em;
}

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

.primary-nav a {
    min-width: 68px;
    display: grid;
    justify-items: center;
    gap: 2px;
    padding: 10px 8px;
    color: #c4cee0;
    border-radius: 14px;
    font-size: 12px;
    transition: 0.2s ease;
}

.primary-nav a:hover,
.primary-nav a.is-active {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.primary-nav a.is-active {
    box-shadow: inset 0 -2px var(--coral);
}

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

.nav-toggle {
    display: none;
    color: white;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

main {
    padding-top: 34px;
}

.section-space {
    margin-bottom: 88px;
}

.eyebrow {
    display: inline-block;
    color: var(--coral);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.hero {
    min-height: 610px;
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    align-items: center;
    gap: 62px;
    padding: 54px;
    overflow: hidden;
    color: white;
    background: var(--night);
    border-radius: 34px;
    box-shadow: var(--shadow);
}

.hero h1 {
    margin: 18px 0;
    font-size: clamp(52px, 7vw, 92px);
    line-height: 0.95;
    letter-spacing: -0.06em;
}

.hero h1 a {
    position: relative;
}

.hero h1 a::after {
    content: "";
    position: absolute;
    right: -18px;
    bottom: 8px;
    width: 13px;
    height: 13px;
    background: var(--sun);
    border-radius: 50%;
}

.hero-lead {
    max-width: 580px;
    margin: 0 0 28px;
    color: #c5d0e3;
    font-size: 17px;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 14px;
    font-weight: 800;
}

.button-primary {
    color: white;
    background: var(--coral);
    box-shadow: 0 10px 28px rgba(255, 111, 94, 0.28);
}

.button-ghost {
    color: inherit;
    border: 1px solid currentColor;
}

.hero-facts {
    display: flex;
    gap: 30px;
    margin: 38px 0 0;
}

.hero-facts div {
    display: grid;
}

.hero-facts dt {
    color: var(--sun);
    font-size: 25px;
    font-weight: 900;
}

.hero-facts dd {
    margin: 0;
    color: #afbed6;
    font-size: 12px;
}

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

.hero-art img {
    aspect-ratio: 4 / 5;
    border: 10px solid white;
    border-radius: 180px 180px 28px 28px;
    transform: rotate(2deg);
}

.floating-note {
    position: absolute;
    left: -38px;
    bottom: 34px;
    width: 230px;
    display: grid;
    padding: 18px 20px;
    color: var(--ink);
    background: var(--sun);
    border-radius: 18px;
    box-shadow: var(--shadow);
    transform: rotate(-3deg);
}

.floating-note span {
    font-size: 11px;
    letter-spacing: 0.1em;
}

.ticker {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 18px 24px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--card);
}

.ticker > strong {
    flex: 0 0 auto;
    color: var(--coral);
}

.ticker-track {
    display: flex;
    gap: 30px;
    white-space: nowrap;
}

.ticker-track span::before {
    content: "•";
    margin-right: 12px;
    color: var(--mint);
}

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

.section-heading h2,
.collection-hero h1,
.about-section h2,
.app-panel h2 {
    margin: 8px 0 0;
    font-size: clamp(32px, 4vw, 50px);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

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

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

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

.category-card {
    min-height: 260px;
    display: flex;
    flex-direction: column;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card:nth-child(5),
.category-card:nth-child(6),
.category-card:nth-child(7) {
    grid-column: span 1;
}

.category-card:nth-child(7) {
    grid-column: span 2;
}

.category-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    color: white;
    background: var(--night);
    border-radius: 14px;
    font-size: 20px;
}

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

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

.category-card strong {
    margin-top: auto;
    color: var(--coral);
    font-size: 13px;
}

.category-2,
.category-5 {
    background: #eef9f7;
}

.category-3,
.category-7 {
    background: #fff3e9;
}

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

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

.comic-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--card);
}

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

.cover-link img {
    aspect-ratio: 3 / 4;
    transition: transform 0.3s ease;
}

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

.tone-tag {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 4px 10px;
    color: white;
    background: var(--night);
    border-radius: 999px;
    font-size: 11px;
}

.card-body {
    padding: 18px;
}

.card-body h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.card-body p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 13px;
}

.text-link {
    color: var(--coral);
    font-size: 13px;
    font-weight: 800;
}

.spotlight {
    display: grid;
    grid-template-columns: 1.7fr 0.8fr;
    gap: 24px;
}

.spotlight-lead {
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    align-items: center;
    gap: 38px;
    padding: 34px;
    color: white;
    background: var(--night);
    border-radius: 30px;
}

.spotlight-lead img {
    aspect-ratio: 3 / 4;
    border-radius: 18px;
}

.spotlight-lead h2 {
    margin: 8px 0 18px;
    font-size: 38px;
    line-height: 1.15;
}

.spotlight-lead p {
    margin: 0 0 24px;
    color: #c5d0e3;
}

.mini-stack {
    display: grid;
    gap: 10px;
}

.mini-stack a {
    display: grid;
    grid-template-columns: 44px 1fr;
    align-items: center;
    column-gap: 14px;
    padding: 15px 17px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--card);
}

.mini-stack span {
    grid-row: span 2;
    color: var(--coral);
    font-size: 22px;
    font-weight: 900;
}

.mini-stack small {
    color: var(--muted);
}

.day-line {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
}

.day-item {
    min-width: 0;
    display: grid;
    gap: 9px;
    padding: 24px 16px;
    border-right: 1px solid var(--line);
    background: var(--card);
}

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

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

.korean-stage {
    display: grid;
    grid-template-columns: 0.72fr 1.28fr;
    gap: 40px;
    padding: 45px;
    background: #e7f7f3;
    border-radius: 30px;
}

.vertical-title {
    align-self: center;
}

.vertical-title h2 {
    margin: 10px 0 18px;
    font-size: 45px;
    line-height: 1.1;
}

.vertical-title p {
    color: var(--muted);
}

.poster-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.poster-card {
    min-width: 0;
    overflow: hidden;
    border-radius: 22px;
    background: white;
}

.poster-card img {
    aspect-ratio: 2 / 3;
}

.poster-card .card-body p {
    display: none;
}

.ranking-list {
    margin: 0;
    padding: 0;
    border-top: 2px solid var(--ink);
    list-style: none;
}

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

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

.ranking-list li div {
    display: grid;
}

.ranking-list small {
    color: var(--muted);
}

.ranking-list a {
    font-weight: 800;
}

.completed-strip {
    padding: 46px;
    color: white;
    background: var(--night-soft);
    border-radius: 30px;
}

.completed-strip > div:first-child {
    max-width: 650px;
    margin-bottom: 30px;
}

.completed-strip h2 {
    margin: 8px 0;
    font-size: 40px;
}

.completed-strip p {
    color: #c5d0e3;
}

.book-spines {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.book-spines a {
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 18px;
    color: var(--ink);
    background: var(--sun);
    border-radius: 8px 18px 18px 8px;
}

.book-spines a:nth-child(even) {
    background: #f5a8a0;
}

.book-spines span {
    font-size: 11px;
}

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

.steps-grid article {
    padding: 30px;
    border-top: 4px solid var(--coral);
    background: var(--card);
}

.steps-grid span {
    color: var(--mint);
    font-weight: 900;
}

.steps-grid h3 {
    margin: 20px 0 8px;
    font-size: 23px;
}

.steps-grid p {
    margin: 0;
    color: var(--muted);
}

.about-section {
    display: grid;
    grid-template-columns: 0.65fr 1.35fr;
    gap: 60px;
    padding: 52px;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: var(--card);
}

.about-copy p {
    margin: 0 0 18px;
    color: var(--muted);
}

.about-points {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 25px 0 0;
    padding: 0;
    list-style: none;
}

.about-points li {
    padding: 13px 16px;
    background: #eef9f7;
    border-radius: 12px;
}

.about-points li::before {
    content: "✓";
    margin-right: 9px;
    color: var(--mint);
    font-weight: 900;
}

.app-panel {
    display: grid;
    grid-template-columns: 0.55fr 1.45fr;
    align-items: center;
    gap: 50px;
    padding: 46px 60px;
    color: white;
    background: linear-gradient(135deg, #1b2d4c, #16223a);
    border-radius: 30px;
}

.app-visual {
    display: grid;
    place-items: center;
}

.qr-grid {
    width: 176px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    color: var(--night);
    background-color: white;
    background-image: linear-gradient(90deg, transparent 45%, var(--night) 45%, var(--night) 55%, transparent 55%), linear-gradient(transparent 45%, var(--night) 45%, var(--night) 55%, transparent 55%);
    background-size: 24px 24px;
    border: 12px solid white;
    border-radius: 22px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
    font-size: 38px;
    font-weight: 900;
}

.app-copy p {
    color: #c5d0e3;
}

.app-copy small {
    display: block;
    margin-top: 18px;
    color: #97a7c1;
}

.site-footer {
    padding: 54px 0 30px;
    color: white;
    background: #0f1a2d;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.footer-grid strong {
    font-size: 24px;
}

.footer-grid p,
.copyright {
    color: #9fadc4;
}

.footer-grid nav {
    display: flex;
    align-items: start;
    gap: 24px;
}

.copyright {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
}

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

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

.collection-hero {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 40px;
    padding: 52px;
    color: white;
    background: var(--night);
    border-radius: 30px;
}

.collection-hero > div {
    max-width: 720px;
}

.collection-hero p {
    color: #c5d0e3;
}

.collection-hero dl {
    display: flex;
    gap: 30px;
    margin: 0;
}

.collection-hero dl div {
    display: grid;
}

.collection-hero dt {
    color: var(--sun);
    font-size: 34px;
    font-weight: 900;
}

.collection-hero dd {
    margin: 0;
    color: #afbed6;
    font-size: 12px;
}

.editorial-note {
    padding: 34px 38px;
    border-left: 6px solid var(--mint);
    background: #e7f7f3;
    border-radius: 0 22px 22px 0;
}

.editorial-note h2 {
    margin: 0 0 10px;
}

.editorial-note p {
    margin: 0;
    color: var(--muted);
}

.reader-page {
    max-width: 940px;
    margin-right: auto;
    margin-left: auto;
}

.reader-header {
    margin-bottom: 30px;
    text-align: center;
}

.reader-header h1 {
    margin: 12px 0;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.15;
}

.reader-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 22px;
    color: var(--muted);
    font-size: 13px;
}

.reader-intro {
    max-width: 760px;
    margin: 24px auto 0;
    color: var(--muted);
}

.reading-note {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    margin-bottom: 34px;
    padding: 18px 22px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--card);
}

.reading-note strong {
    color: var(--coral);
}

.reading-note p {
    margin: 0;
    color: var(--muted);
}

.comic-panels {
    display: grid;
    gap: 28px;
}

.comic-panels figure {
    margin: 0;
    overflow: hidden;
    background: #0e1728;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.comic-panels img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.comic-panels figcaption {
    padding: 13px 18px;
    color: #aebbd0;
    font-size: 12px;
    text-align: center;
}

.chapter-end {
    margin: 50px 0 26px;
    padding: 42px;
    text-align: center;
    border: 2px dashed var(--line);
    border-radius: 24px;
}

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

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

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

.chapter-link,
.back-button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--card);
}

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

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

.back-button {
    color: white;
    background: var(--coral);
    border-color: var(--coral);
    font-weight: 800;
}

@media (max-width: 1080px) {
    .header-shell {
        flex-wrap: wrap;
        padding: 14px 0;
    }

    .primary-nav {
        order: 3;
        width: 100%;
        overflow-x: auto;
    }

    .primary-nav ul {
        min-width: max-content;
    }

    .hero {
        grid-template-columns: 1fr 0.85fr;
        padding: 42px;
    }

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

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

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

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

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

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

@media (max-width: 760px) {
    .header-shell,
    main,
    .footer-grid,
    .copyright {
        width: min(100% - 24px, 1200px);
    }

    .header-shell {
        min-height: 72px;
    }

    .brand-mark {
        width: 42px;
        height: 42px;
    }

    .brand-copy small {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
        padding: 8px 14px;
    }

    .primary-nav {
        display: none;
    }

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

    .primary-nav ul {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        min-width: 0;
        gap: 6px;
        padding-bottom: 8px;
    }

    .primary-nav a {
        min-width: 0;
    }

    main {
        padding-top: 22px;
    }

    .section-space {
        margin-bottom: 58px;
    }

    .hero {
        min-height: 0;
        grid-template-columns: 1fr;
        gap: 38px;
        padding: 32px 24px;
        border-radius: 24px;
    }

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

    .hero-facts {
        gap: 18px;
    }

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

    .floating-note {
        left: 12px;
        bottom: 22px;
    }

    .ticker-track {
        overflow-x: auto;
    }

    .split-heading,
    .footer-grid,
    .copyright,
    .collection-hero {
        align-items: start;
        flex-direction: column;
    }

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

    .category-card:nth-child(7) {
        grid-column: span 2;
    }

    .spotlight-lead,
    .korean-stage,
    .about-section,
    .app-panel {
        grid-template-columns: 1fr;
    }

    .spotlight-lead {
        padding: 24px;
    }

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

    .korean-stage,
    .about-section,
    .app-panel,
    .collection-hero,
    .completed-strip {
        padding: 30px 24px;
    }

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

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

    .book-spines a:last-child {
        grid-column: span 2;
    }

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

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

    .back-button {
        grid-column: span 2;
        grid-row: 1;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .primary-nav ul {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .category-grid,
    .five-grid,
    .steps-grid,
    .mini-stack,
    .poster-row {
        grid-template-columns: 1fr;
    }

    .category-card:nth-child(7),
    .book-spines a:last-child {
        grid-column: span 1;
    }

    .poster-card {
        display: grid;
        grid-template-columns: 0.8fr 1.2fr;
    }

    .poster-card .card-body p {
        display: block;
    }

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

    .ranking-list a {
        grid-column: 2;
    }

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

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

    .back-button {
        grid-column: 1;
    }

    .chapter-next {
        text-align: left;
    }
}
