:root {
    --ink: #f6f2e8;
    --muted: #aaa5a0;
    --paper: #211f25;
    --paper-soft: #2a272f;
    --night: #111014;
    --night-soft: #18171c;
    --accent: #ffb84d;
    --accent-hot: #ff7557;
    --line: rgba(255, 255, 255, 0.11);
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --shell: 1200px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--ink);
    background: var(--night);
    font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
    font-size: 16px;
    line-height: 1.75;
    overflow-x: hidden;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -2;
    background-image: radial-gradient(circle at 14% 12%, rgba(255, 184, 77, 0.12), transparent 30%), radial-gradient(circle at 86% 36%, rgba(92, 200, 255, 0.09), transparent 28%), linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: auto, auto, 32px 32px, 32px 32px;
    content: "";
    pointer-events: none;
}

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

button,
input {
    font: inherit;
}

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

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

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

.section {
    margin-top: 110px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--line);
    background: rgba(17, 16, 20, 0.91);
    backdrop-filter: blur(18px);
}

.header-shell {
    display: flex;
    width: min(calc(100% - 40px), var(--shell));
    min-height: 86px;
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
}

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

.brand-mark {
    display: grid;
    width: 46px;
    height: 46px;
    border: 2px solid var(--ink);
    border-radius: 14px 14px 14px 4px;
    color: var(--night);
    background: var(--accent);
    box-shadow: 5px 5px 0 var(--accent-hot);
    place-items: center;
    font-size: 23px;
    font-weight: 900;
    transform: rotate(-3deg);
}

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

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

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

.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
}

.nav-link {
    display: grid;
    min-width: 62px;
    padding: 10px 8px;
    border-radius: 12px;
    color: var(--muted);
    place-items: center;
    font-size: 13px;
    line-height: 1.2;
    transition: 180ms ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--ink);
    background: rgba(255, 184, 77, 0.12);
}

.nav-link.is-active {
    box-shadow: inset 0 -2px 0 var(--accent);
}

.nav-icon {
    min-height: 22px;
    margin-bottom: 4px;
    color: var(--accent);
    font-size: 16px;
}

.nav-toggle {
    display: none;
    padding: 9px 13px;
    border: 1px solid var(--line);
    border-radius: 11px;
    color: var(--ink);
    background: var(--paper);
    cursor: pointer;
}

.hero {
    display: grid;
    min-height: 650px;
    margin-top: 56px;
    padding: 58px;
    border: 1px solid var(--line);
    border-radius: 36px;
    background: linear-gradient(135deg, rgba(41, 38, 47, 0.95), rgba(24, 23, 28, 0.96));
    box-shadow: var(--shadow);
    grid-template-columns: 1.02fr 0.98fr;
    align-items: center;
    gap: 60px;
    overflow: hidden;
}

.hero-copy {
    position: relative;
    z-index: 2;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 600px;
    margin: 18px 0 24px;
    font-size: clamp(48px, 6vw, 82px);
    line-height: 1.03;
    letter-spacing: -0.06em;
}

.hero h1 a {
    background: linear-gradient(135deg, #ffffff 12%, #ffd995 58%, #ff7557 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-copy > p {
    max-width: 590px;
    margin: 0;
    color: #c8c2bd;
    font-size: 18px;
}

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

.button {
    display: inline-flex;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 14px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button--primary {
    color: #21140b;
    background: linear-gradient(135deg, var(--accent), #ff9563);
    box-shadow: 0 12px 28px rgba(255, 157, 88, 0.2);
}

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

.hero-stats {
    display: flex;
    margin-top: 42px;
    gap: 38px;
}

.hero-stats div {
    display: grid;
}

.hero-stats strong {
    color: var(--ink);
    font-size: 26px;
    line-height: 1.1;
}

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

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

.hero-frame {
    position: absolute;
    width: 66%;
    border: 8px solid #f3eee4;
    background: #f3eee4;
    box-shadow: 0 32px 70px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.hero-frame img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.hero-frame--back {
    top: 10px;
    right: 0;
    transform: rotate(7deg);
    opacity: 0.66;
}

.hero-frame--front {
    bottom: 5px;
    left: 5%;
    transform: rotate(-5deg);
}

.hero-caption {
    display: grid;
    padding: 13px 14px;
    color: #17141b;
    line-height: 1.25;
}

.hero-caption span {
    color: #83612c;
    font-size: 12px;
    font-weight: 800;
}

.hero-caption strong {
    margin-top: 4px;
    font-size: 19px;
}

.sound-effect {
    position: absolute;
    right: -15px;
    bottom: 28px;
    z-index: 3;
    padding: 9px 14px;
    border-radius: 50%;
    color: #20130c;
    background: var(--accent);
    font-size: 21px;
    font-weight: 900;
    transform: rotate(-10deg);
}

.update-strip {
    display: grid;
    margin-top: 28px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--night-soft);
    grid-template-columns: auto 1fr;
    overflow: hidden;
}

.update-label {
    display: flex;
    padding: 15px 20px;
    color: #24170c;
    background: var(--accent);
    align-items: center;
    gap: 8px;
    font-weight: 900;
}

.update-track {
    display: flex;
    min-width: 0;
    padding: 15px 22px;
    gap: 30px;
    overflow-x: auto;
    scrollbar-width: none;
}

.update-track a {
    flex: 0 0 auto;
    color: #d8d2cc;
    font-size: 14px;
}

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

.section-heading h2 {
    margin: 8px 0 6px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.15;
    letter-spacing: -0.035em;
}

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

.text-link {
    display: inline-flex;
    flex: 0 0 auto;
    color: var(--accent);
    align-items: center;
    gap: 9px;
    font-weight: 800;
}

.feature-layout {
    display: grid;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--paper);
    grid-template-columns: 1.22fr 0.78fr;
    overflow: hidden;
}

.feature-image {
    position: relative;
    min-height: 500px;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-number {
    position: absolute;
    top: 20px;
    left: 20px;
    display: grid;
    width: 62px;
    height: 62px;
    border: 3px solid #17141b;
    border-radius: 50%;
    color: #17141b;
    background: var(--accent);
    place-items: center;
    font-size: 22px;
    font-weight: 900;
}

.feature-copy {
    display: flex;
    padding: 50px;
    flex-direction: column;
    justify-content: center;
}

.pill {
    width: fit-content;
    padding: 6px 11px;
    border: 1px solid rgba(255, 184, 77, 0.3);
    border-radius: 999px;
    color: var(--accent);
    background: rgba(255, 184, 77, 0.07);
    font-size: 13px;
}

.feature-copy h3 {
    margin: 20px 0 14px;
    font-size: 35px;
    line-height: 1.2;
}

.feature-copy p {
    margin: 0;
    color: #c4beb8;
}

.feature-facts {
    display: grid;
    margin: 28px 0;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.feature-facts div {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.feature-facts dt {
    color: var(--muted);
    font-size: 12px;
}

.feature-facts dd {
    margin: 3px 0 0;
    font-weight: 800;
}

.feature-copy .button {
    align-self: flex-start;
}

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

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

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

.comic-cover {
    position: relative;
    display: block;
    border-radius: 18px;
    background: var(--paper-soft);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

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

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

.cover-badge {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 4px 9px;
    border-radius: 999px;
    color: #1c130a;
    background: rgba(255, 184, 77, 0.93);
    font-size: 12px;
    font-weight: 800;
}

.comic-info {
    padding: 16px 4px 0;
}

.comic-meta {
    display: flex;
    color: var(--muted);
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
}

.comic-meta span {
    color: var(--accent);
}

.comic-info h3 {
    margin: 8px 0 7px;
    font-size: 19px;
    line-height: 1.35;
}

.comic-info p {
    display: -webkit-box;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.shelf-button {
    margin-top: 13px;
    padding: 7px 11px;
    border: 1px solid var(--line);
    border-radius: 9px;
    color: var(--ink);
    background: transparent;
    cursor: pointer;
}

.shelf-button.is-saved {
    border-color: rgba(114, 213, 114, 0.42);
    color: #9de59d;
    background: rgba(114, 213, 114, 0.08);
}

.ranking-board {
    display: grid;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--night-soft);
    grid-template-columns: 1.05fr 0.95fr;
    overflow: hidden;
}

.ranking-lead {
    position: relative;
    min-height: 470px;
    overflow: hidden;
}

.ranking-lead::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(15, 13, 17, 0.95) 100%);
    content: "";
}

.ranking-lead img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ranking-lead > div {
    position: absolute;
    right: 34px;
    bottom: 30px;
    left: 34px;
    z-index: 2;
}

.ranking-lead > div > span {
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
}

.ranking-lead h3 {
    margin: 6px 0;
    font-size: 32px;
}

.ranking-lead p {
    margin: 0;
    color: #cbc4bf;
}

.rank-crown {
    position: absolute;
    top: 22px;
    right: 24px;
    z-index: 3;
    display: grid;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: #20160b;
    background: var(--accent);
    place-items: center;
    font-size: 24px;
}

.rank-list {
    display: grid;
    margin: 0;
    padding: 28px 34px;
    list-style: none;
}

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

.rank-list li:last-child {
    border-bottom: 0;
}

.rank-index {
    color: var(--accent);
    font-size: 24px;
    font-weight: 900;
}

.rank-list a {
    font-size: 18px;
    font-weight: 800;
}

.rank-list small {
    display: block;
    color: var(--muted);
}

.rank-change {
    color: #83df99;
    font-size: 12px;
}

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

.category-card {
    position: relative;
    min-height: 250px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: linear-gradient(145deg, var(--paper), rgba(28, 26, 32, 0.82));
    overflow: hidden;
    transition: transform 180ms ease, border-color 180ms ease;
}

.category-card::after {
    position: absolute;
    right: -34px;
    bottom: -42px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--category-color) 20%, transparent);
    content: "";
    filter: blur(2px);
}

.category-card:hover {
    border-color: var(--category-color);
    transform: translateY(-4px);
}

.category-icon {
    display: grid;
    width: 45px;
    height: 45px;
    border-radius: 13px;
    color: #171319;
    background: var(--category-color);
    place-items: center;
    font-size: 21px;
    font-weight: 900;
}

.category-count {
    position: absolute;
    top: 22px;
    right: 24px;
    color: rgba(255, 255, 255, 0.12);
    font-size: 34px;
    font-weight: 900;
}

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

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

.category-arrow {
    position: relative;
    z-index: 2;
    display: inline-flex;
    margin-top: 18px;
    color: var(--category-color);
    font-size: 13px;
    font-weight: 800;
}

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

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

.poster-card a {
    position: relative;
    display: block;
    border-radius: 24px;
    aspect-ratio: 2 / 3;
    overflow: hidden;
}

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

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

.poster-overlay {
    position: absolute;
    inset: auto 0 0;
    display: grid;
    padding: 70px 22px 24px;
    background: linear-gradient(transparent, rgba(13, 11, 16, 0.96));
}

.poster-overlay small {
    color: #cebaff;
}

.poster-overlay strong {
    margin-top: 5px;
    font-size: 22px;
}

.story-timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.story-timeline::before {
    position: absolute;
    top: 25px;
    right: 10%;
    left: 10%;
    height: 1px;
    background: linear-gradient(90deg, #72d572, #ffb84d, #5cc8ff);
    content: "";
}

.timeline-item {
    position: relative;
    z-index: 2;
}

.timeline-dot {
    display: grid;
    width: 52px;
    height: 52px;
    border: 5px solid var(--night);
    border-radius: 50%;
    color: #142015;
    background: #72d572;
    place-items: center;
    font-weight: 900;
}

.timeline-item div {
    margin-top: 17px;
    padding: 23px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--paper);
}

.timeline-item small {
    color: #91d991;
}

.timeline-item h3 {
    margin: 8px 0;
    font-size: 20px;
}

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

.choice-panel {
    display: grid;
    padding: 48px;
    border: 1px solid rgba(255, 184, 77, 0.25);
    border-radius: var(--radius-lg);
    background: linear-gradient(120deg, rgba(255, 184, 77, 0.12), rgba(255, 117, 87, 0.04));
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
}

.choice-panel h2 {
    margin: 8px 0 10px;
    font-size: 34px;
}

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

.mood-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.mood-button {
    padding: 12px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    background: var(--paper);
    cursor: pointer;
}

.mood-button.is-selected {
    border-color: var(--accent);
    color: #21150b;
    background: var(--accent);
}

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

.schedule-day {
    display: grid;
    min-height: 165px;
    padding: 20px 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--paper);
    align-content: space-between;
}

.schedule-day > span {
    color: var(--muted);
    font-size: 13px;
}

.schedule-day strong {
    font-size: 16px;
    line-height: 1.4;
}

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

.schedule-day.is-today {
    border-color: var(--accent);
    color: #24170d;
    background: var(--accent);
    transform: translateY(-7px);
}

.schedule-day.is-today > span,
.schedule-day.is-today small {
    color: #6b461c;
}

.guide-grid {
    display: grid;
    padding: 52px;
    border-radius: var(--radius-lg);
    color: #1b1719;
    background: #efeadf;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 70px;
}

.guide-copy .eyebrow,
.guide-copy .text-link {
    color: #aa4f30;
}

.guide-copy h2 {
    margin: 8px 0 14px;
    font-size: 36px;
    line-height: 1.2;
}

.guide-copy p {
    color: #595052;
}

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

.guide-steps div {
    display: grid;
    min-height: 190px;
    padding: 22px;
    border: 2px solid #272125;
    border-radius: 6px 20px 6px 20px;
    align-content: space-between;
    box-shadow: 6px 6px 0 rgba(39, 33, 37, 0.18);
}

.guide-steps span {
    font-size: 34px;
    font-weight: 900;
}

.guide-steps p {
    margin: 0;
    font-weight: 800;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.08fr;
    gap: 56px;
}

.about-statement {
    padding: 40px;
    border-left: 5px solid var(--accent);
    background: linear-gradient(90deg, rgba(255, 184, 77, 0.08), transparent);
}

.about-statement p {
    margin: 0 0 20px;
    color: #cdc6c0;
    font-size: 18px;
}

.about-statement p:last-child {
    margin-bottom: 0;
}

.about-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.about-values article {
    padding: 25px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--paper);
}

.about-values article > span {
    color: var(--accent);
    font-size: 25px;
}

.about-values h3 {
    margin: 18px 0 8px;
    font-size: 18px;
}

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

.app-panel {
    position: relative;
    display: grid;
    min-height: 400px;
    padding: 58px;
    border-radius: 30px;
    color: #1c1715;
    background: linear-gradient(135deg, #ffcb73, #ff8a65);
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 70px;
    overflow: hidden;
}

.app-panel::before {
    position: absolute;
    top: -90px;
    right: 230px;
    width: 280px;
    height: 280px;
    border: 50px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    content: "";
}

.app-copy {
    position: relative;
    z-index: 2;
}

.app-copy .eyebrow {
    color: #7d381f;
}

.app-copy h2 {
    margin: 8px 0 12px;
    font-size: 42px;
    line-height: 1.15;
}

.app-copy > p {
    max-width: 680px;
    color: #5b3427;
}

.subscribe-form {
    margin-top: 26px;
}

.subscribe-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 800;
}

.subscribe-form > div {
    display: flex;
    max-width: 600px;
    gap: 10px;
}

.subscribe-form input {
    min-width: 0;
    padding: 0 16px;
    border: 2px solid rgba(28, 23, 21, 0.28);
    border-radius: 13px;
    color: #1b1715;
    background: rgba(255, 255, 255, 0.72);
    flex: 1;
    outline: none;
}

.subscribe-form .button--primary {
    color: #fff;
    background: #211b1a;
    box-shadow: none;
}

.form-message {
    min-height: 24px;
    margin: 8px 0 0;
    color: #67341f;
    font-size: 13px;
    font-weight: 700;
}

.brand-code {
    position: relative;
    display: grid;
    width: 230px;
    height: 230px;
    border: 13px solid #231b19;
    color: #231b19;
    background-color: #fff4df;
    background-image: linear-gradient(90deg, rgba(35, 27, 25, 0.09) 50%, transparent 50%), linear-gradient(rgba(35, 27, 25, 0.09) 50%, transparent 50%);
    background-size: 22px 22px;
    place-content: center;
    text-align: center;
    transform: rotate(3deg);
}

.brand-code strong {
    display: grid;
    width: 76px;
    height: 76px;
    margin: 0 auto;
    border-radius: 20px 20px 20px 5px;
    color: #fff4df;
    background: #231b19;
    place-items: center;
    font-size: 38px;
}

.brand-code small {
    margin-top: 13px;
    font-weight: 900;
}

.code-corner {
    position: absolute;
    width: 36px;
    height: 36px;
    border: 8px solid #231b19;
}

.code-corner--one {
    top: 12px;
    left: 12px;
}

.code-corner--two {
    top: 12px;
    right: 12px;
}

.code-corner--three {
    bottom: 12px;
    left: 12px;
}

.site-footer {
    margin-top: 110px;
    padding: 60px max(20px, calc((100% - 1200px) / 2));
    border-top: 1px solid var(--line);
    background: #0c0b0e;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 0.7fr 1fr;
    gap: 70px;
}

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

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

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 20px;
    color: var(--muted);
    font-size: 14px;
}

.footer-bottom {
    display: flex;
    margin-top: 44px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    color: #777278;
    justify-content: space-between;
    gap: 20px;
    font-size: 13px;
}

.footer-bottom p {
    margin: 0;
}

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 80;
    display: grid;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--ink);
    background: rgba(33, 31, 37, 0.9);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    opacity: 0;
    place-items: center;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
}

.back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.category-hero {
    position: relative;
    margin-top: 56px;
    padding: 38px 48px 54px;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--category-color) 14%, var(--paper)), var(--night-soft));
    overflow: hidden;
}

.category-hero::after {
    position: absolute;
    top: -80px;
    right: -40px;
    width: 320px;
    height: 320px;
    border: 60px solid color-mix(in srgb, var(--category-color) 14%, transparent);
    border-radius: 50%;
    content: "";
}

.breadcrumb {
    position: relative;
    z-index: 2;
    display: flex;
    color: var(--muted);
    flex-wrap: wrap;
    gap: 9px;
    font-size: 13px;
}

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

.category-hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    margin-top: 42px;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 40px;
}

.category-hero-icon {
    display: grid;
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
    border-radius: 16px;
    color: #171319;
    background: var(--category-color);
    place-items: center;
    font-size: 25px;
}

.category-hero h1 {
    margin: 7px 0 12px;
    font-size: clamp(46px, 7vw, 76px);
    line-height: 1.05;
}

.category-lead {
    max-width: 720px;
    margin: 0;
    color: #c9c3bd;
    font-size: 18px;
}

.category-note {
    display: grid;
    min-width: 180px;
    padding: 22px;
    border: 1px solid color-mix(in srgb, var(--category-color) 34%, transparent);
    border-radius: 18px;
    background: rgba(17, 16, 20, 0.44);
    text-align: right;
}

.category-note span,
.category-note small {
    color: var(--muted);
}

.category-note strong {
    color: var(--category-color);
    font-size: 44px;
    line-height: 1.1;
}

.category-work-list {
    display: grid;
    gap: 24px;
}

.category-work {
    display: grid;
    min-height: 320px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--paper);
    grid-template-columns: 260px 1fr;
    overflow: hidden;
}

.category-work:nth-child(even) {
    grid-template-columns: 1fr 260px;
}

.category-work:nth-child(even) .category-work-cover {
    order: 2;
}

.category-work-cover {
    position: relative;
    min-height: 320px;
}

.category-work-cover img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.category-work-cover > span {
    position: absolute;
    top: 15px;
    left: 15px;
    display: grid;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    color: #1d150c;
    background: var(--accent);
    place-items: center;
    font-weight: 900;
}

.category-work-copy {
    display: flex;
    padding: 40px 46px;
    flex-direction: column;
    justify-content: center;
}

.category-work-copy h2 {
    margin: 12px 0 10px;
    font-size: 31px;
    line-height: 1.2;
}

.category-work-copy > p {
    margin: 0;
    color: var(--muted);
}

.work-actions {
    display: flex;
    margin-top: 22px;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.work-actions .shelf-button {
    min-height: 48px;
    margin-top: 0;
    padding: 0 18px;
}

.seo-panel {
    padding: 44px;
    border: 1px dashed rgba(255, 184, 77, 0.36);
    border-radius: 20px;
    background: rgba(255, 184, 77, 0.05);
}

.seo-panel h2 {
    margin: 8px 0 15px;
    font-size: 30px;
}

.seo-panel p {
    margin: 0 0 12px;
    color: #c6c0ba;
}

.seo-panel p:last-child {
    margin-bottom: 0;
}

.reader {
    margin-top: 48px;
}

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

.reader-category {
    display: inline-flex;
    padding: 7px 13px;
    border: 1px solid color-mix(in srgb, var(--category-color) 38%, transparent);
    border-radius: 999px;
    color: var(--category-color);
    background: color-mix(in srgb, var(--category-color) 9%, transparent);
    font-size: 13px;
    font-weight: 800;
}

.reader-header h1 {
    margin: 18px 0 14px;
    font-size: clamp(40px, 6vw, 66px);
    line-height: 1.12;
}

.reader-summary {
    max-width: 720px;
    margin: 0 auto;
    color: #c7c0ba;
    font-size: 18px;
}

.reader-meta {
    display: flex;
    margin-top: 24px;
    color: var(--muted);
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 26px;
    font-size: 13px;
}

.reading-note {
    display: grid;
    max-width: 980px;
    margin: 0 auto 44px;
    padding: 22px 26px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: var(--paper);
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
}

.reading-note-icon {
    display: grid;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    color: #1b140c;
    background: var(--accent);
    place-items: center;
    font-size: 22px;
}

.reading-note h2 {
    margin: 0 0 3px;
    font-size: 17px;
}

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

.reading-note .shelf-button {
    margin-top: 0;
}

.comic-pages {
    display: grid;
    max-width: 920px;
    margin: 0 auto;
    gap: 54px;
}

.comic-page {
    margin: 0;
}

.page-label {
    display: flex;
    margin-bottom: 13px;
    align-items: center;
    gap: 12px;
}

.page-label span {
    color: var(--accent);
    font-size: 18px;
    font-weight: 900;
}

.page-label strong {
    font-size: 14px;
    letter-spacing: 0.08em;
}

.comic-page img {
    width: 100%;
    height: min(1200px, 125vw);
    aspect-ratio: 3 / 4;
    border: 8px solid #eee7dc;
    background: var(--paper-soft);
    box-shadow: 0 24px 65px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

.comic-page figcaption {
    max-width: 760px;
    margin: 16px auto 0;
    color: var(--muted);
    text-align: center;
    font-size: 14px;
}

.chapter-end {
    max-width: 850px;
    margin: 80px auto 42px;
    padding: 46px;
    border: 1px solid rgba(255, 184, 77, 0.25);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 184, 77, 0.1), rgba(255, 117, 87, 0.05));
    text-align: center;
}

.chapter-end > span {
    color: var(--accent);
    font-size: 29px;
}

.chapter-end h2 {
    margin: 8px 0 12px;
    font-size: 28px;
}

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

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

.chapter-link,
.chapter-home {
    display: flex;
    min-height: 82px;
    padding: 15px 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--paper);
    justify-content: center;
    flex-direction: column;
}

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

.chapter-link strong {
    margin-top: 2px;
}

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

.chapter-link--disabled {
    color: #6c676d;
    background: rgba(33, 31, 37, 0.48);
}

.chapter-home {
    min-width: 145px;
    align-items: center;
    color: #20160c;
    background: var(--accent);
    font-weight: 900;
}

@media (max-width: 1080px) {
    .header-shell {
        min-height: 76px;
    }

    .brand-copy small {
        display: none;
    }

    .nav-link {
        min-width: 52px;
        padding-right: 5px;
        padding-left: 5px;
        font-size: 12px;
    }

    .hero {
        padding: 42px;
        gap: 34px;
    }

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

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

    .comic-grid--five .comic-card:last-child {
        grid-column: span 2;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 18px;
    }

    .comic-grid--five .comic-card:last-child .comic-info {
        align-self: center;
    }

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

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

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

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

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

@media (max-width: 820px) {
    .section {
        margin-top: 82px;
    }

    .header-shell {
        position: relative;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .site-nav {
        position: absolute;
        top: calc(100% + 1px);
        right: 0;
        left: 0;
        display: none;
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: 0 0 18px 18px;
        background: rgba(17, 16, 20, 0.98);
        grid-template-columns: repeat(4, minmax(0, 1fr));
        box-shadow: var(--shadow);
    }

    .site-nav.is-open {
        display: grid;
    }

    .hero {
        min-height: auto;
        margin-top: 34px;
        padding: 38px;
        grid-template-columns: 1fr;
    }

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

    .feature-layout,
    .ranking-board,
    .choice-panel,
    .guide-grid {
        grid-template-columns: 1fr;
    }

    .feature-image {
        min-height: 390px;
    }

    .korean-scroll,
    .story-timeline {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .story-timeline::before {
        display: none;
    }

    .mood-filters {
        justify-content: flex-start;
    }

    .guide-grid {
        gap: 35px;
    }

    .app-panel {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .category-work,
    .category-work:nth-child(even) {
        grid-template-columns: 210px 1fr;
    }

    .category-work:nth-child(even) .category-work-cover {
        order: 0;
    }

    .category-work-copy {
        padding: 30px;
    }

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

    .footer-grid > div:last-child {
        grid-column: span 2;
    }
}

@media (max-width: 620px) {
    .shell {
        width: min(calc(100% - 24px), var(--shell));
    }

    .header-shell {
        width: min(calc(100% - 24px), var(--shell));
    }

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

    .brand-copy strong {
        font-size: 16px;
    }

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

    .hero {
        padding: 28px 22px;
        border-radius: 24px;
        gap: 24px;
    }

    .hero h1 {
        margin-top: 14px;
        font-size: 43px;
    }

    .hero-copy > p {
        font-size: 16px;
    }

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

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

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

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

    .hero-frame img {
        height: 320px;
    }

    .hero-frame {
        width: 70%;
        border-width: 5px;
    }

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

    .update-label {
        justify-content: center;
    }

    .section-heading {
        display: grid;
        align-items: start;
    }

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

    .feature-copy,
    .choice-panel,
    .guide-grid,
    .about-statement,
    .app-panel {
        padding: 28px 22px;
    }

    .feature-image {
        min-height: 300px;
    }

    .feature-copy h3 {
        font-size: 28px;
    }

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

    .comic-grid--five .comic-card:last-child {
        grid-column: span 2;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .comic-grid--five .comic-card:last-child .comic-info {
        align-self: center;
    }

    .ranking-lead {
        min-height: 400px;
    }

    .rank-list {
        padding: 20px;
    }

    .category-grid,
    .korean-scroll,
    .story-timeline,
    .about-values {
        grid-template-columns: 1fr;
    }

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

    .story-timeline {
        gap: 16px;
    }

    .timeline-item {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 10px;
    }

    .timeline-item div {
        margin-top: 0;
    }

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

    .guide-steps div {
        min-height: 130px;
    }

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

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

    .subscribe-form > div {
        display: grid;
    }

    .subscribe-form input {
        min-height: 50px;
    }

    .brand-code {
        width: 190px;
        height: 190px;
    }

    .category-hero {
        padding: 28px 22px 38px;
    }

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

    .category-note {
        width: 100%;
        text-align: left;
    }

    .category-work,
    .category-work:nth-child(even) {
        grid-template-columns: 1fr;
    }

    .category-work-cover img {
        min-height: 0;
        aspect-ratio: 16 / 10;
    }

    .category-work-cover {
        min-height: 0;
        aspect-ratio: 16 / 10;
    }

    .category-work-copy {
        padding: 25px 22px 28px;
    }

    .category-work-copy h2 {
        font-size: 26px;
    }

    .seo-panel {
        padding: 28px 22px;
    }

    .reader {
        margin-top: 30px;
    }

    .reader-header {
        margin-top: 38px;
    }

    .reader-header h1 {
        font-size: 38px;
    }

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

    .reading-note .shelf-button {
        grid-column: span 2;
    }

    .comic-page img {
        border-width: 4px;
    }

    .chapter-end {
        padding: 32px 22px;
    }

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

    .chapter-home {
        grid-column: span 2;
        grid-row: 1;
    }

    .chapter-link {
        grid-row: 2;
    }

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

    .footer-grid > div:last-child {
        grid-column: span 1;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}
