/* LOL플레이 — 심야 상영관. 와인빛 어둠 위에 크림슨 하나. */
:root {
  --ink: #0b0507;
  --ink-2: #13080b;
  --ink-3: #1c0c10;
  --line: rgba(245, 222, 222, 0.12);
  --line-2: rgba(245, 222, 222, 0.22);
  --text: #f6ece9;
  --muted: #c4a6aa;
  --dim: #8f747a;
  --red: #c8142f;
  --red-hi: #e5223f;
  --red-deep: #5c0814;
  --serif: "Hahmlet", "Noto Serif KR", serif;
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --r: 14px;
  --wrap: min(1160px, calc(100% - 40px));
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--ink); -webkit-text-size-adjust: 100%; scrollbar-color: var(--red-deep) var(--ink); }
body { margin: 0; min-height: 100dvh; background: var(--ink); color: var(--text); font: 400 16px/1.6 var(--sans); letter-spacing: -0.01em; -webkit-font-smoothing: antialiased; }
::selection { background: var(--red); color: #fff; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--red-hi); outline-offset: 3px; border-radius: 6px; }
img, video { display: block; max-width: 100%; }
.ico { flex: none; }
.wrap { width: var(--wrap); margin-inline: auto; }

/* ── 상단 바 ── */
.bar { position: sticky; top: 0; z-index: 20; background: color-mix(in oklab, var(--ink) 82%, transparent); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.bar-in { width: var(--wrap); margin-inline: auto; height: 60px; display: flex; align-items: center; gap: 28px; }
.mark { font: 800 21px/1 var(--serif); letter-spacing: -0.03em; display: inline-flex; align-items: baseline; }
.mark-lol { color: var(--red-hi); margin-right: 1px; }
.mark-sm { font-size: 17px; }
.nav { display: flex; gap: 22px; margin-right: auto; }
.nav a { position: relative; color: var(--muted); font-weight: 600; font-size: 15px; padding: 18px 0; transition: color .2s; }
.nav a:hover { color: var(--text); }
.nav a.on { color: var(--text); }
.nav a.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: 10px; height: 2px; background: var(--red-hi); border-radius: 2px; }
.me { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 14px; color: var(--muted); }
.me:hover { color: var(--text); }
.me-dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--red-deep); color: #ffd9de; font: 700 14px/1 var(--serif); box-shadow: inset 0 0 0 1px rgba(255, 200, 205, .25); }

/* ── 버튼 ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent; font-weight: 700; font-size: 15px; cursor: pointer; white-space: nowrap; transition: background .2s var(--ease), border-color .2s, transform .15s var(--ease), box-shadow .2s; }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .45; cursor: default; transform: none; }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .7); }
.btn-red:hover { background: var(--red-hi); }
.btn-line { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn-line:hover { border-color: rgba(245, 222, 222, .45); background: rgba(245, 222, 222, .04); }
.btn-quiet { background: transparent; color: var(--muted); }
.btn-quiet:hover { color: var(--text); }
.btn-google { background: #fff; color: #1f1f1f; }
.btn-google:hover { background: #f1eded; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 16px; }
.btn-wide { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; color: var(--dim); font-size: 13px; cursor: pointer; }
.link-btn:hover { color: var(--red-hi); }

/* ── 타이포 ── */
.h1 { font: 700 clamp(28px, 4vw, 40px)/1.2 var(--serif); letter-spacing: -0.03em; margin: 0; text-wrap: balance; }
.h2 { font: 700 clamp(24px, 3vw, 32px)/1.2 var(--serif); letter-spacing: -0.03em; margin: 0; }
.h3 { font: 700 19px/1.3 var(--serif); margin: 0; }
.lede { color: var(--muted); margin: 8px 0 0; }
.empty { color: var(--dim); padding: 28px 0; list-style: none; }

/* ── 홈: 대표작 ── */
.feature { position: relative; isolation: isolate; overflow: hidden; }
.feature-screen { position: relative; height: min(78dvh, 720px); min-height: 520px; }
.feature-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.feature-shade { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(11,5,7,.15) 0%, rgba(11,5,7,0) 30%, rgba(11,5,7,.55) 62%, var(--ink) 100%),
  radial-gradient(120% 70% at 50% 100%, rgba(120, 8, 26, .55), transparent 70%); }
.feature-copy { position: relative; z-index: 2; width: var(--wrap); margin: -230px auto 0; padding-bottom: 8px; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .02em; color: #fff; background: var(--red); padding: 5px 10px; border-radius: 999px; margin-bottom: 14px; }
.feature-title { font: 800 clamp(44px, 7vw, 92px)/1.02 var(--serif); letter-spacing: -0.04em; margin: 0; word-break: keep-all; text-wrap: balance; text-shadow: 0 2px 30px rgba(0,0,0,.45); }
.feature-sub { font: 600 clamp(18px, 2.4vw, 24px)/1.35 var(--serif); color: #ffd3d9; margin: 12px 0 0; letter-spacing: -0.02em; }
.feature-hook { color: var(--muted); max-width: 34ch; margin: 14px 0 0; font-size: 16px; }
.facts { display: flex; gap: 0; margin: 26px 0 0; padding: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); max-width: 520px; }
.facts div { flex: 1; padding: 14px 0 13px; }
.facts div + div { border-left: 1px solid var(--line); padding-left: 16px; }
.facts dt { color: var(--dim); font-size: 12px; font-weight: 600; }
.facts dd { margin: 2px 0 0; font: 700 18px/1.2 var(--serif); font-variant-numeric: tabular-nums; }
.cta { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }

@media (min-width: 900px) {
  .feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; width: var(--wrap); margin: 0 auto; padding: 56px 0 24px; gap: 64px; overflow: visible; }
  .feature-screen { order: 2; height: min(78dvh, 760px); min-height: 0; aspect-ratio: 9 / 16; justify-self: end; width: auto; border-radius: 22px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px var(--line); }
  .feature-video { object-position: 50% 50%; }
  .feature-shade { background: linear-gradient(180deg, transparent 70%, rgba(11,5,7,.35)); }
  .feature-copy { order: 1; width: auto; margin: 0; }
  .feature::before { content: ""; position: absolute; z-index: -1; right: -10%; top: 0; width: 70%; height: 100%; background: radial-gradient(50% 50% at 60% 50%, rgba(200, 20, 47, .22), transparent 70%); pointer-events: none; }
}

/* ── 죽는 방법 필름 띠 ── */
.reel { padding: 64px 0 8px; }
.reel-head { margin-bottom: 22px; }
.reel-strip { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px max(20px, calc((100% - 1160px) / 2)) 18px; scroll-padding-inline: max(20px, calc((100% - 1160px) / 2)); scrollbar-width: none; }
.reel-strip::-webkit-scrollbar { display: none; }
.reel-cell { position: relative; flex: none; width: clamp(150px, 19vw, 210px); aspect-ratio: 9 / 16; margin: 0; border-radius: var(--r); overflow: hidden; scroll-snap-align: start; background: var(--ink-3); box-shadow: 0 0 0 1px var(--line); }
.reel-video { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) contrast(1.05); transition: filter .4s var(--ease), transform .6s var(--ease); }
.reel-cell:hover .reel-video { filter: saturate(1.1) contrast(1.05); transform: scale(1.03); }
.reel-cell figcaption { position: absolute; inset: auto 0 0 0; padding: 40px 12px 12px; background: linear-gradient(180deg, transparent, rgba(11,5,7,.92)); display: grid; gap: 2px; }
.reel-no { font-size: 10px; font-weight: 800; letter-spacing: .14em; color: var(--red-hi); }
.reel-name { font: 700 15px/1.3 var(--serif); letter-spacing: -0.02em; }

.reel-cell.locked .reel-video { filter: blur(14px) saturate(.6) brightness(.55); transform: scale(1.15); }
.reel-cell.locked:hover .reel-video { filter: blur(12px) saturate(.7) brightness(.6); transform: scale(1.15); }
.reel-lock { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(246, 236, 233, .85); }
.reel-lock .ico { width: 30px; height: 30px; }
.reel-cell.locked .reel-name { color: var(--dim); letter-spacing: .1em; }

/* ── 게임 목록 ── */
.list { padding: 56px 0 8px; }
.list-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.count { color: var(--dim); font-size: 14px; }
.more { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; font-size: 14px; }
.more:hover { color: var(--red-hi); }
.quiet-link { display: inline-flex; width: fit-content; margin-top: 14px; color: var(--muted); font-size: 14px; font-weight: 700; text-decoration: underline; text-decoration-color: rgba(229, 34, 63, .45); text-underline-offset: 5px; }
.quiet-link:hover { color: var(--text); text-decoration-color: var(--red-hi); }
.row { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.row-poster { position: relative; width: 92px; aspect-ratio: 9 / 16; border: 0; padding: 0; border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--ink-3); box-shadow: 0 0 0 1px var(--line); }
.row-video { width: 100%; height: 100%; object-fit: cover; }
.row-poster-empty { display: grid; place-items: center; color: var(--dim); cursor: default; background: var(--ink-2); }
.row-title { font: 700 21px/1.3 var(--serif); letter-spacing: -0.02em; margin: 0; }
.row-sub { color: var(--muted); margin: 2px 0 0; }
.row-meta { color: var(--dim); font-size: 13px; margin: 8px 0 0; font-variant-numeric: tabular-nums; }
.row-intro { margin-top: 8px; }
.row-next { opacity: .7; grid-template-columns: 92px minmax(0, 1fr); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 10px 0 0; }
.tags li { font-size: 12px; font-weight: 600; color: #f0bcc4; background: rgba(200, 20, 47, .14); padding: 3px 9px; border-radius: 999px; }
@media (max-width: 560px) {
  .row { grid-template-columns: 76px minmax(0, 1fr); }
  .row-poster { width: 76px; }
  .row > .btn { grid-column: 1 / -1; width: 100%; }
}

/* ── LOL소설 ── */
.novels { padding: 58px 0 8px; scroll-margin-top: 84px; }
.novel-strip { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 18px 0 12px; scrollbar-width: none; }
.novel-strip::-webkit-scrollbar { display: none; }
.novel-card { flex: 0 0 min(76vw, 250px); scroll-snap-align: start; }
.novel-card-link { position: relative; display: grid; width: 100%; gap: 12px; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.novel-art { position: relative; aspect-ratio: 2 / 3; overflow: hidden; border-radius: var(--r); background: var(--ink-3); box-shadow: 0 0 0 1px var(--line), 0 22px 48px -32px rgba(0,0,0,.8); }
.novel-cover { width: 100%; height: 100%; object-fit: cover; }
.novel-cover-fallback { display: grid; align-content: end; gap: 10px; padding: 18px; background: radial-gradient(100% 70% at 50% 0%, rgba(229,34,63,.35), transparent 62%), linear-gradient(150deg, #23070d, #5c0814 52%, #0b0507); }
.novel-cover-fallback strong { font: 800 30px/1.15 var(--serif); letter-spacing: 0; word-break: keep-all; }
.novel-cover-series { color: #ffd9de; font-size: 12px; font-weight: 800; }
.novel-badge, .novel-read { position: absolute; top: 10px; border-radius: 999px; padding: 5px 9px; font-size: 12px; font-weight: 800; }
.novel-badge { left: 10px; background: var(--red); color: #fff; }
.novel-read { right: 10px; background: rgba(9,3,6,.72); color: #ffe2e6; box-shadow: inset 0 0 0 1px rgba(255,226,230,.22); }
.novel-card-copy { display: grid; gap: 3px; min-width: 0; }
.novel-title { font: 700 20px/1.25 var(--serif); letter-spacing: 0; margin: 0; }
.novel-sub, .novel-cast, .novel-meta { margin: 0; }
.novel-sub { color: var(--muted); }
.novel-cast, .novel-meta { color: var(--dim); font-size: 13px; }
.novel-tags { margin-top: 7px; }
.novel-progress { position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; border-radius: 999px; background: var(--line); overflow: hidden; }
.novel-progress::before { content: ""; display: block; width: calc(var(--p) * 100%); height: 100%; background: var(--red-hi); }

/* ── 광고 ── */
.ad { display: grid; place-items: center; margin: 28px auto 0; }

/* ── 이야기(목록) ── */
.talk { padding: 56px 0 24px; }
.posts { list-style: none; margin: 0; padding: 0; }
.post { border-bottom: 1px solid var(--line); }
.post-link { display: grid; gap: 6px; padding: 16px 0; transition: transform .25s var(--ease); }
.post-link:hover { transform: translateX(6px); }
.post-link:hover .post-title { color: #ffd9de; }
.post-title { font: 600 18px/1.4 var(--serif); letter-spacing: -0.02em; transition: color .2s; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; color: var(--dim); font-size: 13px; margin: 0; }
.post-meta .who { color: var(--muted); font-weight: 600; }
.stat { display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
.stat .ico { width: 14px; height: 14px; }

/* ── 일반 페이지 ── */
.page { padding: 40px 0 32px; }
.narrow { max-width: 720px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 22px 0 6px; scrollbar-width: none; }
.chip { flex: none; font-size: 14px; font-weight: 600; color: var(--muted); padding: 8px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); transition: color .2s, background .2s; }
.chip:hover { color: var(--text); }
.chip.on { color: #fff; background: var(--red); box-shadow: none; }
.page .btn-wide { margin-top: 20px; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; font-weight: 600; margin-bottom: 18px; }
.back:hover { color: var(--text); }

/* ── 폼 ── */
.form { display: grid; gap: 8px; margin-top: 24px; }
.form label { font-size: 13px; font-weight: 700; color: var(--muted); margin-top: 10px; }
input, textarea, select { width: 100%; background: var(--ink-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 13px 14px; font-size: 16px; caret-color: var(--red-hi); transition: border-color .2s, background .2s; }
input:hover, textarea:hover, select:hover { border-color: rgba(245, 222, 222, .35); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--red-hi); background: var(--ink-3); }
::placeholder { color: var(--dim); }
textarea { resize: vertical; line-height: 1.6; }
.form-error { color: #ff8a9b; font-size: 14px; margin: 6px 0 0; min-height: 1em; }
.form-note { color: var(--dim); font-size: 13px; margin: 2px 0 0; }

/* ── 글 상세 ── */
.article { padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.article .h1 { margin-top: 10px; }
.article-body { white-space: pre-wrap; line-height: 1.8; margin: 22px 0 0; max-width: 68ch; color: #ecdcd9; }
.article-actions { display: flex; align-items: center; gap: 10px; margin-top: 26px; }
.like.on { border-color: var(--red); color: #ffd9de; background: rgba(200, 20, 47, .16); }
.like.on .ico path { fill: var(--red-hi); stroke: var(--red-hi); }
.comments { margin-top: 28px; }
.comment-list { list-style: none; margin: 14px 0 0; padding: 0; }
.comment { padding: 14px 0; border-bottom: 1px solid var(--line); }
.comment-body { white-space: pre-wrap; margin: 6px 0 0; line-height: 1.65; }
.reply { display: grid; gap: 10px; margin-top: 18px; }
.reply .btn { justify-self: end; }

/* ── 로그인 시트 ── */
.sheet { border: 0; padding: 0; background: transparent; color: var(--text); max-width: none; max-height: none; width: 100%; height: 100%; margin: 0; display: flex; align-items: flex-end; justify-content: center; }
.sheet:not([open]) { display: none; }
.sheet::backdrop { background: rgba(5, 2, 3, .62); backdrop-filter: blur(4px); }
.sheet-body { width: min(440px, 100%); background: var(--ink-2); border-radius: 22px 22px 0 0; padding: 30px 24px calc(22px + env(safe-area-inset-bottom)); display: grid; gap: 10px; box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, .7), 0 0 0 1px var(--line); animation: sheet-in .45s var(--ease); }
.sheet-body:focus { outline: none; }
.sheet-body h2 { font: 700 24px/1.25 var(--serif); letter-spacing: -0.03em; margin: 0; }
.sheet-body p { color: var(--muted); margin: 0 0 12px; }
@media (min-width: 640px) { .sheet { align-items: center; } .sheet-body { border-radius: 22px; } }
@keyframes sheet-in { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }

.install-head { display: flex; gap: 14px; align-items: center; margin-bottom: 8px; }
.install-head p { margin: 2px 0 0; }
.install-icon { border-radius: 14px; box-shadow: 0 0 0 1px var(--line); }
.install-steps { margin: 4px 0 12px; padding-left: 20px; color: var(--muted); display: grid; gap: 6px; }
.install-steps .ico { display: inline; vertical-align: -3px; color: var(--text); }

/* ── 바닥 ── */
.foot { border-top: 1px solid var(--line); margin-top: 48px; padding: 26px 0 calc(30px + env(safe-area-inset-bottom)); }
.foot-in { width: var(--wrap); margin-inline: auto; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; color: var(--dim); font-size: 13px; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 14px; }
.foot-links a:hover { color: var(--text); }

/* ── 정적 소개 페이지 ── */
.seo-main { width: var(--wrap); margin: 0 auto; padding: 54px 0 18px; }
.seo-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(260px, .95fr); gap: 42px; align-items: center; padding: 24px 0 42px; border-bottom: 1px solid var(--line); }
.seo-eyebrow { margin: 0 0 10px; color: var(--red-hi); font-size: 13px; font-weight: 800; }
.seo-title { font: 800 clamp(36px, 6vw, 72px)/1.08 var(--serif); margin: 0; letter-spacing: 0; word-break: keep-all; text-wrap: balance; }
.seo-lede { max-width: 56ch; margin: 18px 0 0; color: var(--muted); font-size: 18px; }
.seo-cover { width: min(100%, 380px); justify-self: end; border-radius: 18px; box-shadow: 0 34px 80px -34px rgba(0,0,0,.8), 0 0 0 1px var(--line); }
.seo-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.seo-section { padding: 36px 0; border-bottom: 1px solid var(--line); }
.seo-section h2 { font: 700 26px/1.25 var(--serif); margin: 0 0 14px; letter-spacing: 0; }
.seo-section p { color: #e9d8d5; max-width: 72ch; margin: 10px 0 0; }
.seo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.seo-list { margin: 0; padding-left: 20px; color: #e9d8d5; }
.seo-list li + li { margin-top: 8px; }
.seo-card { padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--ink-2); }
.seo-card h3 { font: 700 18px/1.35 var(--serif); margin: 0 0 6px; letter-spacing: 0; }
.seo-card p { margin: 0; color: var(--muted); }
.seo-faq details { padding: 15px 0; border-bottom: 1px solid var(--line); }
.seo-faq summary { cursor: pointer; font-weight: 800; color: var(--text); }
.seo-faq p { margin-top: 8px; color: var(--muted); }
.prerender { width: var(--wrap); margin: 0 auto; padding: 54px 0; }
.prerender h1 { font: 800 clamp(34px, 6vw, 68px)/1.1 var(--serif); margin: 0; letter-spacing: 0; }
.prerender p { color: var(--muted); max-width: 68ch; }

@media (max-width: 760px) {
  .seo-hero { grid-template-columns: 1fr; }
  .seo-cover { justify-self: start; max-width: 260px; }
  .seo-grid { grid-template-columns: 1fr; }
  .foot-in { align-items: flex-start; flex-direction: column; }
  .foot-links { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* 메뉴가 늘어도 한 줄 유지(모바일) */
.mark, .nav a, .me-name { white-space: nowrap; }
@media (max-width: 440px) {
  .bar-in { gap: 14px; }
  .nav { gap: 14px; }
  .nav a { font-size: 14px; }
  .mark { font-size: 19px; }
  .me-name { display: none; }
}

/* 작품 소개 엔딩 목록 — 잠긴 엔딩은 흐리게 */
.seo-endings .seo-blur { filter: blur(6px); user-select: none; opacity: .7; }
