/* ==========================================================================
   HOME · 홈 (/)
   대담함은 히어로 한 곳에(오로라 + 살아 있는 실). 저절로 움직이는 것은 그것뿐.
   나머지 움직임은 사용자에 답한다: 포인터 테두리 빛(rim.js), 펼치기, 스크롤에 묶인 진행 막대.
   공통 재료(.glass .rim-card .fill-on-view .v2-head)는 brand-v2.css
   ========================================================================== */

/* ---------- 1. hero: Ether Field ----------
   층: 우주(정지 그림 → 캔버스 둘: 바탕·별자리 그물, home-field.js) → 글 쪽 그늘 → 글.
   히어로는 밝은 모드에서도 밤하늘이다. 그래서 히어로 안의 글자 토큰을 밤 값으로 고정하고(color-scheme: dark),
   아래 끝은 페이지 바탕(var(--bg))으로 녹아 밝은 모드에서는 새벽처럼 밝아진다 */
.hero {
  --text: #EAF0F7; --text-2: #B4C0CF; --line-input: rgba(190, 205, 225, .38); --line-2: rgba(190, 205, 225, .24);
  color-scheme: dark; color: var(--text);
  position: relative; isolation: isolate; overflow: hidden;
  margin-top: calc(-1 * var(--header-h));
  height: 100vh; height: 100svh; min-height: 600px; max-height: 1100px;
  background: #05070D;
}
.field { position: absolute; inset: 0; z-index: -2; }
.field picture, .field-poster { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.field-poster { object-fit: cover; }
.field-layer { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1200ms ease-out; }
.field.is-live .field-layer { opacity: 1; }
/* 글이 놓이는 가운데(글자 그림·아래 글)만 살짝 어둡게. 아래 끝은 페이지 바탕으로 */
.hero-shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(56% 34% at 50% 44%, rgba(3, 5, 9, .5), rgba(3, 5, 9, 0) 72%),
    radial-gradient(60% 30% at 50% 84%, rgba(3, 5, 9, .62), rgba(3, 5, 9, 0) 72%),
    linear-gradient(180deg, rgba(3, 5, 9, .35) 0, rgba(3, 5, 9, 0) 16%, rgba(3, 5, 9, 0) 93%, var(--hero-foot, rgba(7, 10, 15, 1)) 100%);
}
:root[data-theme="light"] .hero-shade { --hero-foot: var(--page-bg); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .hero-shade { --hero-foot: var(--page-bg); } }
.hero-inner {
  height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto; justify-items: center; text-align: center;
  padding-top: calc(var(--header-h) + clamp(16px, 4vh, 48px)); padding-bottom: clamp(56px, 8vh, 92px);
}
/* 글자 그림(EtherXync)과 한 줄: 기본은 늘 보이는 진짜 텍스트. 별빛 연출(home-hero.js)은 그 위의 장식 */
.hero-mark { align-self: center; display: grid; justify-items: center; }
.hero-wm {
  font-family: var(--f-display-latin); font-weight: 400; font-style: normal;
  font-size: clamp(4.4rem, 12.5vw, 11.5rem); line-height: 1; letter-spacing: -0.03em; white-space: nowrap;
  text-shadow: 0 0 40px rgba(3, 5, 9, .6);
}
.hero-wm .wm-e { color: #A9F6E6; }
.hero-wm .wm-x { color: #FFFFFF; }
.hero-wm .wm-y { color: #FFBCA6; }
.hero-line {
  margin-top: clamp(10px, 1.6vh, 18px);
  font-family: var(--f-display-latin); font-style: italic; font-weight: 400;
  font-size: clamp(1.35rem, 2.3vw, 2.05rem); line-height: 1.2; letter-spacing: .01em; color: #D5DDE8;
}
.hero-foot { display: grid; justify-items: center; gap: clamp(14px, 2.2vh, 22px); }
.hero-pill {
  display: inline-flex; align-items: center; gap: 10px; min-height: 38px; padding: 0 16px 0 12px; border-radius: var(--r-pill);
  font-size: .88rem; font-weight: 600; color: var(--text-2);
  background: rgba(13, 19, 28, .5); border: 1px solid rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: color var(--d-2), border-color var(--d-2);
}
.hero-pill:hover { color: var(--text); border-color: rgba(99, 242, 210, .4); }
.hero-pill .num { color: var(--text); }
.pill-en { font-family: var(--f-display-latin); font-style: italic; font-size: 1.02rem; color: var(--text); letter-spacing: 0; }
.pill-sep { opacity: .5; }
.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ether); box-shadow: 4px 0 0 -1px var(--xync), 0 0 10px rgba(99, 242, 210, .7); margin-right: 4px; }
.pill-blog[hidden] { display: none; }
@media (pointer: coarse) { .hero-pill { min-height: 44px; } }
.hero-sub { max-width: 40em; font-size: clamp(1rem, 1.2vw, 1.1rem); line-height: 1.7; color: #C3CDD9; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero-cta .btn .arr { transition: transform var(--d-3) var(--ease-expo); }
.hero-cta .btn:hover .arr { transform: translateX(4px); }
.hero-cta .btn-ghost { background: rgba(13, 19, 28, .35); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hero-cta .btn-note { display: inline-block; max-width: 11em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 520; opacity: .72; margin-left: 2px; }
.hero-cta .btn-note::before { content: "· "; }
/* 별빛 연출 캔버스: 글자 위에 얹는 장식. 누르는 것을 막지 않는다 */
.hero-stars { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }
.hero-inner { position: relative; z-index: 2; }

/* 연출하는 동안만(<head> 의 짧은 스크립트가 html.hero-intro 를 붙인다. 실패·지연·움직임 줄이기면 붙지 않거나 곧 떼어진다):
   글자를 잠깐 감추고, 별이 모이면 진짜 글자가 별빛 아래로 떠오른다 */
.hero-intro .hero-wm { opacity: 0; transition: opacity 1000ms ease-out; }
.hero-intro .hero-wm.is-on { opacity: 1; }
.hero-intro .hero-line { clip-path: inset(-20% 100% -20% 0); }
.hero-intro .hero-foot { opacity: 0; transform: translateY(14px); transition: opacity 900ms cubic-bezier(0.16, 1, 0.3, 1), transform 900ms cubic-bezier(0.16, 1, 0.3, 1); }
.hero-intro .hero-foot.is-on, .hero-intro-done .hero-wm, .hero-intro-done .hero-foot { opacity: 1; transform: none; }
.hero-seek .hero-wm, .hero-seek .hero-foot { transition: none !important; }
.hero-intro-done .hero-line { clip-path: none; }

@media (max-width: 719px) {
  .hero { min-height: 560px; max-height: none; }
  .hero-inner { padding-top: calc(var(--header-h) + 12px); padding-bottom: max(48px, calc(24px + env(safe-area-inset-bottom))); }
  .hero-wm { font-size: min(23vw, 6.6rem); }
  .hero-line { font-size: clamp(1.25rem, 6.2vw, 1.6rem); }
  .hero-shade { background:
    radial-gradient(90% 40% at 50% 42%, rgba(3, 5, 9, .45), rgba(3, 5, 9, 0) 70%),
    linear-gradient(180deg, rgba(3, 5, 9, .4) 0, rgba(3, 5, 9, .1) 30%, rgba(3, 5, 9, .55) 66%, rgba(3, 5, 9, .62) 94%, var(--hero-foot, rgba(7, 10, 15, 1)) 100%); }
  .hero-sub { font-size: .98rem; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { flex: 1 1 0; min-width: 0; padding: 0 14px; gap: 6px; }
  .hero-cta .btn-note { display: none; }
}
@media (max-width: 380px) {
  .hero-cta .btn-lg { font-size: .96rem; min-height: 52px; }
  .hero-cta .arr { display: none; }
  .hero-pill { font-size: .8rem; }
}
@media (max-height: 640px) and (min-width: 720px) {
  .hero-inner { padding-top: calc(var(--header-h) + 8px); padding-bottom: 24px; }
  .hero-wm { font-size: clamp(3.6rem, 9vw, 7rem); }
}

/* 머리: 히어로 위에서는 투명한 밤 머리(밝은 모드여도 글자는 밝게). 히어로를 지나면 테마의 머리로(home.js 가 .xy-over-hero 를 붙인다) */
.xy-over-hero .xy-header {
  --text: #EAF0F7; --text-2: #B4C0CF; --line: rgba(148, 170, 197, .12); --line-2: rgba(148, 170, 197, .22); --line-input: rgba(190, 205, 225, .38);
  --veil: rgba(7, 10, 15, .72); color-scheme: dark; color: var(--text);
}

/* ---------- 섹션 간격 (F4): 사이가 데스크톱 96~120px, 모바일 64px 쯤 ---------- */
.act { position: relative; padding-block: calc(var(--sec-y) / 2); }
.act:first-of-type { padding-top: var(--sec-y); }
:where(.act) p { text-wrap: pretty; }
.act-head { display: grid; gap: 16px; max-width: 44rem; margin-bottom: clamp(36px, 5vw, 64px); }
.bento-act { padding-top: var(--sec-y); }

/* ---------- 2. 다섯 곳 벤토 ---------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: minmax(212px, auto); gap: 14px; }
.bt { overflow: hidden; min-height: 212px; padding: clamp(22px, 2.2vw, 30px); display: flex; flex-direction: column; justify-content: flex-end; color: var(--text); }
.bt-lib { grid-column: span 6; grid-row: span 2; }
.bt-blog { grid-column: span 6; }
.bt-games, .bt-ai { grid-column: span 3; }
.bt-app, .bt-com { grid-column: span 6; }
.no-blog .bt-blog { display: none; }
.no-blog .bt-lib { grid-column: span 8; }
.no-blog .bt-games, .no-blog .bt-ai { grid-column: span 4; }

.bt-copy { position: relative; z-index: 1; display: grid; gap: 8px; max-width: 30rem; }
.bt-name { font-size: .9rem; font-weight: 650; color: var(--text-2); letter-spacing: -0.005em; }
.bt-big { font-family: var(--f-display); font-weight: var(--w-display); font-size: clamp(1.9rem, 2.9vw, 2.6rem); line-height: 1.18; letter-spacing: -0.02em; }
.bt-big .num { font-family: var(--f-display); letter-spacing: -0.02em; }
.bt-mid { font-family: var(--f-display); font-weight: var(--w-display); font-size: clamp(1.25rem, 1.7vw, 1.5rem); line-height: 1.32; letter-spacing: -0.015em; text-wrap: balance;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bt-mid[lang="en"] { font-family: var(--f-display-latin); font-size: clamp(1.6rem, 2.2vw, 2rem); line-height: 1.05; }
.bt-text { color: var(--text-2); font-size: .98rem; line-height: 1.6; }
.bt-text .num { color: var(--text); font-size: 1.02rem; }
.bt-meta { color: var(--text-2); font-size: .88rem; }

/* 라이브러리: 표지 세 장 부채꼴. 가리키면 조금 더 펼친다(사용자 응답) */
.bt-lib { background: radial-gradient(80% 70% at 78% 18%, rgb(var(--ether-rgb) / .07), transparent 62%), var(--card); }
.bt-fan { position: absolute; top: clamp(26px, 3vw, 40px); right: clamp(84px, 9vw, 128px); width: clamp(140px, 12vw, 172px); aspect-ratio: 2 / 3; pointer-events: none; }
.bt-fan img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 3px 6px 6px 3px;
  box-shadow: 0 30px 50px -24px rgb(var(--shade-rgb) / calc(.95 * var(--shade-a))), 0 0 0 1px rgb(var(--tint-rgb) / .06);
  transform-origin: 50% 110%; transition: transform var(--d-4) var(--ease-expo);
}
.bt-fan img:nth-child(1) { transform: translateX(-52%) rotate(-11deg) scale(.9); filter: brightness(.72); }
.bt-fan img:nth-child(2) { transform: translateX(46%) rotate(9deg) scale(.92); filter: brightness(.8); }
.bt-fan img:nth-child(3) { transform: none; }
a.bt-lib:hover .bt-fan img:nth-child(1) { transform: translateX(-64%) rotate(-15deg) scale(.9); }
a.bt-lib:hover .bt-fan img:nth-child(2) { transform: translateX(58%) rotate(13deg) scale(.92); }
a.bt-lib:hover .bt-fan img:nth-child(3) { transform: translateY(-8px); }
.bt-lib .bt-copy { max-width: 24rem; }
.bt-lib .bt-big { font-size: clamp(1.8rem, 2.5vw, 2.3rem); }

/* 블로그: 글마다 다른 생성 표지와 같은 말투의 작은 X */
.bt-blog { flex-direction: row; align-items: flex-end; gap: 24px; }
.bt-blog .bt-copy { flex: 1; }
.bt-blog .bt-cover { order: 2; }
.bt-cover {
  flex: none; align-self: stretch; width: clamp(150px, 15vw, 210px); margin: calc(-1 * clamp(22px, 2.2vw, 30px)) calc(-1 * clamp(22px, 2.2vw, 30px)) calc(-1 * clamp(22px, 2.2vw, 30px)) 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' preserveAspectRatio='none'%3E%3Cpath d='M-10 30 C80 30 120 170 210 170' fill='none' stroke='%2363F2D2' stroke-width='1.4' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M-10 170 C80 170 120 30 210 30' fill='none' stroke='%23FF8A66' stroke-width='1.4' vector-effect='non-scaling-stroke'/%3E%3Ccircle cx='100' cy='100' r='2.6' fill='%23fff'/%3E%3C/svg%3E") center / 100% 100% no-repeat,
    linear-gradient(145deg, rgb(var(--ether-rgb) / .22), rgba(31, 52, 92, .5) 55%, rgb(var(--xync-rgb) / .2));
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 28%); mask-image: linear-gradient(90deg, transparent, #000 28%);
}

/* 게임: 포스터가 칸을 채운다(없으면 색 바탕) */
.bt-games { background: radial-gradient(90% 80% at 80% 10%, rgb(var(--xync-rgb) / .16), transparent 60%), radial-gradient(80% 80% at 10% 100%, rgb(var(--ether-rgb) / .1), transparent 60%), #0C1119; }
.bt-media { position: absolute; inset: 0; }
.bt-media img { width: 100%; height: 100%; object-fit: cover; opacity: .62; transition: opacity var(--d-3), transform var(--d-4) var(--ease-expo); }
a.bt-games:hover .bt-media img { opacity: .78; transform: scale(1.03); }
.bt-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 14, 20, 0) 25%, rgba(10, 14, 20, .88) 92%); }
img.is-missing { visibility: hidden; }

/* Ether와 Xync: 한 점에서 두 갈래 */
.bt-ai { justify-content: space-between; background: radial-gradient(60% 70% at 18% 100%, rgb(var(--ether-rgb) / .07), transparent 70%), radial-gradient(60% 70% at 82% 100%, rgb(var(--xync-rgb) / .07), transparent 70%), var(--card); }
.bt-fork { width: 100%; max-width: 190px; height: auto; overflow: visible; margin-bottom: 12px; }
.bt-fork path { fill: none; stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.bt-fork .f-e { stroke: var(--ether); } .bt-fork .f-x { stroke: var(--xync); }
.bt-fork .f-c { fill: var(--spark); }
.bt-fork .f-de { fill: var(--ether); } .bt-fork .f-dx { fill: var(--xync); }

/* 앱: 작은 휴대폰이 칸 아래로 잘려 나간다 */
.bt-app { padding-right: clamp(150px, 16vw, 220px); }
.bt-phone {
  position: absolute; right: clamp(20px, 3vw, 44px); top: 26px; width: clamp(118px, 10.5vw, 150px);
  padding: 6px; border-radius: 26px; background: linear-gradient(160deg, #2A3441, #10151C 40%, #0B0F15 70%, #202833);
  box-shadow: 0 0 0 1px rgb(var(--tint-rgb) / .08) inset, 0 30px 60px -28px rgb(var(--shade-rgb) / calc(.95 * var(--shade-a)));
  transform: rotate(5deg); transition: transform var(--d-4) var(--ease-expo);
}
.bt-phone img { width: 100%; height: auto; border-radius: 20px; background: #5B6862; }
a.bt-app:hover .bt-phone { transform: rotate(2deg) translateY(-8px); }
.bt-status:empty { display: none; }
.bt-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 4px; color: var(--text-2); font-size: .86rem; }

/* 커뮤니티: 오가는 말 세 줄(정지 그림) */
.bt-com { flex-direction: row; align-items: flex-end; gap: 24px; background: radial-gradient(70% 90% at 100% 0%, rgb(var(--xync-rgb) / .07), transparent 60%), var(--card); }
.bt-com .bt-copy { flex: 1; }
.bt-pulse { flex: none; display: grid; gap: 9px; justify-items: end; width: clamp(120px, 12vw, 170px); align-self: center; }
.bt-pulse i { display: block; height: 30px; border-radius: 15px 15px 4px 15px; background: rgb(var(--xync-rgb) / .14); border: 1px solid rgb(var(--xync-rgb) / .22); }
.bt-pulse i:nth-child(1) { width: 78%; }
.bt-pulse i:nth-child(2) { width: 100%; justify-self: start; border-radius: 15px 15px 15px 4px; background: rgb(var(--ether-rgb) / .1); border-color: rgb(var(--ether-rgb) / .2); }
.bt-pulse i:nth-child(3) { width: 56%; }

@media (max-width: 1099px) {
  .bt-lib, .no-blog .bt-lib { grid-column: span 12; grid-row: span 1; min-height: 340px; }
  .bt-blog, .bt-app, .bt-com { grid-column: span 12; }
  .bt-games, .bt-ai, .no-blog .bt-games, .no-blog .bt-ai { grid-column: span 6; }
}
/* 태블릿 폭: 표지 부채꼴이 차지하는 오른쪽 자리를 글에서 비워 둔다 */
@media (min-width: 720px) and (max-width: 1099px) {
  .bt-lib .bt-copy { max-width: min(30rem, calc(100% - 320px)); }
}
/* 휴대폰: 라이브러리 칸만 표지, 나머지는 높이 96px 가로형(그림·이름·한 줄) */
@media (max-width: 719px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 10px; }
  .bento > .bt { grid-column: 1 / -1 !important; }
  .bt-lib { min-height: 352px; }
  /* 표지를 글 위쪽 흐름에 둔다: 영어처럼 글이 길어져도 표지가 글을 덮지 않게 (2026-10-25) */
  .bt-lib { justify-content: flex-start; }
  .bt-fan { position: relative; flex: none; width: 100px; top: auto; right: auto; margin: 6px auto 30px; }
  .bt-lib .bt-big { font-size: 1.75rem; }
  .bt:not(.bt-lib) { min-height: 96px; padding: 14px 16px 14px 92px; justify-content: center; flex-direction: column; align-items: stretch; }
  .bt:not(.bt-lib) .bt-copy { gap: 2px; }
  .bt:not(.bt-lib) .bt-name { font-size: .82rem; }
  .bt:not(.bt-lib) .bt-mid { font-size: 1.06rem; -webkit-line-clamp: 1; }
  .bt:not(.bt-lib) .bt-mid[lang="en"] { font-size: 1.3rem; }
  .bt:not(.bt-lib) .bt-text, .bt:not(.bt-lib) .bt-meta { font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .bt-cover, .bt-media, .bt-fork, .bt-phone, .bt-pulse {
    position: absolute; left: 14px; top: 50%; width: 64px; height: 64px; margin: -32px 0 0; border-radius: 14px; transform: none; overflow: hidden;
  }
  .bt-cover { -webkit-mask-image: none; mask-image: none; }
  .bt-media::after { background: none; }
  .bt-media img { opacity: .9; }
  .bt-fork { max-width: none; padding: 10px 6px; background: rgb(var(--tint-rgb) / .03); }
  .bt-phone { padding: 0; background: none; box-shadow: 0 0 0 1px var(--line-2); }
  .bt-phone img { border-radius: 0; height: auto; }
  .bt-pulse { padding: 9px 8px; gap: 5px; background: rgb(var(--xync-rgb) / .05); align-content: center; }
  .bt-pulse i { height: 12px; }
  .bt-app { padding-right: 16px; }
  .bt-status { margin-top: 2px; }
  .bt-status .badge { display: none; }
}

/* ---------- 3. 서가: 22권, 100권을 향해 ---------- */
.shelf-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 4.4vw, 72px); align-items: end; }
.shelf-copy { display: grid; gap: 18px; align-content: end; padding-bottom: 8px; }
.hundred { margin-top: 16px; max-width: 30rem; display: grid; gap: 10px; }
.hundred-bar {
  position: relative; height: 6px; border-radius: 3px; overflow: hidden; background: rgb(var(--line-rgb) / .2);
  -webkit-mask-image: repeating-linear-gradient(90deg, #000 0 calc(1% - 1.5px), transparent calc(1% - 1.5px) 1%);
  mask-image: repeating-linear-gradient(90deg, #000 0 calc(1% - 1.5px), transparent calc(1% - 1.5px) 1%);
}
.hundred-fill { position: absolute; inset: 0; background: linear-gradient(90deg, var(--ether), #B5F8E8); }
.hundred-text { font-size: 1rem; font-weight: 650; color: var(--text); }
.hundred-text .num { color: var(--ether); font-size: 1.05rem; }
.hundred-next { font-size: .9rem; color: var(--text-2); }
.shelf-go { margin-top: 10px; }

.shelf-stage { position: relative; min-width: 0; }
.shelf-wrap { width: 100%; }
.shelf {
  list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: clamp(8px, 1vw, 14px);
  padding-bottom: 18px; position: relative;
}
.shelf::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2) 8%, var(--line-2) 92%, transparent); }
.shelf-more[hidden] { display: none; }
.book {
  display: block; position: relative; border-radius: 3px 5px 5px 3px;
  box-shadow: 0 18px 28px -18px rgb(var(--shade-rgb) / calc(0.9 * var(--shade-a))), 0 2px 6px rgb(var(--shade-rgb) / calc(0.35 * var(--shade-a)));
}
.book-body { display: block; position: relative; border-radius: inherit; overflow: hidden; }
.book-cover { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; }
/* 제본 쪽 접힌 자국: 표지 왼쪽 가까이 옅은 골 */
.book-body::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.32), rgba(255, 255, 255, 0.10) 2.6%, rgba(0, 0, 0, 0.12) 5%, rgba(255, 255, 255, 0) 9%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}
.book-spine, .book-pages { display: none; }
.book:focus-visible { outline-offset: 4px; }

/* 표지는 서가·책 소개 페이지의 같은 표지와 이어진다(페이지 전환) */
.book[data-slug="the-great-gatsby"] .book-cover { view-transition-name: cover-the-great-gatsby; }
.book[data-slug="peloponnesian-war"] .book-cover { view-transition-name: cover-peloponnesian-war; }
.book[data-slug="origin-of-species"] .book-cover { view-transition-name: cover-origin-of-species; }
.book[data-slug="on-liberty"] .book-cover { view-transition-name: cover-on-liberty; }
.book[data-slug="moral-sentiments"] .book-cover { view-transition-name: cover-moral-sentiments; }
.book[data-slug="wealth-of-nations"] .book-cover { view-transition-name: cover-wealth-of-nations; }
.book[data-slug="crime-and-punishment"] .book-cover { view-transition-name: cover-crime-and-punishment; }
.book[data-slug="interpretation-of-dreams"] .book-cover { view-transition-name: cover-interpretation-of-dreams; }
.book[data-slug="thus-spoke-zarathustra"] .book-cover { view-transition-name: cover-thus-spoke-zarathustra; }
.book[data-slug="siddhartha"] .book-cover { view-transition-name: cover-siddhartha; }
.book[data-slug="meditations"] .book-cover { view-transition-name: cover-meditations; }
.book[data-slug="the-prince"] .book-cover { view-transition-name: cover-the-prince; }

/* 좁은 화면·터치: 가로로 넘기는 표지 줄 (모든 책) */
@media (max-width: 1099px), (hover: none), (pointer: coarse) {
  .shelf-grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .shelf-copy { order: 0; }
  .shelf-stage { order: 1; margin-inline: calc(-1 * max(16px, (100vw - var(--wrap-wide)) / 2)); }
  .shelf-wrap { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .shelf-wrap::-webkit-scrollbar { display: none; }
  .shelf { grid-auto-columns: clamp(118px, 30vw, 160px); width: max-content; padding: 12px max(16px, calc((100vw - var(--wrap-wide)) / 2)) 22px; gap: 14px; }
  .shelf li { scroll-snap-align: start; scroll-margin-left: 16px; }
  .shelf::after { left: 16px; right: 16px; }
  .shelf-go { order: 2; }
}
/* 넘기는 동안 표지가 아주 조금 돌아선다(넘기는 손에 답하는 움직임) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    @media (max-width: 1099px), (hover: none), (pointer: coarse) {
      .shelf li { animation: book-turn linear both; animation-timeline: view(inline); }
      @keyframes book-turn {
        from { transform: perspective(900px) rotateY(16deg); }
        38%, 62% { transform: perspective(900px) rotateY(0deg); }
        to { transform: perspective(900px) rotateY(-16deg); }
      }
    }
  }
}

/* 입체 책장: 폭에 맞는 만큼만(home.js fit), 칸 밖으로 나가지 않는다 */
.shelf-stage.is-3d .shelf-wrap { overflow: clip; overflow-clip-margin: 28px; }
.shelf.is-3d {
  --cw: 184px; --ch: 276px;
  display: flex; align-items: flex-end; gap: 0; width: 100%;
  height: calc(var(--ch) + 52px); padding: 0 0 22px;
}
.shelf.is-3d li.is-off { display: none; }
.shelf.is-3d::after {
  left: -8px; right: -8px; height: 12px; bottom: 10px;
  background: linear-gradient(180deg, rgb(var(--line-rgb) / 0.16), rgb(var(--line-rgb) / 0.04) 30%, rgba(0, 0, 0, 0) 100%);
  border-top: 1px solid var(--line-2);
}
.shelf.is-3d li {
  position: relative; flex: none; width: calc(var(--t) + 5px); height: var(--ch);
  transition: transform var(--d-4) var(--ease-expo);
}
.shelf.is-3d li.is-open ~ li { transform: translateX(var(--shift, 180px)); }
@media (max-width: 1339px) { .shelf.is-3d { --cw: 168px; --ch: 252px; } .spine-title { font-size: 13.5px; } }
.shelf.is-3d .book {
  position: absolute; inset: 0; box-shadow: none; border-radius: 0;
  perspective: 1500px; perspective-origin: var(--po, 50%) 34%;
}
/* 책 그림자: 선반 위로 떨어지는 부드러운 그림자. 빠진 책은 그림자가 커지고 흐려진다 */
.shelf.is-3d .book::before {
  content: ""; position: absolute; left: calc(var(--t) * -0.1); bottom: -8px; width: calc(var(--t) * 1.3); height: 14px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
  transition: transform var(--d-4) var(--ease-expo), opacity var(--d-4) var(--ease-expo);
  transform-origin: left center;
}
.shelf.is-3d li.is-open .book::before { transform: translateX(6px) scaleX(4.4) scaleY(1.5); opacity: .8; }
.shelf.is-3d .book-body {
  position: absolute; left: calc(var(--t) / 2 + 2px); bottom: 0; width: var(--cw); height: var(--ch);
  overflow: visible; border-radius: 0;
  transform-style: preserve-3d; transform-origin: 0 50% 0;
  transform: rotateY(var(--ry, 80deg));
  transition: transform var(--d-4) var(--ease-expo);
}
.shelf.is-3d .book-body::after { display: none; }
.shelf.is-3d .book-cover {
  position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto;
  transform: translateZ(calc(var(--t) / 2)); backface-visibility: hidden;
  border-radius: 1px 4px 4px 1px;
}
.shelf.is-3d .book-spine {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  position: absolute; left: 0; top: 0; width: var(--t); height: 100%;
  padding: 26px 0 30px; overflow: hidden;
  transform-origin: left center; transform: translateZ(calc(var(--t) / -2)) rotateY(-90deg);
  backface-visibility: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 12px, rgba(255, 255, 255, 0.22) 12px, rgba(255, 255, 255, 0.22) 13px, rgba(255, 255, 255, 0) 13px),
    linear-gradient(0deg, rgba(255, 255, 255, 0) 12px, rgba(255, 255, 255, 0.22) 12px, rgba(255, 255, 255, 0.22) 13px, rgba(255, 255, 255, 0) 13px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.34), rgba(255, 255, 255, 0.08) 24%, rgba(255, 255, 255, 0.02) 50%, rgba(0, 0, 0, 0.16) 78%, rgba(0, 0, 0, 0.42)),
    var(--spine);
  color: rgba(255, 255, 255, 0.94);
}
/* 세로쓰기 규칙: 줄이 여러 개가 되면 왼쪽 줄부터 오른쪽 줄로 읽힌다(vertical-lr). 지은이는 한 줄, 제목은 낱말 단위로만 줄을 바꾼다 */
.spine-title {
  writing-mode: vertical-lr; font-family: var(--f-display); font-weight: var(--w-display-strong);
  font-size: 14.5px; line-height: 1.12; letter-spacing: 0.08em; max-height: 190px; text-wrap: balance;
  word-break: keep-all; overflow-wrap: normal; min-height: 0;
}
.spine-author {
  margin-top: auto; flex: none; white-space: nowrap; writing-mode: vertical-lr; font-size: 11px; font-weight: 560; letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.72);
}
.shelf.is-3d .book-pages {
  display: block; position: absolute; right: 0; top: 3px; bottom: 3px; width: calc(var(--t) - 3px);
  transform-origin: right center; transform: translateZ(calc(var(--t) / -2 + 1.5px)) rotateY(90deg);
  background:
    repeating-linear-gradient(90deg, rgba(90, 80, 60, 0.12) 0 1px, rgba(0, 0, 0, 0) 1px 3px),
    linear-gradient(90deg, #CFC7B4, #E9E2D0 40%, #DDD5C2);
  backface-visibility: hidden;
}
.shelf.is-3d li.is-open .book-body { transform: translate3d(2px, -10px, 64px) rotateY(-7deg); }
.shelf.is-3d .book:focus-visible { outline: none; }
.shelf.is-3d .book:focus-visible .book-cover { outline: 2px solid var(--ether); outline-offset: 5px; }
/* "+N권": 점선 테두리 책등 하나 */
.shelf.is-3d .shelf-more { width: 58px; margin-left: 14px; z-index: 2; }
.more-spine {
  position: absolute; inset: 0 0 0 0; display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 22px 0; border: 1px dashed rgb(var(--line-rgb) / .45); border-radius: 4px; color: var(--text);
  /* 불투명 바탕: 앞 책의 표지 가장자리(원근으로 오른쪽에 비치는 부분)가 비쳐 글자가 겹치지 않게 */
  background: linear-gradient(180deg, rgb(var(--ether-rgb) / .06), rgb(var(--ether-rgb) / 0) 60%), var(--bg);
  box-shadow: -10px 0 14px -6px rgb(var(--bg-rgb) / .9);
  transition: border-color var(--d-2), background var(--d-2);
}
.more-spine:hover { border-color: var(--ether); background: linear-gradient(180deg, rgb(var(--ether-rgb) / .12), rgb(var(--ether-rgb) / 0) 70%), var(--bg); }
.more-n { writing-mode: vertical-lr; font-family: var(--f-display); font-weight: var(--w-display-strong); font-size: 16px; letter-spacing: .06em; white-space: nowrap; }
.more-l { writing-mode: vertical-lr; font-size: 11.5px; font-weight: 560; color: var(--text-2); letter-spacing: .06em; white-space: nowrap; }
/* 서가 설명 카드: 가리키거나 초점이 간 책 옆(입체 책장) 또는 아래(표지 줄). home.js 가 화면 안에 자리를 잡는다 */
.book-card {
  position: absolute; z-index: 6; left: 0; top: 0; width: min(310px, calc(100vw - 24px));
  padding: 18px 18px 16px; border-radius: 16px; display: grid; gap: 6px;
  background: color-mix(in srgb, var(--surface-raised) 94%, transparent); border: 1px solid var(--line-2);
  box-shadow: 0 30px 60px -24px rgb(var(--shade-rgb) / calc(.9 * var(--shade-a)));
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  opacity: 0; transform: translateY(6px); transition: opacity var(--d-2) var(--ease-out), transform var(--d-3) var(--ease-expo);
}
.book-card[hidden] { display: none; }
.book-card.is-on { opacity: 1; transform: none; }
.bc-title { font-family: var(--f-display); font-weight: var(--w-display-strong); font-size: 1.24rem; line-height: 1.3; letter-spacing: -0.02em; }
.bc-meta { color: var(--text-2); font-size: .88rem; }
.bc-line { margin-top: 4px; font-family: var(--f-display); font-size: .98rem; line-height: 1.55; color: var(--text); }
.bc-blurb { color: var(--text-2); font-size: .9rem; line-height: 1.6; }
.bc-go { margin-top: 8px; display: flex; align-items: center; gap: 14px; }
.bc-go .btn { min-height: 44px; }
.bc-more { display: inline-flex; align-items: center; min-height: 44px; font-size: .9rem; font-weight: 600; color: var(--text-2); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-input); }
.bc-more:hover { color: var(--text); }
@media (prefers-reduced-motion: reduce) { .book-card { transition: none; transform: none; } }

/* ---------- 4. 블로그 최신 글 (카드와 스타일은 blog-home.css) ---------- */
.blog-act:has(.blog-latest:empty) { display: none; }
.blog-more { margin-top: 24px; }

/* 광고 칸: 블로그와 게임 사이 하나(ads.css 가 모양을 정한다) */
.ad-wrap:has(.ad-slot) { display: block; }

/* ---------- 5. 게임: 가로 줄, 가리킨 타일 하나만 데모 ---------- */
/* 격자: 7종. 첫 칸(싱크)은 대표 타일로 넓게 → 데스크톱 [대표 2칸 + 2] [4], 태블릿 [대표 3칸] [3] [3], 휴대폰 [대표 2칸] [2]×3. 빈칸 없이 */
.gx-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.gx-row > li { display: flex; min-width: 0; }
.gx { width: 100%; display: flex; flex-direction: column; overflow: hidden; }
@media (max-width: 1099px) { .gx-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 719px) { .gx-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.gx-media {
  position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r-lg) var(--r-lg) 0 0;
  background:
    radial-gradient(120% 100% at 15% 0%, var(--g1, #10303A), transparent 62%),
    radial-gradient(100% 100% at 100% 100%, var(--g2, #2A1830), transparent 60%),
    #0B1018;
}
.gx-media::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 100' preserveAspectRatio='none'%3E%3Cpath d='M0 18 C60 18 100 82 160 82' fill='none' stroke='%2363F2D2' stroke-opacity='.5' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M0 82 C60 82 100 18 160 18' fill='none' stroke='%23FF8A66' stroke-opacity='.5' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.gx-poster, .gx-demo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity var(--d-3) var(--ease-out); }
.gx-poster { z-index: 1; }
.gx-demo { z-index: 0; display: block; }
.gx.is-demo .gx-poster { opacity: 0; }
.gx-body { display: grid; gap: 4px; align-content: start; padding: 16px 18px 20px; flex: 1; }
.gx-name { font-size: 1.12rem; font-weight: 760; letter-spacing: -0.025em; display: inline; }
.gx-en { font-family: var(--f-display-latin); font-style: italic; font-size: 1.06rem; color: var(--text-2); line-height: 1.1; }
.gx-desc { margin-top: 4px; color: var(--text-2); font-size: .9rem; line-height: 1.55; }
.gx-top { margin-top: 6px; font-size: .84rem; color: var(--text-2); }
.gx-top .num { color: var(--xync-2); font-size: .9rem; }
.gx-row > .gx-feature { grid-column: span 2; }
.gx-feature .gx-media { aspect-ratio: auto; flex: 1 1 auto; min-height: 160px; }   /* 같은 줄 타일 높이에 맞춰 늘어난다 */
.gx-feature .gx-body { flex: none; }
.gx-feature .gx-name { font-size: 1.3rem; }
.gx-feature .gx-en { font-size: 1.2rem; }
@media (max-width: 1099px) { .gx-row > .gx-feature { grid-column: span 3; } .gx-feature .gx-media { flex: none; aspect-ratio: 3 / 1; } }
@media (max-width: 719px) { .gx-row > .gx-feature { grid-column: span 2; } .gx-feature .gx-media { aspect-ratio: 16 / 8; } }
.games-more { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px 28px; }
@media (max-width: 719px) {
  .gx-body { padding: 12px 12px 14px; gap: 2px; }
  .gx-name { font-size: 1rem; }
  .gx-en { font-size: .95rem; }
  .gx-row > li:not(.gx-feature) .gx-desc { display: none; }   /* 휴대폰 2열: 이름과 영어 이름만(높이를 줄인다). 대표 타일은 설명까지 */
  .gx-feature .gx-desc { font-size: .86rem; line-height: 1.45; }
  .gx-top { font-size: .78rem; }
  .gx-feature .gx-name { font-size: 1.12rem; }
}

/* ---------- 6. Ether & Xync: 같은 질문, 다른 대답 ---------- */
.ai-act .act-head { margin-inline: auto; text-align: center; justify-items: center; }
.fork { margin: 0 auto; max-width: 1000px; display: grid; justify-items: center; }
.fork-note { order: 0; font-size: .88rem; color: var(--text-2); font-weight: 600; }
.fork-q {
  order: 1; text-wrap: balance; margin-top: 12px; text-align: center; max-width: 24em;
  font-size: clamp(1.25rem, 2.1vw, 1.62rem); font-weight: 650; letter-spacing: -0.028em; line-height: 1.5;
}
.fork-lines { order: 2; display: block; width: 100%; height: 76px; margin-top: 22px; overflow: visible; }
.fork-lines path { fill: none; stroke-width: 1.3; vector-effect: non-scaling-stroke; }
.fork-lines .fl-ether { stroke: var(--ether); }
.fork-lines .fl-xync { stroke: var(--xync); }
.fork-answers { order: 3; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); }
.answer { padding-top: 22px; border-top: 1.5px solid; }
.answer-ether { border-color: var(--ether); }
.answer-xync { border-color: var(--xync); }
.who { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.who-name { font-family: var(--f-display-latin); font-size: 2.1rem; line-height: 1; }
.answer-ether .who-name { color: var(--ether); }
.answer-xync .who-name { color: var(--xync); }
.who-type { font-size: .86rem; color: var(--text-2); font-weight: 600; }
.say { margin-top: 14px; font-size: 1.06rem; line-height: 1.8; color: var(--text); max-width: 25em; }
.ai-go { margin-top: clamp(40px, 5vw, 56px); text-align: center; }
@media (max-width: 719px) {
  .fork { justify-items: start; }
  .fork-q { text-align: left; }
  .fork-lines { display: none; }
  .fork-answers { grid-template-columns: 1fr; gap: 26px; margin-top: 22px; }
  .say { font-size: 1rem; line-height: 1.75; margin-top: 10px; }
  .who-name { font-size: 1.8rem; }
  .answer { padding-top: 16px; }
  .ai-act .act-head { text-align: left; justify-items: start; margin-inline: 0; }
  .ai-go { text-align: left; }
}

/* ---------- 7. One Page English ---------- */
.ope-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(40px, 8vw, 120px); align-items: center; }
.ope-state { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; color: var(--text-2); font-size: .92rem; min-height: 28px; }
.ope-name { margin-top: 18px; font-family: var(--f-display-latin); font-weight: 400; font-size: clamp(3rem, 6.4vw, 5.6rem); line-height: 0.98; letter-spacing: -0.02em; }
.ope-tagline { margin-top: 22px; font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.65; max-width: 23em; color: var(--text); font-weight: 520; letter-spacing: -0.015em; }
.ope-price { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); max-width: 30rem; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; }
.price-num { font-weight: 500; font-size: clamp(1.8rem, 2.7vw, 2.2rem); letter-spacing: -0.04em; color: var(--ether); }
.price-kind { font-size: 1.08rem; font-weight: 700; }
.price-note { margin-top: 10px; color: var(--text-2); font-size: .96rem; line-height: 1.72; }
.ope-links { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; }

.phone { margin: 0; position: relative; width: clamp(236px, 22vw, 290px); justify-self: center; perspective: 1000px; }
.phone-body {
  position: relative; padding: 10px; border-radius: 42px;
  background: linear-gradient(160deg, #2A3441, #10151C 38%, #0B0F15 70%, #202833);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 0 0 1px rgba(0, 0, 0, 0.6), 0 40px 80px -30px rgba(0, 0, 0, 0.95), 0 24px 48px -28px rgba(99, 242, 210, 0.22);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 600ms var(--ease-out);
}
.phone-body::before, .phone-body::after { content: ""; position: absolute; right: -2px; width: 3px; border-radius: 2px; background: #1C232D; }
.phone-body::before { top: 22%; height: 11%; }
.phone-body::after { top: 36%; height: 7%; }
/* H5: 그림이 오기 전에도 빈 검은 화면이 아니라 화면의 흐린 모습(4×8 미리보기)과 평균색 */
.phone-screen {
  position: relative; border-radius: 32px; overflow: hidden; padding-top: 22px;
  background: #5B6862 url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAICAIAAABRUclSAAAAZElEQVR4nAXBSw7CMAwFQH9epZQDRFCxoSy75f6HAYkTmFLi2GGGt8dGOrmHtx9O50pl/nyPYSbNMwergohx7Dt1F2bQ4LpUVTCTe8dyud7We2aYGT/fr7mUCegR0jI8Y6gI9A8u5y4GE20y1QAAAABJRU5ErkJggg==") center 22px / 100% calc(100% - 22px) no-repeat;
}
.phone-screen::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 22px; background: #111715; }
.phone-screen img { position: relative; width: 100%; height: auto; }
.phone-screen::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 1px rgb(var(--shade-rgb) / calc(0.5 * var(--shade-a))) inset; pointer-events: none; }
@media (max-width: 859px) {
  .ope-grid { grid-template-columns: 1fr; gap: 36px; }
  .phone { width: min(44vw, 176px); margin-top: 0; }
  .phone-body { padding: 8px; border-radius: 34px; }
  .phone-screen { border-radius: 26px; }
}

/* ---------- 8. 커뮤니티의 지금 ---------- */
.pulse-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.pulse-head { display: grid; gap: 16px; }
.pulse-stats { color: var(--text-2); font-size: .95rem; line-height: 1.7; }
.pulse-stats .n { color: var(--text); font-weight: 650; font-variant-numeric: tabular-nums; }
.pulse-go { margin-top: 12px; }
.pulse-feed { min-height: calc(4 * 104px); }
.posts { list-style: none; border-top: 1px solid var(--line); }
.post { border-bottom: 1px solid var(--line); }
.post a { display: grid; gap: 8px; padding: 20px 4px 20px 0; }
.post-board { font-size: .84rem; color: var(--text-2); font-weight: 600; }
.post-title { font-size: 1.12rem; font-weight: 680; letter-spacing: -0.02em; line-height: 1.45; color: var(--text); overflow-wrap: anywhere; }
.post a:hover .post-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.post-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; color: var(--text-2); font-size: .86rem; }
.post-meta .by { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); }
.post-meta .cm { display: inline-flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; }
.posts.is-loading .post { padding: 22px 0; display: grid; gap: 12px; }
.sk-a { height: 18px; width: 72%; }
.sk-b { height: 12px; width: 38%; }
.invite {
  position: relative; padding: clamp(28px, 4vw, 44px); border-radius: var(--r-lg);
  border: 1px dashed var(--line-input); background: rgb(var(--xync-rgb) / 0.035);
}
.invite h3 { font-size: 1.45rem; letter-spacing: -0.025em; line-height: 1.35; }
.invite p { margin-top: 10px; color: var(--text-2); max-width: 30em; }
.invite .btn { margin-top: 24px; }
.invite.is-quiet { background: rgb(var(--tint-rgb) / 0.02); border-style: solid; border-color: var(--line); }
@media (max-width: 899px) {
  .pulse-grid { grid-template-columns: 1fr; gap: 28px; }
  .pulse-feed { min-height: 0; }
}
@media (max-width: 719px) {
  .posts .post:nth-child(n+3) { display: none; }
  .post a { padding: 16px 4px 16px 0; }
}

/* ---------- 9. 맺음 ---------- */
.close-act { padding-bottom: var(--sec-y); }
.close-inner { text-align: center; display: grid; justify-items: center; }
.close-point {
  width: 9px; height: 9px; border-radius: 50%; background: var(--spark); margin-bottom: 36px;
  box-shadow: 0 0 22px 5px rgba(255, 255, 255, 0.3), -60px 0 60px -20px rgba(99, 242, 210, 0.5), 60px 0 60px -20px rgba(255, 138, 102, 0.5);
}
.close-line {
  font-family: var(--f-display); font-weight: var(--w-display);
  font-size: clamp(2.05rem, 4.2vw, 3.3rem); line-height: 1.28; letter-spacing: -0.02em; max-width: 16em;
}
.close-sub { margin-top: 20px; color: var(--text-2); font-size: 1.06rem; line-height: 1.75; max-width: 36em; }
@media (min-width: 560px) { .close-sub span { display: block; } }
.close-cta { margin-top: 34px; }

@media (prefers-reduced-motion: reduce) {
  .hero-wm, .hero-foot { transition: none; }
  .field-layer { transition: none; }
  .shelf.is-3d li, .shelf.is-3d .book-body, .shelf.is-3d .book::before, .bt-fan img, .bt-phone, .phone-body { transition: none; }
  .phone-body { transform: none; }
}

/* ---------- 낮(밝은) 테마 손질 (T 2026-10-23) ----------
   히어로는 밤 그대로(.hero 는 밤 토큰), 그 아래부터 종이빛. 게임 칸(.bt-games)은 포스터라 .theme-dark */
:root[data-theme="light"] .hundred-fill { background: linear-gradient(90deg, var(--ether), #3FB79D); }
:root[data-theme="light"] .shelf.is-3d .book::before { opacity: .38; }
:root[data-theme="light"] .close-point { box-shadow: 0 0 18px 4px rgb(var(--text-rgb) / .14), -60px 0 60px -20px rgb(var(--ether-rgb) / .35), 60px 0 60px -20px rgb(var(--xync-rgb) / .35); }


/* 이어 읽기 · 이어 듣기 (히어로 버튼 아래) */
.hero-cont { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 16px; width: 100%; }
.hero-cont.is-two .cont-card { width: calc(50% - 5px); }
.cont-card { position: relative; display: flex; align-items: center; gap: 12px; min-width: 0; width: min(100%, 320px); padding: 11px 16px 13px 12px;
  border-radius: 16px; border: 1px solid rgba(234, 240, 247, .16); background: rgba(13, 19, 28, .42);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--text); text-align: left; overflow: hidden;
  transition: border-color var(--d-2), transform var(--d-2), background var(--d-2); }
.cont-card:hover { transform: translateY(-2px); border-color: rgba(99, 242, 210, .38); background: rgba(13, 19, 28, .55); }
.cont-card.is-listen:hover { border-color: rgba(255, 138, 102, .45); }
.cc-ic { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: rgba(99, 242, 210, .14); color: var(--ether); }
.cont-card.is-listen .cc-ic { background: rgba(255, 138, 102, .15); color: var(--xync); }
.cc-ic svg { width: 20px; height: 20px; }
.cc-tx { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.cc-t { font-size: .95rem; font-weight: 600; color: #DDE4EC; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-t b { color: #fff; font-weight: 700; }
.cc-s { font-size: .8rem; color: #9AA6B5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.cc-bar { position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; border-radius: 2px; background: rgba(234, 240, 247, .1); overflow: hidden; }
.cc-bar i { display: block; height: 100%; background: var(--ether); border-radius: 2px; }
.cont-card.is-listen .cc-bar i { background: var(--xync); }
@media (max-width: 719px) {
  .hero-cont { gap: 8px; margin-top: 12px; }
  .hero-cont.is-two .cont-card { width: calc(50% - 4px); padding: 10px 10px 12px; gap: 9px; }
  .hero-cont.is-two .cc-ic { width: 32px; height: 32px; border-radius: 10px; }
  .hero-cont.is-two .cc-t { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: .86rem; line-height: 1.3; }
  .hero-cont.is-two .cc-s { font-size: .74rem; }
  .hero-cont:not(.is-two) .cont-card { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .cont-card { transition: none; } .cont-card:hover { transform: none; } }
