/*
 * Amane Shion character archive
 * 색상, 간격, 카드 토큰을 여기서 바꾸면 이후 섹션에도 동일하게 적용됩니다.
 * 사용자 손글씨 폰트가 제공되면 아래 @font-face 주석을 해제하세요.
 */
/*
@font-face {
  font-family: "ShionHand";
  src: url("../assets/fonts/shion-hand.woff2") format("woff2");
  font-display: swap;
}
*/
:root {
  --color-bg-deep: #101a2e;
  --color-bg-night: #17233a;
  --color-bg-soft: #e9eef4;
  --color-bg-room: #dfe6ee;
  --color-sky: #dff4ff;
  --color-sky-soft: #f5fbff;
  --color-sky-deep: #6eb6e8;
  --color-text-main: #1f2f46;
  --color-text-sub: #5f6c7d;
  --color-text-light: #f6f8fb;
  --color-white-glass: rgba(255, 255, 255, 0.62);
  --color-blue-glass: rgba(125, 172, 221, 0.18);
  --color-dark-glass: rgba(16, 26, 46, 0.48);
  --color-gold: #d8c37a;
  --color-lavender: #a99acb;
  --color-lavender-soft: #e7e1f3;
  --color-line: rgba(31, 47, 70, 0.14);
  --blank-slot-fill: rgba(245, 251, 255, 0.74);
  --blank-slot-border: rgba(216, 195, 122, 0.58);
  --blank-slot-shadow: rgba(110, 182, 232, 0.34);
  --blank-slot-ink: rgba(31, 47, 70, 0.22);
  --radius-card: 28px;
  --radius-small: 14px;
  --shadow-soft: 0 24px 80px rgba(16, 26, 46, 0.16);
  --shadow-card: 0 16px 48px rgba(16, 26, 46, 0.12);
  --space-section-y: 96px;
  --space-section-x: 24px;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --font-hand: "ShionHand", "Gowun Batang", "Noto Serif KR", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--color-text-main);
  background: var(--color-bg-deep);
  font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  word-break: keep-all;
}
a { color: inherit; }
blockquote, p, h1, h2, h3, figure, dl, dd { margin: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { color: var(--color-bg-deep); background: var(--color-gold); }

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  padding: 10px 16px; color: white; background: #000; border-radius: 8px;
  transform: translateY(-160%); transition: transform .2s;
}
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.handwritten { font-family: var(--font-hand); font-style: normal; font-weight: 400; letter-spacing: 0; }

.archive-nav {
  position: fixed; inset: 0 0 auto; z-index: 30;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px clamp(20px, 4vw, 58px); color: rgba(255,255,255,.76);
  mix-blend-mode: difference; pointer-events: none;
}
.archive-nav a { pointer-events: auto; text-decoration: none; }
.archive-mark { display: flex; gap: 10px; align-items: center; letter-spacing: .12em; }
.archive-mark span { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid currentColor; border-radius: 50%; font-size: 11px; }
.archive-mark small { font-size: 10px; text-transform: uppercase; }
.archive-nav nav { display: flex; gap: 9px; }
.archive-nav nav a { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; font-size: 10px; transition: background .2s, color .2s; }
.archive-nav nav a:hover, .archive-nav nav a:focus-visible { color: #101a2e; background: white; outline: none; }

.section { min-height: 90vh; padding: var(--space-section-y) var(--space-section-x); position: relative; overflow: hidden; }
.section-inner { max-width: 1180px; margin: 0 auto; position: relative; z-index: 2; }
.section-kicker { font-size: 12px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.section-kicker::before { content: ""; display: inline-block; width: 42px; height: 1px; margin: 0 12px 3px 0; background: currentColor; opacity: .5; }
.section-kicker span { font-weight: 500; letter-spacing: .04em; }
.section-title { margin-top: 20px; font-size: clamp(36px, 5.4vw, 64px); line-height: 1.1; letter-spacing: -.04em; }
.card-label { font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.glass-card { border: 1px solid rgba(255,255,255,.34); border-radius: var(--radius-card); background: var(--color-white-glass); box-shadow: var(--shadow-card); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-chip { padding: 5px 10px; border: 1px solid var(--color-line); border-radius: 999px; font-size: 10px; font-weight: 700; letter-spacing: .08em; }

/* 01 — Entrance */
.section-entrance {
  min-height: 100svh; display: grid; place-items: center; color: var(--color-text-light);
  background:
    radial-gradient(circle at 76% 34%, rgba(143,170,194,.2), transparent 26%),
    linear-gradient(135deg, #0e182b 0%, #18263e 54%, #44566b 100%);
}
.section-entrance::after { content: "01"; position: absolute; right: -1vw; bottom: -13vh; color: rgba(255,255,255,.025); font: 800 min(42vw, 580px)/1 system-ui; }
.entrance-grid { width: 100%; display: grid; grid-template-columns: 1.04fr .96fr; align-items: center; gap: clamp(46px, 7vw, 100px); }
.entrance-copy { padding-top: 20px; }
.eyebrow { margin-top: clamp(52px, 8vh, 90px); color: #aebed0; font-size: 11px; font-weight: 700; letter-spacing: .24em; }
.character-name { margin-top: 6px; font-size: clamp(58px, 8vw, 94px); line-height: 1; letter-spacing: -.065em; }
.character-alias { margin-top: 14px; color: #becbda; font-size: clamp(14px, 1.7vw, 18px); letter-spacing: .1em; }
.character-alias i { margin: 0 8px; color: var(--color-gold); font-style: normal; }
.hero-quote { margin-top: 40px; font-size: clamp(22px, 2.6vw, 32px); font-weight: 300; letter-spacing: -.02em; }
.profile-intro { margin-top: 28px; color: #c8d2de; font-size: clamp(14px, 1.45vw, 17px); }
.profile-intro p + p { margin-top: 12px; }
.theme-link { position: relative; display: inline-grid; grid-template-columns: 42px auto auto; align-items: center; gap: 13px; margin-top: 34px; padding: 12px 16px 12px 12px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; color: white; background: rgba(255,255,255,.08); text-decoration: none; transition: transform .35s var(--ease-out), background .35s; }
.theme-link::after { content: ""; position: absolute; inset: -5px; border: 1px solid rgba(216,195,122,.0); border-radius: inherit; transition: inset .35s, border-color .35s; }
.theme-link:hover, .theme-link:focus-visible { transform: translateY(-3px); background: rgba(169,154,203,.17); outline: none; }
.theme-link:hover::after, .theme-link:focus-visible::after { inset: -9px; border-color: rgba(216,195,122,.35); }
.play-icon { display: grid; place-items: center; width: 42px; height: 42px; padding-left: 2px; border-radius: 50%; color: var(--color-bg-deep); background: var(--color-gold); font-size: 11px; }
.theme-link small, .theme-link strong { display: block; }
.theme-link small { color: #aebed0; font-size: 9px; text-transform: uppercase; letter-spacing: .18em; }
.theme-link strong { font-size: 13px; }
.theme-status { margin-left: 12px; color: #91a1b5; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }

.entrance-visual { position: relative; min-height: 650px; }
.portrait-placeholder { position: absolute; inset: 0 15% 96px 0; overflow: hidden; border: 1px solid rgba(255,255,255,.13); border-radius: 220px 220px 40px 40px; background: linear-gradient(155deg, rgba(255,255,255,.08), rgba(255,255,255,.015)); }
.portrait-glow { position: absolute; width: 75%; aspect-ratio: 1; left: 13%; top: 14%; border-radius: 50%; background: radial-gradient(circle, rgba(184,209,228,.25), transparent 68%); }
.portrait-silhouette { position: absolute; inset: 8% 10% 0; filter: drop-shadow(0 24px 22px rgba(0,0,0,.22)); }
.portrait-silhouette::before { content: ""; position: absolute; left: 50%; top: 11%; width: 34%; aspect-ratio: .88; transform: translateX(-50%); border-radius: 48% 48% 44% 44%; background: linear-gradient(120deg, #2b3850, #111a2d); box-shadow: -28px 5px 0 -12px #111a2d, 29px 9px 0 -12px #111a2d; }
.portrait-silhouette::after { content: ""; position: absolute; left: 20%; right: 20%; top: 36%; bottom: -12%; border-radius: 50% 50% 12% 12%; background: linear-gradient(110deg, #35445a, #121c2f 70%); }
.portrait-silhouette span { position: absolute; z-index: 1; left: 18%; top: 36%; width: 64%; height: 4px; border-radius: 50%; border-top: 2px solid #9badc0; transform: rotate(-8deg); }
.portrait-placeholder figcaption { position: absolute; left: 24px; bottom: 20px; z-index: 2; font-size: 9px; letter-spacing: .18em; }
.portrait-placeholder figcaption small { color: #8f9eb0; }
.notification-card { position: absolute; z-index: 4; right: 0; bottom: 30px; width: min(370px, 86%); padding: 24px; color: var(--color-text-light); border-color: rgba(255,255,255,.14); background: rgba(12,23,41,.62); }
.notification-card:focus-visible { outline: 2px solid var(--color-gold); outline-offset: 4px; }
.notification-top { display: flex; align-items: center; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.09); font-size: 12px; }
.notification-top time { margin-left: auto; color: #8fa0b3; font-size: 9px; letter-spacing: .1em; }
.signal-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--color-gold); box-shadow: 0 0 12px var(--color-gold); }
.message-meta { margin-top: 15px; font-size: 12px; }
.message-meta div { display: flex; gap: 12px; }
.message-meta dt { width: 42px; color: #8798ad; }
.message-meta dd { color: #dbe3ec; }
.recipient-row dd { position: relative; min-width: 190px; }
[data-recipient-name] { display: inline-block; transition: opacity .22s ease, color .3s ease, text-shadow .3s ease; }
[data-recipient-name].is-changing { opacity: .24; }
[data-recipient-name].is-close-name { color: var(--color-gold, #d8c37a); text-shadow: 0 0 12px rgba(216,195,122,.18); }
.message-body { margin: 19px 0; font-size: 17px; line-height: 1.8; }
.attachment { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.06); }
.attachment-icon { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; }
.attachment small, .attachment strong { display: block; }
.attachment small { color: #8091a5; font-size: 8px; text-transform: uppercase; letter-spacing: .15em; }
.attachment strong { font-size: 11px; }
.mini-waveform { display: flex; align-items: center; gap: 3px; height: 22px; margin-left: auto; }
.mini-waveform i { display: block; width: 2px; height: 8px; background: #9bb2ca; animation: wave 1.4s ease-in-out infinite alternate; }
.mini-waveform i:nth-child(2n) { height: 18px; animation-delay: -.6s; }.mini-waveform i:nth-child(3n) { height: 13px; animation-delay: -.9s; }
.recipient-hint { margin-top: 9px; color: #77899e; font-size: 9px; }
.decor-gate-frame { position: absolute; border: 1px solid rgba(255,255,255,.06); }
.gate-one { width: 42vw; height: 70vh; right: 9vw; top: 15vh; }
.gate-two { width: 29vw; height: 54vh; right: 15.5vw; top: 23vh; }
.decor-earphone-line { position: absolute; width: 38vw; height: 40vh; left: -13vw; bottom: -15vh; border: 1px solid rgba(216,195,122,.15); border-left-color: transparent; border-radius: 50%; transform: rotate(18deg); }
.decor-earphone-line::after { content: ""; position: absolute; right: 3%; top: 21%; width: 10px; height: 24px; border: 2px solid rgba(216,195,122,.2); border-radius: 10px; transform: rotate(-42deg); }

/* 02 — Offline */
.section-offline { padding-top: 120px; color: var(--color-text-main); background: linear-gradient(150deg, #ccd7e2 0%, var(--color-bg-room) 43%, var(--color-lavender-soft) 72%, #edf1f5 100%); }
.section-offline::before { content: ""; position: absolute; inset: 0; opacity: .24; background-image: radial-gradient(rgba(31,47,70,.35) .7px, transparent .7px); background-size: 22px 22px; }
.section-offline .section-kicker { color: #53657a; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 46px; }
.section-heading .section-title { text-align: right; }
.quote-card { position: relative; padding: clamp(28px, 4.4vw, 50px); border: 1px solid rgba(255,255,255,.5); border-radius: var(--radius-card); background: rgba(255,255,255,.38); box-shadow: var(--shadow-soft); font-size: clamp(17px, 2vw, 22px); line-height: 2; }
.offline-opening { max-width: 980px; margin-left: auto; }
.click-dots { position: absolute; right: 25px; bottom: 18px; display: flex; gap: 6px; }
.click-dots i { width: 5px; height: 5px; border-radius: 50%; background: #7b8ea4; animation: click-dot 1.8s infinite; }
.click-dots i:nth-child(2) { animation-delay: .2s; }.click-dots i:nth-child(3) { animation-delay: .4s; }
.offline-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 24px; margin-top: 30px; }
.offline-story-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(330px, .92fr); align-items: start; gap: 30px; margin-top: 34px; }
.profile-card, .offline-description { padding: clamp(25px, 4vw, 38px); }
.profile-list { margin-top: 22px; }
.profile-list div { display: grid; grid-template-columns: 112px 1fr; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--color-line); }
.profile-list div:last-child { border-bottom: 0; }
.profile-list dt { color: var(--color-text-sub); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.profile-list dd { font-size: 14px; }
.offline-description { background: rgba(247,249,252,.55); }
.offline-description > p:not(.card-label) { margin-top: 18px; color: #445469; font-size: 14px; }
.offline-description .tag-row { margin-top: 26px; }
.composer-note { position: relative; margin: 48px 24px 0; padding: clamp(34px, 5vw, 60px); border: 1px solid rgba(255,255,255,.7); border-radius: 6px 24px 24px 6px; background: linear-gradient(100deg, rgba(255,255,255,.72), rgba(240,244,248,.63)); box-shadow: 10px 22px 55px rgba(49,66,84,.14); transform: rotate(-.5deg); }
.offline-story-grid .composer-note { height: auto; margin: 0; padding: clamp(32px, 4vw, 48px); }
.composer-note::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .3; background: repeating-linear-gradient(transparent 0 37px, #9fafc0 38px, transparent 39px); }
.composer-note header, .composer-note blockquote, .foreshadow-note, .note-wave { position: relative; z-index: 1; }
.composer-note header { display: flex; justify-content: space-between; color: #6a798a; }
.composer-note header span { font: 10px/1.7 ui-monospace, monospace; letter-spacing: .1em; }
.composer-note blockquote { max-width: 900px; margin-top: 28px; font-size: clamp(17px, 2vw, 22px); line-height: 2.05; }
.foreshadow-note { margin-top: 20px; color: #7d8997; font-family: var(--font-hand); font-size: 11px; opacity: .68; }
.note-binding { position: absolute; z-index: 2; left: -8px; top: 25%; display: grid; gap: 42px; }
.note-binding i { width: 28px; height: 6px; border: 1px solid #738399; border-radius: 10px; background: #cbd5df; }
.decor-waveform { height: 34px; opacity: .35; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='40' viewBox='0 0 600 40'%3E%3Cpath d='M0 20h30l6-10 7 21 8-26 8 30 8-20 8 10 8-5h35l6-13 7 26 8-29 8 31 8-20 8 9 8-4h44l7-15 8 28 8-25 8 20 8-8h38l7-12 8 25 8-30 8 27 8-10h40l8-18 8 32 8-26 8 18 8-6h55' fill='none' stroke='%235b6e84' stroke-width='1'/%3E%3C/svg%3E") center/600px 40px repeat-x; }
.note-wave { margin-top: 30px; }
.section-coda { margin: 80px 0 12px; text-align: center; color: #586a80; font-size: clamp(17px, 2vw, 22px); line-height: 1.8; }
.room-light { position: absolute; right: -8vw; top: 20%; width: 46vw; height: 40vw; border-radius: 6%; background: rgba(255,255,255,.22); box-shadow: 0 0 100px rgba(255,255,255,.22); transform: rotate(-8deg); }
.staff-lines { position: absolute; inset: 46% 0 auto; height: 80px; opacity: .08; background: repeating-linear-gradient(to bottom, #1f2f46 0 1px, transparent 1px 16px); }
.decor-film-frame { position: absolute; width: 120px; height: 260px; border: 12px solid rgba(48,66,86,.05); background: repeating-linear-gradient(to bottom, transparent 0 35px, rgba(48,66,86,.1) 35px 50px); }
.film-left { left: -30px; top: 37%; transform: rotate(8deg); }

/* 03 — Online */
.section-online { min-height: 110vh; padding-top: 120px; color: var(--color-text-main); background: linear-gradient(170deg, #f8fcff 0%, var(--color-sky) 42%, #d7d7f1 72%, #b9def5 100%); }
.section-online::before { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.68) 53%, transparent 68%); opacity: .55; }
.section-online .section-kicker { color: #4882a8; }
.online-heading { display: grid; grid-template-columns: .72fr 1.28fr; gap: 40px; align-items: end; margin-bottom: 68px; }
.online-heading blockquote { text-align: right; font-size: clamp(30px, 4.3vw, 54px); font-weight: 300; line-height: 1.5; letter-spacing: -.045em; }
.online-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 26px; }
.avatar-card { padding: clamp(28px, 4vw, 42px); background: rgba(255,255,255,.54); }
.avatar-card > header { display: flex; justify-content: space-between; align-items: flex-start; }
.avatar-card > header span { color: #6d95ad; font-size: 9px; letter-spacing: .12em; }
.level { color: #4d8db6; font-size: 13px; letter-spacing: .14em; }
.avatar-identity { display: flex; align-items: center; gap: 22px; margin: 34px 0 26px; }
.avatar-placeholder { position: relative; display: grid; place-items: center; width: 112px; aspect-ratio: 1; overflow: hidden; border: 1px solid rgba(73,141,183,.26); border-radius: 50%; background: linear-gradient(140deg, #bfe7fb, #fff); box-shadow: inset 0 0 0 8px rgba(255,255,255,.5), 0 12px 35px rgba(80,142,180,.16); }
.avatar-placeholder::before, .avatar-placeholder::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(78,150,194,.18); }
.avatar-placeholder::before { inset: 13px; }.avatar-placeholder::after { inset: 24px; }
.avatar-placeholder span { z-index: 1; color: #4d90b8; font: 300 36px/1 Georgia, serif; }
.avatar-identity small { color: #7293a8; font-size: 9px; letter-spacing: .18em; }
.avatar-identity h3 { margin: 2px 0 0; font-size: clamp(30px, 4vw, 44px); line-height: 1.1; }
.avatar-identity em { color: #5789a7; font-family: inherit; font-size: .55em; font-style: normal; font-weight: 400; }
.online-side { display: grid; gap: 20px; }
.nameplate { padding: 22px 28px; border-left: 2px solid var(--color-gold); background: rgba(255,255,255,.28); }
.nameplate small { color: #6590a9; font-size: 9px; font-weight: 700; letter-spacing: .16em; }
.nameplate p { margin-top: 8px; color: #527083; font-size: 13px; }
.nameplate strong { color: var(--color-text-main); }
.connect-note { position: relative; margin-top: 30px; padding: clamp(34px, 5.5vw, 64px); overflow: hidden; background: rgba(255,255,255,.59); }
.connect-note::before { content: "03 / CONNECTED"; position: absolute; right: -10px; bottom: -30px; color: rgba(63,124,163,.055); font-size: clamp(52px, 9vw, 110px); font-weight: 800; letter-spacing: -.07em; }
.connect-note header { display: flex; justify-content: space-between; align-items: center; }
.connect-note header span { color: #7195ab; font: 10px/1 ui-monospace, monospace; letter-spacing: .14em; }
.connect-note blockquote { position: relative; z-index: 1; max-width: 920px; margin-top: 28px; font-size: clamp(17px, 2.1vw, 23px); line-height: 2.05; }
.connect-signal { position: absolute; top: 36px; right: 46%; display: flex; align-items: end; gap: 3px; height: 14px; }
.connect-signal i { width: 2px; height: 4px; background: #61a3cc; }.connect-signal i:nth-child(2) { height: 8px; }.connect-signal i:nth-child(3) { height: 13px; }
.online-coda { margin-top: 100px; color: #376985; }
.online-coda-group { position: relative; display: grid; justify-items: center; margin-top: 100px; text-align: center; }
.online-coda-group .online-coda { margin-top: 0; }
.relation-foreshadow { margin-top: 14px; color: #66849a; font-family: var(--font-hand); font-size: 11px; opacity: .62; }
.relation-light { position: relative; width: 18px; height: 18px; margin-top: 20px; padding: 0; border: 0; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.98) 0%, rgba(134,196,237,.8) 38%, rgba(216,195,122,.2) 72%); box-shadow: 0 0 18px rgba(110,182,232,.55), 0 0 32px rgba(216,195,122,.22); cursor: pointer; opacity: .68; transition: opacity .3s, transform .3s, box-shadow .3s; }
.relation-light::before,
.relation-light::after { content: ""; position: absolute; top: 50%; left: 50%; pointer-events: none; background: rgba(255,255,255,.78); transform: translate(-50%, -50%); }
.relation-light::before { width: 28px; height: 1px; }
.relation-light::after { width: 1px; height: 28px; }
.relation-light:hover,
.relation-light:focus-visible { opacity: 1; transform: scale(1.12); box-shadow: 0 0 22px rgba(110,182,232,.7), 0 0 38px rgba(216,195,122,.3); outline: none; }
.relation-light-hint { min-height: 1.7em; margin-top: 12px; color: #64849a; font-family: var(--font-hand); font-size: 11px; opacity: 0; transform: translateY(4px); transition: opacity .35s, transform .35s; }
.relation-light-hint.is-visible { opacity: .72; transform: translateY(0); }

/* 04 — Relation / distance becoming a shared sky */
.section-relation {
  min-height: 100vh;
  padding-top: 120px;
  color: #20344d;
  background:
    linear-gradient(112deg, #b9c5d1 0%, #d3dde6 42%, #eaf5fb 58%, #f7fcff 100%);
}
.section-relation::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .27;
  background:
    radial-gradient(circle at 18% 22%, rgba(58,75,96,.16) 0 1px, transparent 1.5px),
    radial-gradient(circle at 81% 34%, rgba(255,255,255,.92) 0 1px, transparent 1.5px);
  background-size: 26px 26px, 34px 34px;
}
.section-relation::after {
  content: "";
  position: absolute;
  inset: 42% 0 auto;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(51,71,94,.18), rgba(255,255,255,.7), rgba(100,170,210,.2));
}
.relation-inner { position: relative; z-index: 3; }
.relation-margin-fragments { position: absolute; z-index: 7; inset: 0 -34px; pointer-events: none; }
.relation-fragment { position: absolute; appearance: none; padding: 4px 6px; border: 0; color: rgba(48,72,94,.4); background: transparent; font-family: "Pretendard", "Noto Sans KR", sans-serif; font-size: 8px; font-weight: 600; line-height: 1; letter-spacing: .13em; white-space: nowrap; cursor: default; user-select: none; pointer-events: auto; opacity: .62; transition: opacity .25s ease, transform .25s ease, color .25s ease; }
.relation-fragment::before { content: ""; display: inline-block; width: 12px; height: 1px; margin: 0 7px 2px 0; background: currentColor; opacity: .55; }
.relation-fragment:hover { color: rgba(53,96,123,.62); opacity: .78; transform: translateY(-1px); }
.relation-fragment:focus-visible { color: rgba(53,96,123,.72); outline: 1px solid rgba(92,132,158,.32); outline-offset: 4px; }
.relation-fragment:nth-child(1) { top: 18%; left: 0; transform: rotate(-2deg); }.relation-fragment:nth-child(2) { top: 41%; right: 0; transform: rotate(2deg); }.relation-fragment:nth-child(3) { top: 64%; left: -8px; transform: rotate(1deg); }.relation-fragment:nth-child(4) { top: 82%; right: -3px; transform: rotate(-2deg); }
.relation-fragment:nth-child(1):hover { transform: rotate(-2deg) translateY(-1px); }.relation-fragment:nth-child(2):hover { transform: rotate(2deg) translateY(-1px); }.relation-fragment:nth-child(3):hover { transform: rotate(1deg) translateY(-1px); }.relation-fragment:nth-child(4):hover { transform: rotate(-2deg) translateY(-1px); }
.relation-room-haze,
.relation-sky-haze { position: absolute; pointer-events: none; filter: blur(2px); }
.relation-room-haze { left: -8%; top: 13%; width: 46%; height: 38%; border: 1px solid rgba(50,68,89,.09); border-radius: 5%; box-shadow: 0 0 90px rgba(54,75,98,.11); transform: rotate(-5deg); }
.relation-sky-haze { right: -10%; top: 7%; width: 52%; height: 42%; border-top: 1px solid rgba(255,255,255,.75); border-radius: 50%; box-shadow: inset 0 0 100px rgba(255,255,255,.25); transform: skewX(-12deg); }
.relation-pencil-lines { position: absolute; left: 0; bottom: 18%; width: 34%; height: 170px; opacity: .12; background: repeating-linear-gradient(to bottom, #3d526b 0 1px, transparent 1px 22px); transform: rotate(-2deg); }

.sky-cut-line { position: absolute; z-index: 1; top: 0; bottom: 0; left: 49%; width: 82px; pointer-events: none; transform: translateX(-50%) rotate(2deg); opacity: .72; }
.sky-cut-line::before { content: ""; position: absolute; top: 2%; bottom: 4%; left: 50%; width: 1px; background: linear-gradient(to top, rgba(69,102,132,.12), rgba(177,220,244,.76) 48%, rgba(255,255,255,.96)); box-shadow: 0 0 18px rgba(125,196,235,.45), 0 0 42px rgba(216,195,122,.12); animation: sky-cut-flow 7s ease-in-out infinite; }
.sky-cut-line::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 5%; height: 64px; border-top: 1px solid rgba(83,116,145,.3); border-radius: 50%; transform: rotate(72deg); }
.sky-cut-line i { position: absolute; left: 50%; width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,.9); box-shadow: 0 0 12px rgba(111,184,226,.8); }
.sky-cut-line i:nth-child(1) { top: 19%; margin-left: -7px; }.sky-cut-line i:nth-child(2) { top: 45%; margin-left: 5px; }.sky-cut-line i:nth-child(3) { top: 72%; margin-left: -4px; }

.relation-opening { position: relative; display: grid; align-content: center; min-height: 520px; }
.section-relation .section-kicker { color: #55718a; }
.relation-quote { max-width: 920px; margin: 72px 0 0; font-size: clamp(38px, 5vw, 68px); font-weight: 300; line-height: 1.46; letter-spacing: 0; text-wrap: balance; }
.relation-opening-mark { display: flex; align-items: center; gap: 12px; width: min(420px, 48%); margin: 48px 0 0 auto; color: #6fa8ca; }
.relation-opening-mark span { display: block; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, currentColor); }
.relation-opening-mark i { display: block; width: 7px; height: 7px; border-radius: 50%; background: white; box-shadow: 0 0 18px #6eb6e8, 0 0 32px rgba(216,195,122,.32); }

.distance-visual { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr); align-items: center; gap: 24px; margin-top: 54px; }
.distance-scene { position: relative; width: 100%; min-width: 0; min-height: 340px; max-height: 420px; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid rgba(255,255,255,.48); border-radius: 24px; box-shadow: 0 18px 48px rgba(31,47,70,.1); isolation: isolate; }
.distance-scene::after { content: ""; position: absolute; z-index: 7; inset: auto 0 0; height: 20%; pointer-events: none; background: linear-gradient(to bottom, transparent, rgba(20,37,55,.25)); }
.distance-scene-label { position: absolute; z-index: 8; left: 22px; bottom: 18px; color: rgba(255,255,255,.78); font-size: 9px; font-weight: 700; letter-spacing: .2em; text-shadow: 0 2px 12px rgba(9,22,36,.38); }

.distance-scene-real { background: linear-gradient(145deg, #718399 0%, #9cabb9 42%, #c5d0d9 100%); transform: translateY(14px) scale(.99); }
.distance-scene-real::before { content: ""; position: absolute; z-index: 1; inset: 0; background: radial-gradient(circle at 38% 36%, rgba(210,232,245,.24), transparent 34%), linear-gradient(90deg, rgba(30,45,63,.18), transparent 56%); }
.relation-window { position: absolute; z-index: 2; top: 9%; right: 8%; width: 30%; height: 40%; border: 1px solid rgba(226,238,246,.3); background: linear-gradient(145deg, rgba(30,47,66,.24), rgba(170,190,204,.08)); box-shadow: inset 0 0 38px rgba(32,49,67,.12); }
.relation-window::before { content: ""; position: absolute; top: 50%; right: 0; left: 0; height: 1px; background: rgba(230,239,245,.18); }
.relation-window::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: rgba(230,239,245,.14); }
.desk-line { position: absolute; z-index: 3; right: 4%; bottom: 21%; left: 4%; height: 3px; border-radius: 4px; background: rgba(40,57,75,.46); box-shadow: 0 11px 24px rgba(26,41,57,.12); }
.desk-line::before { content: ""; position: absolute; top: 3px; left: 12%; width: 2px; height: 74px; background: rgba(44,61,78,.28); box-shadow: 315px 0 0 rgba(44,61,78,.2); }
.monitor-glow { position: absolute; z-index: 4; top: 18%; left: 13%; width: 43%; height: 37%; border: 2px solid rgba(40,57,75,.45); border-radius: 5px; background: radial-gradient(circle at 52% 48%, rgba(210,237,251,.74), rgba(116,153,176,.34) 48%, rgba(42,60,79,.58)); box-shadow: 0 0 46px rgba(187,222,241,.24); }
.monitor-glow::before { content: ""; position: absolute; top: 100%; left: 50%; width: 2px; height: 30px; background: rgba(42,59,76,.42); }
.monitor-glow::after { content: ""; position: absolute; top: calc(100% + 29px); left: 36%; width: 28%; height: 2px; background: rgba(42,59,76,.36); }
.empty-chair { position: absolute; z-index: 3; right: 15%; bottom: 19%; width: 18%; height: 29%; border: 2px solid rgba(45,61,78,.25); border-bottom: 0; border-radius: 32% 32% 4px 4px; transform: skewX(-4deg); }
.empty-chair::after { content: ""; position: absolute; right: 13%; bottom: -45%; left: 13%; height: 46%; border-right: 2px solid rgba(45,61,78,.22); border-left: 2px solid rgba(45,61,78,.22); }
.relation-earphone-line { position: absolute; z-index: 5; left: 6%; bottom: 9%; width: 38%; height: 24%; border: 2px solid rgba(34,52,72,.34); border-top-color: transparent; border-left-color: transparent; border-radius: 50%; transform: rotate(7deg); }
.relation-earphone-line::after { content: ""; position: absolute; right: -7px; top: 2px; width: 9px; height: 19px; border: 2px solid rgba(34,52,72,.38); border-radius: 8px; transform: rotate(-18deg); }
.relation-score-paper { position: absolute; z-index: 4; left: 57%; bottom: 22%; width: 19%; height: 16%; background: repeating-linear-gradient(to bottom, rgba(245,247,246,.5) 0 8px, rgba(59,77,94,.14) 8px 9px); box-shadow: 0 7px 16px rgba(37,50,63,.08); transform: rotate(-5deg); }
.voice-wave { position: absolute; z-index: 6; right: -1px; top: 57%; width: 36%; height: 34px; opacity: .58; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='34' viewBox='0 0 260 34'%3E%3Cpath d='M0 17h28l5-8 7 18 8-23 8 26 8-17 8 8 8-4h29l6-11 7 22 8-25 8 27 8-17 8 7 8-3h38' fill='none' stroke='%23d9edf8' stroke-width='1.4'/%3E%3C/svg%3E") right center/260px 34px no-repeat; }

.distance-scene-online { background: linear-gradient(158deg, #f5fbff 0%, #bfe7fa 55%, #91c9e7 100%); transform: translateY(-14px) scale(1.02); }
.distance-scene-online::before { content: ""; position: absolute; z-index: 1; inset: 0; background: radial-gradient(circle at 74% 19%, rgba(255,255,255,.88), transparent 24%), linear-gradient(to bottom, rgba(255,255,255,.2), transparent 57%); }
.distance-scene-online::after { height: 18%; background: linear-gradient(to bottom, transparent, rgba(41,101,135,.22)); }
.relation-horizon { position: absolute; z-index: 2; right: -4%; bottom: 27%; left: -4%; height: 1px; background: rgba(255,255,255,.65); box-shadow: 0 -20px 40px rgba(255,255,255,.2); }
.cloud-line { position: absolute; z-index: 2; height: 34px; border-top: 1px solid rgba(255,255,255,.72); border-radius: 50%; transform: skewX(-24deg); }
.cloud-line-one { top: 25%; left: -8%; width: 54%; }.cloud-line-two { top: 43%; right: -12%; width: 68%; opacity: .72; }
.light-trail { position: absolute; z-index: 5; top: 55%; left: -2%; width: 67%; height: 2px; background: linear-gradient(90deg, rgba(222,242,252,.3), rgba(255,255,255,.95), rgba(216,195,122,.52), transparent); box-shadow: 0 0 20px rgba(255,255,255,.62); transform: rotate(-13deg); transform-origin: left center; }
.light-trail::after { content: ""; position: absolute; right: 14%; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.95); box-shadow: 0 0 16px rgba(110,182,232,.72), 0 0 26px rgba(216,195,122,.3); }
.gate-silhouette { position: absolute; z-index: 3; right: 12%; bottom: 27%; width: 25%; height: 46%; border: 2px solid rgba(47,103,138,.25); border-bottom: 0; border-radius: 48% 48% 0 0; box-shadow: inset 0 0 34px rgba(255,255,255,.18), 0 0 24px rgba(62,135,178,.12); }
.gate-silhouette::before { content: ""; position: absolute; inset: 10% 13% 0; border: 1px solid rgba(255,255,255,.43); border-bottom: 0; border-radius: 48% 48% 0 0; }
.world-silhouette { position: absolute; z-index: 2; right: 35%; bottom: 27%; left: 7%; height: 24%; }
.world-silhouette i { position: absolute; bottom: 0; width: 17%; border: 1px solid rgba(45,103,139,.22); border-bottom: 0; background: linear-gradient(to top, rgba(66,127,163,.13), transparent); }
.world-silhouette i:nth-child(1) { left: 3%; height: 48%; transform: skewY(-7deg); }.world-silhouette i:nth-child(2) { left: 27%; height: 82%; border-radius: 24px 24px 0 0; }.world-silhouette i:nth-child(3) { left: 56%; width: 30%; height: 62%; clip-path: polygon(0 28%, 45% 0, 100% 18%, 100% 100%, 0 100%); }
.sky-dust i { position: absolute; z-index: 6; width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,.95); box-shadow: 0 0 12px rgba(255,255,255,.8); }
.sky-dust i:nth-child(1) { top: 18%; left: 16%; }.sky-dust i:nth-child(2) { top: 32%; left: 64%; }.sky-dust i:nth-child(3) { top: 58%; left: 47%; }.sky-dust i:nth-child(4) { top: 21%; right: 8%; }
.distance-connector { position: relative; z-index: 4; display: flex; align-items: center; justify-content: center; width: 96px; height: 160px; }
.connector-wave { position: relative; display: block; width: 120px; height: 1px; flex: 0 0 auto; background: linear-gradient(90deg, rgba(31,47,70,.28), rgba(110,182,232,.72), rgba(216,195,122,.56)); box-shadow: 0 0 14px rgba(110,182,232,.24); transform: rotate(-12deg); transform-origin: center; }
.connector-wave::before { content: ""; position: absolute; top: -7px; left: 22%; width: 38%; height: 14px; border-top: 1px solid rgba(122,183,217,.36); border-radius: 50%; transform: rotate(7deg); }
.connector-light { position: absolute; top: calc(50% - 4px); right: -12px; width: 7px; height: 7px; border-radius: 50%; background: rgba(216,195,122,.82); box-shadow: 0 0 16px rgba(216,195,122,.38), 0 0 28px rgba(110,182,232,.28); }

.dm-archive-cluster { position: relative; width: min(1040px, 96%); margin: 92px auto 0; padding: 0 24px 38px; }
.dm-archive-heading { display: block; margin: 0 10px 24px; color: #405b73; }
.dm-archive-heading p { font-size: 9px; font-weight: 700; letter-spacing: .18em; opacity: .58; }
.dm-archive-heading h3 { margin-top: 8px; font-family: var(--font-hand); font-size: clamp(20px, 2.2vw, 26px); font-weight: 500; line-height: 1.4; }
.dm-archive-stage { position: relative; display: grid; grid-template-columns: minmax(0,.86fr) minmax(280px,1.18fr) minmax(0,.9fr); grid-template-rows: auto auto; gap: 20px 24px; padding: 52px 10px 0; }
.dm-archive-stage::before { content: ""; position: absolute; top: 30px; right: 24px; left: 24px; height: 1px; background: linear-gradient(90deg, rgba(60,87,109,.18), rgba(110,182,232,.32), rgba(216,195,122,.34)); }
.dm-timeline-tags { position: absolute; z-index: 2; top: 12px; right: 18px; left: 18px; display: grid; grid-template-columns: .86fr 1.18fr .9fr; gap: 24px; color: rgba(55,82,104,.5); font-size: 7px; font-weight: 700; letter-spacing: .17em; pointer-events: none; }
.dm-timeline-tags span:nth-child(2) { justify-self: center; color: rgba(78,132,164,.64); }.dm-timeline-tags span:nth-child(3) { justify-self: end; color: rgba(139,120,75,.6); }
.dm-timeline-start { position: relative; display: grid; grid-column: 1; grid-row: 1; gap: 12px; align-content: start; }
.dm-timeline-anchor { grid-column: 2; grid-row: 1; align-self: stretch; }
.dm-timeline-transition { position: relative; display: grid; grid-column: 3; grid-row: 1; gap: 12px; align-content: start; }
.dm-scrap { position: relative; min-width: 0; padding: 18px 20px; overflow: hidden; border: 1px solid rgba(52,72,94,.13); border-radius: 7px; color: #344b61; background: rgba(247,249,247,.88); box-shadow: 8px 14px 32px rgba(42,61,80,.1); }
.dm-scrap::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .16; background: repeating-linear-gradient(transparent 0 24px, rgba(91,116,137,.22) 25px, transparent 26px); }
.dm-scrap > * { position: relative; z-index: 2; }
.dm-scrap-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #657b8e; font-family: "Pretendard", "Noto Sans KR", sans-serif; font-size: 8px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.dm-scrap-meta time { font-weight: 500; opacity: .68; }
.dm-music-term { margin-left: auto; color: rgba(153,126,67,.68); font-family: var(--font-hand); font-size: 8px; font-weight: 500; font-style: italic; letter-spacing: .08em; text-transform: lowercase; opacity: .42; transition: color .7s ease, opacity .7s ease; }
.dm-scrap-meta .dm-music-term + time { margin-left: 2px; }
.section-relation.is-listened .dm-music-term { color: rgba(135,106,45,.82); opacity: .78; }
.dm-recipient { margin-top: 13px; color: #6d8295; font-size: 10px; letter-spacing: .04em; }
.dm-scrap blockquote { margin-top: 8px; font-family: var(--font-hand); font-size: 15px; line-height: 1.72; }
.dm-scrap-first { transform: rotate(-.25deg); }
.dm-scrap-checkin { color: #2f4d66; background: rgba(235,244,248,.9); transform: rotate(.2deg); }
.dm-scrap-rain { min-height: 100%; padding: 26px 28px; border-color: rgba(198,164,88,.25); background: rgba(249,249,244,.96); box-shadow: 13px 21px 46px rgba(42,61,80,.14); transform: none; }
.dm-scrap-rain blockquote { color: #284d69; font-size: 17px; }
.dm-scrap-unsent { min-height: 132px; border-style: dashed; border-color: rgba(86,124,151,.22); background: rgba(241,247,249,.64); box-shadow: 7px 12px 26px rgba(42,61,80,.065); transform: rotate(.25deg); }
.dm-scrap-late { display: grid; grid-column: 1 / 4; grid-row: 2; grid-template-columns: 155px minmax(0,1fr); grid-template-rows: auto auto 1fr; column-gap: 26px; width: min(650px,72%); min-height: 180px; justify-self: center; background: rgba(240,243,244,.94); transform: none; }
.dm-scrap-late blockquote { color: #33495f; }
.dm-scrap-late .dm-scrap-meta, .dm-scrap-late .dm-recipient, .dm-scrap-late .dm-signal-line { grid-column: 1; }.dm-scrap-late blockquote { grid-column: 2; grid-row: 1 / 4; margin-top: 0; align-self: center; }
.dm-paper-clip { position: absolute; z-index: 4; top: -9px; right: 28px; width: 14px; height: 37px; border: 1px solid rgba(74,95,114,.36); border-bottom: 0; border-radius: 8px 8px 0 0; transform: rotate(8deg); }
.dm-tape { position: absolute; z-index: 4; top: -9px; left: 42%; width: 70px; height: 22px; background: rgba(224,215,180,.38); transform: rotate(-3deg); }
.dm-voice-file { display: grid; grid-template-columns: 1fr auto; gap: 5px 10px; padding: 13px 14px; border-top: 1px solid rgba(68,98,121,.16); border-bottom: 1px solid rgba(68,98,121,.1); background: rgba(236,245,249,.5); }
.dm-voice-transition { min-height: 76px; align-content: center; }
.dm-voice-file span { grid-column: 1 / -1; color: #718697; font-size: 7px; font-weight: 700; letter-spacing: .15em; }
.dm-voice-file .dm-music-term { float: right; font-size: 8px; letter-spacing: .08em; }
.dm-voice-file button { appearance: none; padding: 0; border: 0; color: #405c73; background: transparent; font: inherit; font-size: 10px; text-align: left; cursor: default; opacity: .78; transition: color .25s ease, opacity .25s ease; }
.dm-voice-file button:last-child { color: #8b784b; text-align: right; }
.dm-voice-file button:hover, .dm-voice-file button:focus-visible { color: #2e6f98; opacity: 1; outline: none; }
.dm-rain-line { position: absolute; right: 14px; bottom: 14px; width: 58px; height: 32px; opacity: .3; background: repeating-linear-gradient(112deg, transparent 0 9px, rgba(73,119,149,.42) 10px 11px, transparent 12px 18px); }
.dm-draft-cursor { display: inline-block; width: 1px; height: 1em; margin-left: 3px; vertical-align: -.12em; background: rgba(64,92,115,.48); animation: dmCursorBlink 1.5s steps(1, end) infinite; }
.dm-rest-phrase { position: absolute; right: 19px; bottom: 31px; display: flex; align-items: center; gap: 7px; color: rgba(74,96,115,.38); opacity: .7; }
.dm-rest-mark { position: relative; display: block; width: 8px; height: 15px; transform: rotate(7deg); }
.dm-rest-mark::before { content: ""; position: absolute; top: 1px; left: 2px; width: 5px; height: 8px; border-left: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: skewX(-22deg); }
.dm-rest-mark::after { content: ""; position: absolute; right: 0; bottom: 1px; width: 5px; height: 5px; border: 1px solid currentColor; border-radius: 50%; }
.dm-rest-bar { display: block; width: 28px; height: 5px; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; opacity: .55; }
.dm-unsent-note { position: absolute; right: 16px; bottom: 12px; color: #8495a3; font-size: 7px; letter-spacing: .13em; text-transform: uppercase; }
.dm-signal-line { display: flex; align-items: center; gap: 3px; width: 58px; height: 15px; margin-top: 10px; }
.dm-signal-line i { display: block; width: 2px; height: 4px; background: rgba(77,111,137,.3); }.dm-signal-line i:nth-child(2) { height: 9px; }.dm-signal-line i:nth-child(3) { height: 13px; }.dm-signal-line i:nth-child(4) { height: 7px; }.dm-signal-line i:nth-child(5) { height: 3px; }
.dm-archive-thread { position: absolute; bottom: -40px; left: 50%; width: 1px; height: 66px; background: linear-gradient(to bottom, rgba(77,111,137,.26), rgba(110,182,232,.2), transparent); }
.dm-archive-thread span { position: absolute; top: 17px; left: -24px; width: 48px; height: 12px; border-top: 1px solid rgba(86,124,151,.22); border-radius: 50%; transform: rotate(-7deg); }.dm-archive-thread i { position: absolute; top: 41px; left: -2px; width: 4px; height: 4px; border-radius: 50%; background: rgba(216,195,122,.58); box-shadow: 0 0 11px rgba(110,182,232,.24); }
.dm-archive-cluster + .relation-memory-bridge { margin-top: 18px; }

@keyframes dmCursorBlink { 0%, 48% { opacity: .7; } 49%, 100% { opacity: .12; } }

.relation-memory-bridge { position: relative; width: 1px; height: 92px; margin: 54px auto 18px; background: linear-gradient(to bottom, rgba(92,132,158,.08), rgba(92,132,158,.38), rgba(198,164,88,.24), transparent); }
.relation-memory-bridge span { position: absolute; top: 28%; left: -18px; width: 36px; height: 13px; border-top: 1px solid rgba(92,132,158,.24); border-radius: 50%; transform: rotate(8deg); }
.relation-memory-bridge i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: rgba(216,195,122,.58); box-shadow: 0 0 11px rgba(110,182,232,.28); }
.relation-memory-bridge i:nth-of-type(1) { top: 18%; left: -7px; }.relation-memory-bridge i:nth-of-type(2) { top: 52%; left: 5px; opacity: .72; }.relation-memory-bridge i:nth-of-type(3) { top: 74%; left: -4px; opacity: .46; }
.relation-memory-group { position: relative; display: flex; width: min(100%, 960px); margin: 0 auto; flex-direction: column; align-items: center; gap: 18px; }
.relation-memory-group::before { content: ""; position: absolute; z-index: 0; top: 18%; bottom: 11%; left: 50%; width: min(1040px, 96%); border-radius: 50%; background: radial-gradient(ellipse, rgba(255,255,255,.2), transparent 68%); transform: translateX(-50%); pointer-events: none; }
.relation-note-card { position: relative; z-index: 1; width: 92%; margin: 0 auto; padding: clamp(42px, 6vw, 72px); border: 1px solid rgba(255,255,255,.72); border-radius: 6px; color: #34485e; background: linear-gradient(106deg, rgba(248,248,244,.94), rgba(235,240,243,.9)); box-shadow: 18px 30px 78px rgba(42,61,80,.17); transform: rotate(-.28deg); }
.relation-note-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .22; background: repeating-linear-gradient(transparent 0 39px, #94a5b6 40px, transparent 41px); }
.relation-note-card .note-label,
.relation-note-card .note-body { position: relative; z-index: 2; }
.relation-note-card .note-label { color: #67798c; font-family: "Pretendard", "Noto Sans KR", sans-serif; font-size: 10px; font-weight: 800; letter-spacing: .19em; }
.relation-note-card .note-body { margin-top: 30px; font-size: clamp(16px, 1.8vw, 21px); line-height: 2.05; }
.relation-note-card .note-body p + p { margin-top: 32px; }
.relation-note-card blockquote { margin-top: 38px; padding: 13px 0 13px 24px; border-left: 2px solid rgba(198,164,88,.72); color: #244565; font-size: clamp(19px, 2.2vw, 27px); line-height: 1.75; }
.relation-note-tape { position: absolute; z-index: 3; top: -14px; left: 11%; width: 104px; height: 29px; background: rgba(224,215,180,.48); box-shadow: 0 2px 8px rgba(56,65,72,.07); transform: rotate(-4deg); }
.relation-note-clip { position: absolute; z-index: 3; top: -20px; right: 13%; width: 20px; height: 52px; border: 2px solid rgba(93,109,125,.45); border-bottom: 0; border-radius: 12px 12px 0 0; transform: rotate(7deg); }

.relation-memory-ribbon { position: relative; z-index: 1; width: min(780px, 88%); margin: 0 auto; overflow: hidden; border: 1px solid rgba(31,47,70,.07); border-radius: 0 0 24px 24px; background: radial-gradient(circle at 86% 42%, rgba(216,195,122,.1), transparent 24%), linear-gradient(90deg, rgba(255,255,255,.24), rgba(223,244,255,.2), rgba(255,255,255,.16)); box-shadow: 0 16px 42px rgba(31,47,70,.06); transition: border-color .6s ease, box-shadow .6s ease, background .6s ease; }
.relation-memory-inner { position: relative; padding: 8px 16px 18px; }
.relation-memory-svg { display: block; width: 100%; height: clamp(92px, 11vw, 122px); overflow: visible; }
.relation-memory-svg path,
.relation-memory-svg ellipse,
.relation-memory-svg circle { vector-effect: non-scaling-stroke; }
.memory-wave, .memory-staff, .memory-bars { opacity: .42; transition: opacity .8s ease, filter .8s ease; }
.memory-wave { fill: none; stroke: url(#relation-staff-gradient); stroke-width: .8; stroke-linecap: round; stroke-linejoin: round; }
.memory-staff path { fill: none; stroke: url(#relation-staff-gradient); stroke-width: .68; }
.memory-bars path { fill: none; stroke: rgba(54,88,112,.2); stroke-width: .65; }
.memory-note { fill: rgba(38,61,85,.66); opacity: .18; transition: opacity .7s ease, filter .5s ease, transform .5s ease; transform-box: fill-box; transform-origin: center; }
.memory-note path { fill: none; stroke: rgba(38,61,85,.56); stroke-width: .82; stroke-linecap: round; stroke-linejoin: round; }
.memory-note ellipse { stroke: none; }
.score-final-note { fill: rgba(118,157,181,.26); stroke: rgba(198,164,88,.62); stroke-width: .72; opacity: 0; visibility: hidden; transform: translateY(2px); transition: opacity .8s ease, filter .8s ease, transform .8s ease, visibility 0s linear .8s; }
.score-final-note path { fill: none; stroke-width: .7; }
.memory-final-light { fill: rgba(216,195,122,.62); stroke: none; opacity: .4; }
.relation-memory-ribbon.is-listened { border-color: rgba(110,182,232,.13); box-shadow: 0 16px 42px rgba(31,47,70,.065), inset 0 0 30px rgba(110,182,232,.035); }
.relation-memory-ribbon.is-listened .memory-wave,
.relation-memory-ribbon.is-listened .memory-staff,
.relation-memory-ribbon.is-listened .memory-bars { opacity: 1; filter: drop-shadow(0 0 5px rgba(110,182,232,.08)); }
.relation-memory-ribbon.is-listened .memory-note { opacity: .58; }
.memory-note.is-touched { opacity: .94 !important; filter: drop-shadow(0 0 6px rgba(216,195,122,.3)); transform: translateY(-1px); }
.relation-memory-ribbon.is-nanaming-unlocked .score-final-note { opacity: 1; visibility: visible; transform: translateY(0); filter: drop-shadow(0 0 8px rgba(216,195,122,.3)); transition-delay: .18s, .18s, .18s, 0s; }
.relation-memory-ribbon.is-nanaming-unlocked .memory-final-light { opacity: 1; }
.relation-note-buttons { position: absolute; inset: 8px 16px 36px; pointer-events: none; }
.memory-note-hitbox { position: absolute; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: default; pointer-events: auto; transform: translate(-50%, -50%); }
.relation-memory-ribbon.is-listened .memory-note-hitbox { cursor: pointer; }
.memory-note-hitbox:focus-visible { outline: 1px solid rgba(86,138,171,.58); outline-offset: 2px; box-shadow: 0 0 0 5px rgba(110,182,232,.08); }
.memory-note-hitbox:nth-child(1) { left: 25.4%; top: 52%; }.memory-note-hitbox:nth-child(2) { left: 32.7%; top: 39%; }.memory-note-hitbox:nth-child(3) { left: 42.2%; top: 45%; }.memory-note-hitbox:nth-child(4) { left: 50%; top: 32%; }.memory-note-hitbox:nth-child(5) { left: 61.9%; top: 52%; }.memory-note-hitbox:nth-child(6) { left: 69.8%; top: 39%; }.memory-note-hitbox:nth-child(7) { left: 80.2%; top: 45%; }
.relation-memory-hint { min-height: 1.6em; margin: -2px 8px 0; color: rgba(31,47,70,.56); font-family: var(--font-hand); font-size: 12px; line-height: 1.6; transition: color .35s ease, opacity .35s ease; }
.relation-memory-hint.is-notice { color: rgba(49,100,132,.78); }
.relation-memory-ribbon.is-melody-complete .relation-memory-hint,
.relation-memory-ribbon.is-nanaming-unlocked .relation-memory-hint { color: rgba(118,96,47,.72); }
.relation-particle-burst { position: fixed; z-index: 80; left: 0; top: 0; width: 1px; height: 1px; pointer-events: none; }
.relation-particle { position: absolute; left: 0; top: 0; width: 3px; height: 3px; border-radius: 50%; opacity: 0; transform: translate(-50%, -50%); animation: relationParticleBurst .9s ease-out var(--delay, 0s) forwards; }
.relation-particle.is-blue { background: rgba(110,182,232,.72); box-shadow: 0 0 10px rgba(110,182,232,.24); }
.relation-particle.is-gold { background: rgba(216,195,122,.78); box-shadow: 0 0 12px rgba(216,195,122,.26); }
.relation-particle.is-paper { width: 7px; height: 2px; border-radius: 999px; background: rgba(245,251,255,.74); box-shadow: 0 0 8px rgba(31,47,70,.08); }
.relation-particle.is-note { width: 4px; height: 3px; border-radius: 50%; background: rgba(86,124,151,.62); }
.relation-particle.is-note::after { content: ""; position: absolute; right: 0; bottom: 2px; width: 1px; height: 6px; background: rgba(86,124,151,.48); transform-origin: bottom; }
.relation-particle-whisper { position: absolute; top: 13px; left: 12px; width: max-content; color: rgba(50,77,99,.62); font-family: var(--font-hand); font-size: 11px; letter-spacing: 0; opacity: 0; animation: relationWhisperFade 2.4s ease forwards; }

@keyframes relationParticleBurst { 0% { opacity: 0; transform: translate(-50%, -50%) translate(0, 0) rotate(0deg) scale(.6); } 18% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) translate(var(--x), var(--y)) rotate(var(--r)) scale(.15); } }
@keyframes relationWhisperFade { 0%, 100% { opacity: 0; transform: translateY(3px); } 14%, 72% { opacity: .76; transform: translateY(0); } }
.relation-footer { margin: 44px 0 -96px; padding: 30px 0 34px; border-top: 1px solid rgba(61,83,104,.12); color: #698097; background: transparent; }

/* 05 — Prelude / an unopened score */
.section-prelude {
  min-height: 100svh;
  padding-top: 120px;
  color: #34495e;
  background:
    radial-gradient(circle at 76% 22%, rgba(255,255,255,.58), transparent 27%),
    linear-gradient(145deg, #d4dde5 0%, #e7edf1 48%, #edf6f8 100%);
}
.section-prelude::before { content: "05"; position: absolute; right: -2vw; bottom: -9vh; color: rgba(48,67,87,.025); font: 700 500px/1 Georgia, serif; }
.section-prelude::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .2; background-image: radial-gradient(rgba(54,75,96,.3) .6px, transparent .8px); background-size: 22px 22px; }
.prelude-paper-lines { position: absolute; inset: 18% 0 auto; height: 220px; opacity: .16; background: repeating-linear-gradient(to bottom, transparent 0 27px, rgba(65,87,108,.38) 28px, transparent 29px); transform: rotate(-1deg); }
.prelude-file-edge { position: absolute; top: 13%; right: 6%; width: 180px; height: 250px; border-top: 1px solid rgba(65,87,108,.12); border-right: 1px solid rgba(65,87,108,.1); }
.prelude-file-edge i { position: absolute; display: block; width: 44px; height: 1px; background: rgba(65,87,108,.17); }
.prelude-file-edge i:first-child { top: 38px; right: -7px; transform: rotate(12deg); }.prelude-file-edge i:last-child { top: 54px; right: -4px; transform: rotate(-8deg); }
.prelude-inner { display: flex; min-height: calc(100svh - 120px); flex-direction: column; }
.prelude-opening { width: min(760px, 86%); }
.section-prelude .section-kicker { color: rgba(65,89,110,.72); }
.prelude-overline { margin-top: 72px; color: rgba(65,89,110,.42); font-size: 9px; font-weight: 700; letter-spacing: .22em; }
.prelude-opening h2 { margin-top: 12px; color: #33485d; font-family: var(--font-hand); font-size: 42px; font-weight: 400; line-height: 1.45; letter-spacing: 0; }
.prelude-lead { margin-top: 24px; color: rgba(56,76,95,.68); font-size: 20px; line-height: 1.9; }

.prelude-score-board { position: relative; width: 100%; margin-top: 76px; padding: 45px 10px 52px; }
.prelude-score-board::before { content: ""; position: absolute; inset: 22px 0 18px; border-top: 1px solid rgba(75,98,119,.1); border-bottom: 1px solid rgba(255,255,255,.54); background: linear-gradient(90deg, rgba(255,255,255,.18), rgba(244,248,249,.42), rgba(255,255,255,.12)); box-shadow: 0 18px 44px rgba(45,64,83,.045); }
.prelude-staff { position: absolute; z-index: 0; top: 50%; right: 1%; left: 1%; height: 50px; transform: translateY(-50%); opacity: .32; }
.prelude-staff span { position: absolute; right: 0; left: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(69,93,115,.42) 8%, rgba(69,93,115,.42) 92%, transparent); }
.prelude-staff span:nth-child(1) { top: 0; }.prelude-staff span:nth-child(2) { top: 12px; }.prelude-staff span:nth-child(3) { top: 24px; }.prelude-staff span:nth-child(4) { top: 36px; }.prelude-staff span:nth-child(5) { top: 48px; }
.prelude-chapters { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.prelude-chapters li { position: relative; min-width: 0; }
.prelude-chapters li:not(:last-child)::after { content: ""; position: absolute; z-index: -1; top: 50%; left: calc(100% - 1px); width: 16px; height: 1px; background: rgba(77,101,122,.28); }
.prelude-chapters button { position: relative; display: grid; width: 100%; min-height: 142px; padding: 22px 14px 18px; align-content: space-between; border: 1px solid rgba(66,87,107,.1); border-radius: 4px; color: rgba(49,69,88,.58); background: rgba(248,250,249,.46); box-shadow: 7px 12px 28px rgba(45,64,83,.045); cursor: default; text-align: left; opacity: .66; transition: opacity .28s ease, border-color .28s ease, transform .28s ease, background .28s ease; }
.prelude-chapters button::after { content: ""; position: absolute; top: -1px; right: -1px; width: 18px; height: 18px; border-left: 1px solid rgba(66,87,107,.08); border-bottom: 1px solid rgba(66,87,107,.08); background: rgba(215,225,231,.72); clip-path: polygon(100% 0, 100% 100%, 0 0); }
.prelude-chapters button:hover,
.prelude-chapters button:focus-visible { border-color: rgba(82,112,136,.22); background: rgba(251,252,250,.62); opacity: .88; transform: translateY(-3px); outline: none; }
.prelude-chapters button:focus-visible { box-shadow: 0 0 0 3px rgba(110,182,232,.12), 7px 12px 28px rgba(45,64,83,.05); }
.prelude-chapters button > span { color: rgba(69,93,115,.46); font-size: 8px; font-weight: 700; letter-spacing: .12em; white-space: nowrap; }
.prelude-chapters strong { overflow-wrap: anywhere; font-family: var(--font-hand); font-size: 14px; font-weight: 500; line-height: 1.55; letter-spacing: 0; }
.prelude-chapters small { color: rgba(139,115,64,.48); font-family: var(--font-hand); font-size: 8px; font-style: italic; letter-spacing: .08em; }

.prelude-closed-note { position: relative; margin: 64px auto 0; color: rgba(61,82,101,.56); text-align: center; }
.prelude-closed-note > span { display: block; width: 6px; height: 6px; margin: 0 auto 20px; border: 1px solid rgba(191,160,87,.55); border-radius: 50%; box-shadow: 0 0 14px rgba(110,182,232,.18); }
.prelude-closed-note p { font-family: var(--font-hand); font-size: 15px; }
.prelude-closed-note small { display: block; margin-top: 6px; font-size: 8px; letter-spacing: .17em; text-transform: uppercase; opacity: .56; }
.prelude-status { min-height: 1.7em; margin-top: 18px; color: rgba(73,100,121,.66); opacity: 0; transform: translateY(3px); transition: opacity .3s ease, transform .3s ease; }
.prelude-status.is-visible { opacity: 1; transform: translateY(0); }
.prelude-footer { display: flex; justify-content: space-between; margin-top: auto; padding: 84px 0 30px; border-top: 1px solid rgba(61,83,104,.1); color: rgba(70,93,113,.52); background: transparent; font-size: 8px; letter-spacing: .14em; text-transform: uppercase; }

@keyframes sky-cut-flow { 0%, 100% { opacity: .58; transform: scaleY(.98); } 50% { opacity: .9; transform: scaleY(1); } }

.decor-sky-ring { position: absolute; border: 1px solid rgba(68,145,190,.18); border-radius: 50%; }
.ring-one { width: 36vw; aspect-ratio: 1; right: -12vw; top: 8%; box-shadow: inset 0 0 70px rgba(255,255,255,.22); }
.ring-two { width: 18vw; aspect-ratio: 1; left: 6vw; bottom: 5%; border-color: rgba(169,154,203,.28); box-shadow: 0 0 70px rgba(169,154,203,.13); }
.sky-cloud { position: absolute; height: 40px; border-top: 1px solid rgba(255,255,255,.65); border-radius: 50%; transform: skewX(-25deg); }
.cloud-one { width: 420px; left: -80px; top: 29%; }.cloud-two { width: 560px; right: -110px; bottom: 25%; }
.light-particles i { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: white; box-shadow: 0 0 14px 3px white; opacity: .65; animation: float 7s ease-in-out infinite; }
.light-particles i:nth-child(1) { left: 10%; top: 23%; }.light-particles i:nth-child(2) { left: 72%; top: 17%; animation-delay: -2s; }.light-particles i:nth-child(3) { left: 90%; top: 52%; animation-delay: -4s; }.light-particles i:nth-child(4) { left: 33%; top: 77%; animation-delay: -1s; }.light-particles i:nth-child(5) { left: 59%; top: 43%; animation-delay: -5s; }

footer { display: flex; justify-content: space-between; padding: 30px clamp(24px, 5vw, 70px); color: #66758a; background: #0e1728; font-size: 9px; letter-spacing: .2em; text-transform: uppercase; }

/* 스크립트가 없으면 모든 콘텐츠가 보인다. 스크립트가 활성화된 경우만 reveal을 준비한다. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.js .reveal-delay { transition-delay: .14s; }
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

@keyframes wave { to { transform: scaleY(.45); opacity: .45; } }
@keyframes click-dot { 0%, 50%, 100% { opacity: .2; transform: scale(.7); } 20% { opacity: .8; transform: scale(1); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes float { 50% { transform: translateY(-22px); opacity: .28; } }

/* tablet */
@media (max-width: 900px) {
  :root { --space-section-y: 82px; }
  .entrance-grid, .offline-grid, .online-grid { grid-template-columns: 1fr; }
  .entrance-copy { max-width: 680px; }
  .entrance-visual { min-height: 620px; max-width: 620px; width: 100%; margin: 0 auto; }
  .portrait-placeholder { right: 8%; }
  .section-heading, .online-heading { display: block; }
  .section-heading .section-title { margin-top: 24px; text-align: left; }
  .online-heading blockquote { margin-top: 44px; text-align: left; }
  .composer-note { margin-inline: 12px; }
  .connect-signal { right: 36px; }
  .dm-archive-cluster { width: 100%; margin-top: 72px; padding-right: 8px; padding-left: 8px; }
  .dm-archive-stage { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; gap: 16px; min-height: 0; }
  .dm-scrap { transform: none; }
  .dm-timeline-tags { grid-template-columns: repeat(3,1fr); }
  .dm-timeline-start { grid-column: 1; grid-row: 1; }.dm-timeline-anchor { grid-column: 2; grid-row: 1; }.dm-timeline-transition { grid-column: 1 / 3; grid-row: 2; grid-template-columns: .8fr 1.2fr; }.dm-scrap-late { grid-column: 1 / 3; grid-row: 3; width: 82%; }
}

/* mobile */
@media (max-width: 640px) {
  :root { --space-section-y: 72px; --space-section-x: 18px; --radius-card: 22px; }
  body { word-break: normal; overflow-wrap: anywhere; }
  .archive-nav { padding: 13px 15px; }.archive-mark small { display: none; }
  .section-kicker { padding-right: 34px; font-size: 10px; letter-spacing: .1em; }.section-kicker::before { width: 22px; margin-right: 8px; }
  .section-entrance { padding-top: 92px; }
  .eyebrow { margin-top: 50px; }
  .character-name { font-size: clamp(47px, 16vw, 66px); }
  .character-alias { letter-spacing: .03em; }
  .hero-quote { margin-top: 32px; font-size: 21px; }
  .profile-intro br { display: none; }
  .theme-link { grid-template-columns: 40px auto; width: 100%; }.theme-status { display: none; }
  .entrance-visual { min-height: 530px; margin-top: 8px; }
  .portrait-placeholder { inset: 0 4% 100px; border-radius: 150px 150px 28px 28px; }
  .notification-card { right: 0; bottom: 22px; width: 94%; padding: 20px; }
  .message-body { font-size: 15px; }
  .recipient-hint { display: none; }
  .section-heading { margin-bottom: 32px; }
  .section-title { font-size: 38px; }
  .quote-card { padding: 25px 22px; font-size: 16px; line-height: 1.9; }.quote-card br { display: none; }
  .offline-grid { gap: 16px; margin-top: 16px; }
  .profile-list div { grid-template-columns: 1fr; gap: 2px; padding: 11px 0; }
  .profile-list dd { font-size: 13px; }
  .offline-description > p:not(.card-label) br { display: none; }
  .composer-note { margin: 30px 0 0 7px; padding: 31px 23px 32px 30px; }.composer-note blockquote { font-size: 16px; }.composer-note blockquote br { display: none; }
  .note-binding { gap: 30px; }
  .section-coda { margin-top: 60px; font-size: 17px; }
  .online-heading { margin-bottom: 43px; }.online-heading blockquote { margin-top: 35px; font-size: 29px; }
  .avatar-identity { gap: 15px; }.avatar-placeholder { width: 88px; }.avatar-identity h3 { font-size: 31px; }
  .connect-note { padding: 31px 24px; }.connect-note header span { display: none; }.connect-note blockquote { font-size: 16px; }.connect-note blockquote br { display: none; }
  .connect-signal { top: 32px; right: 25px; }
  .section-relation { padding-top: 96px; }
  .relation-opening { min-height: 470px; }
  .relation-quote { max-width: 720px; margin-top: 58px; font-size: clamp(36px, 7.5vw, 54px); }
  .distance-visual { grid-template-columns: 1fr; gap: 28px; margin-top: 24px; }
  .distance-scene { width: 100%; min-height: 260px; max-height: none; transform: none; }
  .distance-scene-real,
  .distance-scene-online { justify-self: stretch; width: 100%; margin-top: 0; transform: none; }
  .distance-connector { width: 100%; min-height: 64px; height: 64px; }
  .connector-wave { width: 1px; height: 64px; background: linear-gradient(to bottom, rgba(31,47,70,.22), rgba(110,182,232,.66), rgba(216,195,122,.5)); transform: none; }
  .connector-wave::before { display: none; }
  .connector-light { top: auto; right: calc(50% - 4px); bottom: -4px; }
  .relation-memory-bridge { height: 74px; margin-top: 42px; }
  .relation-memory-group { gap: 16px; }
  .relation-note-card { width: 96%; margin-top: 0; }
  .relation-memory-ribbon { width: 92%; }
  footer { display: block; text-align: center; } footer p { margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .relation-particle-burst { display: none; }
  .relation-fragment { transition: none; }
}

@media print {
  @page { size: A4; margin: 12mm; }
  :root { --space-section-y: 18mm; --space-section-x: 10mm; }
  body { color: #1f2f46; background: white; font-size: 10pt; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .archive-nav, .skip-link, .light-particles, .recipient-hint { display: none !important; }
  .section { min-height: 0; break-after: page; overflow: visible; background: #f4f7fa !important; }
  .section-entrance { color: #1f2f46; background: #e7edf3 !important; }
  .character-alias, .profile-intro, .eyebrow { color: #405269; }
  .glass-card, .quote-card, .note-card { box-shadow: none; backdrop-filter: none; background: rgba(255,255,255,.86); }
  .entrance-grid { grid-template-columns: 1fr 1fr; gap: 12mm; }
  .entrance-visual { min-height: 145mm; }
  .notification-card { color: #1f2f46; background: white; }
  .message-meta dd, .notification-top { color: #1f2f46; }
  .theme-link { color: #1f2f46; border-color: #8998a8; }
  .offline-grid, .online-grid { grid-template-columns: 1fr 1fr; }
  .js .reveal { opacity: 1; transform: none; }
  footer { color: #405269; background: white; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8pt; }
}

/* =========================================================
   Page archive experience / media slots / theme player
   ========================================================= */

:root {
  --main-portrait-position: 50% 34%;
  --offline-landscape-position: 52% 43%;
  --offline-portrait-position: 50% 34%;
  --online-landscape-position: 50% 38%;
  --online-portrait-position: 50% 34%;
  --page-transition: 760ms cubic-bezier(.22, 1, .36, 1);
}

html, body { height: 100%; }
body { overflow: hidden; }
button { font: inherit; }

.archive-mark,
.archive-nav nav button {
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}
.archive-mark { display: grid; grid-template-columns: auto auto; align-items: baseline; gap: 9px; padding: 0; text-align: left; }
.archive-nav nav { display: flex; gap: 8px; }
.archive-nav nav button { position: relative; width: 34px; height: 34px; padding: 0; border-radius: 50%; color: rgba(255,255,255,.58); font-size: 10px; transition: color .25s, background .25s; }
.archive-nav nav button:hover,
.archive-nav nav button:focus-visible,
.archive-nav nav button.is-current { color: white; background: rgba(255,255,255,.12); outline: none; }

.page-stage { position: relative; width: 100%; height: 100svh; overflow: hidden; background: var(--color-bg-deep); }
.profile-page {
  position: absolute !important;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0 !important;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(7%, 0, 0) scale(.985);
  transform-origin: 50% 50%;
  transition: opacity .5s ease, transform var(--page-transition), visibility 0s linear .76s;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.24) transparent;
}
.profile-page.is-before { transform: translate3d(-7%, 0, 0) scale(.985); }
.profile-page.is-after { transform: translate3d(7%, 0, 0) scale(.985); }
.profile-page.is-active {
  z-index: 2;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
  transition-delay: 0s;
}
.profile-page > .section-inner { padding-bottom: 116px; }

.page-controls {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: 44px auto 44px;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  color: white;
  background: rgba(10,18,31,.78);
  box-shadow: 0 14px 40px rgba(5,12,24,.28);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}
.page-arrow { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; color: white; background: rgba(255,255,255,.09); cursor: pointer; font-size: 27px; line-height: 1; transition: transform .25s, background .25s, opacity .25s; }
.page-arrow:hover:not(:disabled), .page-arrow:focus-visible:not(:disabled) { background: rgba(216,195,122,.24); transform: scale(1.06); outline: none; }
.page-arrow:disabled { opacity: .25; cursor: default; }
.page-progress { display: grid; grid-template-columns: auto auto; align-items: baseline; column-gap: 5px; min-width: 76px; text-align: center; }
.page-progress strong { font-size: 14px; letter-spacing: .12em; }
.page-progress > span { color: #9dabbc; font-size: 9px; }
.page-dots { grid-column: 1 / -1; display: flex; justify-content: center; gap: 5px; margin-top: 3px; }
.page-dots i { width: 14px; height: 2px; background: rgba(255,255,255,.2); transition: width .35s, background .35s; }
.page-dots i.is-current { width: 24px; background: var(--color-gold); }

.media-slot { position: relative; overflow: hidden; background: rgba(19,31,49,.2); }
.media-slot img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: cover; }
.media-fallback { position: absolute; z-index: 0; inset: 0; display: grid; place-items: center; padding: 20px; color: #718196; background: rgba(15,27,44,.12); font-size: 10px; letter-spacing: .04em; text-align: center; }
.media-slot.is-missing img { display: none; }

.main-portrait-slot img { object-position: var(--main-portrait-position); }
.offline-backdrop img { object-position: var(--offline-landscape-position); }
.offline-portrait-slot img { object-position: var(--offline-portrait-position); }
.online-backdrop img { object-position: var(--online-landscape-position); }
.online-portrait-slot img { object-position: var(--online-portrait-position); }

.portrait-placeholder.main-portrait-slot { background: rgba(255,255,255,.045); }
.portrait-placeholder.main-portrait-slot img { filter: saturate(.92) contrast(1.02); }
.portrait-placeholder.main-portrait-slot::after { content: ""; position: absolute; z-index: 2; inset: auto 0 0; height: 35%; pointer-events: none; background: linear-gradient(to top, rgba(9,18,32,.74), transparent); }
.portrait-placeholder.main-portrait-slot figcaption { z-index: 3; }

.landscape-card { position: relative; width: 100%; aspect-ratio: 1216 / 832; overflow: hidden; border: 1px solid rgba(255,255,255,.65); border-radius: 24px 8px 24px 8px; background: #cfd9e4; box-shadow: var(--shadow-soft); }
.landscape-card img { width: 100%; height: 100%; object-fit: cover; }
.landscape-card.is-contain img { object-fit: contain; background: #dfe7ef; }
.landscape-card::after { content: ""; position: absolute; z-index: 2; inset: 42% 0 0; pointer-events: none; background: linear-gradient(to bottom, transparent, rgba(11,25,42,.82)); }
.landscape-card figcaption { position: absolute; z-index: 3; right: 24px; bottom: 20px; left: 24px; color: white; text-shadow: 0 2px 14px rgba(5,16,30,.5); }
.landscape-card figcaption small,
.landscape-card figcaption strong { display: block; }
.landscape-card figcaption small { margin-bottom: 5px; color: rgba(255,255,255,.72); font-size: 9px; font-weight: 700; letter-spacing: .18em; }
.landscape-card figcaption strong { max-width: 560px; font-size: clamp(15px, 1.7vw, 20px); line-height: 1.55; }
.offline-landscape-card img { object-position: var(--offline-landscape-position); }
.online-landscape-card { background: #cdeafa; }
.online-landscape-card img { object-position: var(--online-landscape-position); }
.online-landscape-card::after { background: linear-gradient(to bottom, transparent, rgba(24,72,103,.78)); }

.profile-card-with-media { padding: 28px; }
.profile-media-layout { display: grid; grid-template-columns: minmax(200px, .8fr) 1.2fr; align-items: start; gap: 24px; margin-top: 18px; }
.profile-portrait { width: 100%; min-height: 0; aspect-ratio: 3 / 4; align-self: start; border: 1px solid rgba(74,95,119,.2); border-radius: 18px 5px 18px 5px; }
.profile-media-layout .profile-list { margin-top: 0; }

.avatar-profile-group { display: grid; grid-template-columns: minmax(180px, .72fr) 1.28fr; align-items: start; gap: 18px; }
.online-portrait { width: 100%; min-height: 0; aspect-ratio: 3 / 4; align-self: start; border: 1px solid rgba(73,141,183,.24); border-radius: 90px 18px 28px 18px; background: rgba(255,255,255,.42); box-shadow: var(--shadow-soft); }
.online-portrait img { filter: saturate(.95); }
.avatar-profile-group .avatar-card { min-width: 0; }
.avatar-profile-group .avatar-identity { margin-top: 36px; }
.online-grid { grid-template-columns: minmax(0, 1.34fr) minmax(340px, .66fr); gap: 34px; }

.theme-player { display: inline-flex; flex-direction: column; gap: 9px; min-width: 250px; margin-top: 34px; padding: 14px 17px; border: 1px solid rgba(255,255,255,.2); border-radius: 18px; color: white; background: rgba(255,255,255,.075); box-shadow: var(--shadow-card); backdrop-filter: blur(18px); }
.theme-play-button { display: inline-grid; grid-template-columns: 38px auto; align-items: center; gap: 12px; min-height: 44px; padding: 0; border: 0; color: inherit; background: transparent; cursor: pointer; text-align: left; }
.theme-player-icon { grid-column: 1; grid-row: 1; display: grid; place-items: center; width: 38px; height: 38px; padding-left: 2px; border-radius: 50%; color: var(--color-bg-deep); background: linear-gradient(135deg, var(--color-sky-deep), var(--color-gold)); font-size: 12px; }
.pause-icon { display: none; padding-left: 0; }
.theme-player.is-playing .play-icon { display: none; }
.theme-player.is-playing .pause-icon { display: grid; }
.theme-text { grid-column: 2; }
.theme-text small, .theme-text strong { display: block; }
.theme-text small { color: #aebed0; font-size: 9px; letter-spacing: .18em; text-transform: uppercase; }
.theme-text strong { margin-top: 2px; font-size: 15px; letter-spacing: .04em; }
.theme-progress { width: 100%; height: 4px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.12); }
.theme-progress-bar { display: block; width: 0%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #7898bb, var(--color-gold)); transition: width .2s ease; }
.theme-time { margin: 0; color: #9eacbd; font-size: 10px; font-variant-numeric: tabular-nums; }
.theme-player-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.theme-volume { display: flex; align-items: center; gap: 8px; }
.theme-mute-button { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; color: inherit; background: rgba(255,255,255,.06); cursor: pointer; font-size: 12px; line-height: 1; }
.theme-mute-button:hover,
.theme-mute-button:focus-visible { border-color: rgba(216,195,122,.65); background: rgba(216,195,122,.14); outline: none; }
.theme-volume-slider { width: 86px; height: 18px; margin: 0; accent-color: var(--color-gold); cursor: pointer; }
.theme-player.is-error { opacity: .58; }
.theme-player.is-error .theme-play-button,
.theme-player.is-error .theme-mute-button,
.theme-player.is-error .theme-volume-slider { cursor: not-allowed; }

@media (max-width: 1100px) {
  .avatar-profile-group { grid-template-columns: minmax(160px, .6fr) 1.4fr; }
}

@media (max-width: 900px) {
  .profile-page > .section-inner { padding-bottom: 130px; }
  .offline-story-grid { grid-template-columns: 1fr; }
  .profile-media-layout { grid-template-columns: minmax(180px, .66fr) 1.34fr; }
  .avatar-profile-group { grid-template-columns: minmax(180px, .6fr) 1.4fr; }
  .online-grid { grid-template-columns: 1fr; }
  .prelude-chapters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .prelude-chapters li:nth-child(3)::after { display: none; }
}

@media (max-width: 640px) {
  .archive-nav nav { gap: 2px; }
  .archive-nav nav button { width: 30px; height: 30px; }
  .profile-page > .section-inner { padding-bottom: 124px; }
  .page-controls { grid-template-columns: 42px auto 42px; bottom: max(12px, env(safe-area-inset-bottom)); }
  .page-arrow { width: 42px; height: 42px; }
  .theme-player { width: 100%; min-width: 0; }
  .theme-player-footer { align-items: flex-end; }
  .theme-volume-slider { width: 104px; }
  .landscape-card { border-radius: 18px 6px 18px 6px; }
  .landscape-card figcaption { right: 18px; bottom: 16px; left: 18px; }
  .offline-opening br,
  .connect-note blockquote br { display: block; }
  .profile-media-layout { grid-template-columns: 1fr; }
  .profile-portrait { width: min(72%, 270px); min-height: 0; margin: 0 auto; }
  .avatar-profile-group { grid-template-columns: 1fr; }
  .online-portrait { width: min(76%, 300px); min-height: 0; margin: 0 auto; border-radius: 70px 16px 24px 16px; }
  .avatar-profile-group .avatar-card { padding: 26px 22px; }
  .section-relation { padding: 92px 18px 128px; }
  .relation-margin-fragments { inset: 0 -8px; }
  .relation-fragment { min-height: 24px; padding: 7px 4px; font-size: 7px; letter-spacing: .08em; opacity: .38; }
  .relation-fragment::before { width: 7px; margin-right: 4px; }
  .relation-fragment:nth-child(1), .relation-fragment:nth-child(3) { left: 0; }
  .relation-fragment:nth-child(2), .relation-fragment:nth-child(4) { right: 6px; }
  .dm-archive-cluster { margin-top: 58px; padding: 0 0 28px; }
  .dm-archive-heading { display: block; margin: 0 4px 18px; }
  .dm-archive-heading h3 { margin-top: 8px; font-size: 18px; }
  .dm-archive-stage { display: grid; grid-template-columns: 1fr; gap: 14px; padding-top: 46px; }
  .dm-timeline-tags { grid-template-columns: repeat(3,1fr); right: 4px; left: 4px; gap: 6px; font-size: 6px; }
  .dm-timeline-start, .dm-timeline-anchor, .dm-timeline-transition, .dm-scrap-late { grid-column: 1; grid-row: auto; }
  .dm-timeline-start, .dm-timeline-transition { display: grid; grid-template-columns: 1fr; gap: 12px; }
  .dm-scrap { padding: 17px 17px; }
  .dm-scrap-first { width: 88%; justify-self: start; transform: rotate(-.35deg); }.dm-scrap-checkin { width: 91%; justify-self: end; transform: rotate(.25deg); }.dm-scrap-rain { width: 97%; min-height: 0; justify-self: center; padding: 22px 21px; transform: none; }.dm-scrap-unsent { width: 86%; justify-self: end; transform: rotate(.35deg); }.dm-voice-transition { width: 88%; justify-self: start; }.dm-scrap-late { display: block; width: 94%; min-height: 0; justify-self: start; transform: none; }
  .dm-scrap blockquote { font-size: 14px; }.dm-scrap-rain blockquote { font-size: 16px; }
  .dm-archive-thread { bottom: -32px; height: 54px; }
  .dm-archive-cluster + .relation-memory-bridge { margin-top: 12px; }
  .relation-room-haze { left: -32%; top: 16%; width: 90%; height: 28%; }
  .relation-sky-haze { right: -42%; top: 4%; width: 100%; height: 34%; }
  .relation-pencil-lines { width: 62%; bottom: 22%; }
  .sky-cut-line { right: 3%; left: auto; width: 54px; opacity: .38; transform: rotate(1deg); }
  .relation-opening { min-height: 510px; }
  .section-relation .section-kicker { max-width: 78%; line-height: 1.8; }
  .relation-quote { margin-top: 66px; font-size: 35px; line-height: 1.55; }
  .relation-opening-mark { width: 64%; margin-top: 46px; }
  .distance-scene { min-height: 220px; border-radius: 18px; }
  .distance-scene-label { left: 18px; bottom: 15px; }
  .distance-scene-real,
  .distance-scene-online { width: 100%; }
  .distance-connector { min-height: 64px; height: 64px; }
  .relation-memory-bridge { height: 64px; margin: 34px auto 14px; }
  .relation-memory-group { gap: 14px; }
  .relation-note-card { width: calc(100% - 6px); margin-top: 0; padding: 38px 25px 42px 30px; }
  .relation-note-card .note-body { margin-top: 25px; font-size: 16px; line-height: 2; }
  .relation-note-card .note-body p + p { margin-top: 27px; }
  .relation-note-card blockquote { margin-top: 31px; padding-left: 17px; font-size: 19px; }
  .relation-note-tape { left: 9%; width: 82px; }
  .relation-memory-ribbon { width: 100%; border-radius: 0 0 18px 18px; }
  .relation-memory-inner { padding: 6px 7px 16px; }
  .relation-memory-svg { height: 92px; }
  .relation-note-buttons { inset: 6px 7px 34px; }
  .memory-note-hitbox { width: 34px; height: 34px; }
  .relation-memory-hint { margin-right: 6px; margin-left: 6px; font-size: 11px; }
  .relation-footer { margin: 24px 0 -104px; padding-bottom: 26px; }
  .section-prelude { padding: 92px 18px 128px; }
  .section-prelude::before { right: -54px; bottom: -28px; font-size: 260px; }
  .prelude-file-edge { right: -48px; opacity: .45; }
  .prelude-inner { min-height: calc(100svh - 92px); }
  .prelude-opening { width: 100%; }
  .section-prelude .section-kicker { max-width: 88%; line-height: 1.8; }
  .prelude-overline { margin-top: 54px; }
  .prelude-opening h2 { margin-top: 10px; font-size: 30px; line-height: 1.5; }
  .prelude-lead { margin-top: 20px; font-size: 17px; }
  .prelude-score-board { margin-top: 50px; padding: 22px 2px 26px 20px; }
  .prelude-score-board::before { inset: 0 -8px; }
  .prelude-score-board::after { content: ""; position: absolute; z-index: 1; top: 42px; bottom: 42px; left: 31px; width: 1px; background: linear-gradient(to bottom, transparent, rgba(76,102,123,.28) 9%, rgba(76,102,123,.28) 91%, transparent); }
  .prelude-staff { display: none; }
  .prelude-chapters { grid-template-columns: 1fr; gap: 10px; }
  .prelude-chapters li::after,
  .prelude-chapters li:nth-child(3)::after { display: none; }
  .prelude-chapters button { min-height: 78px; padding: 15px 16px 15px 50px; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; align-content: center; gap: 2px 12px; }
  .prelude-chapters button > span { position: absolute; top: 50%; left: 4px; width: 42px; font-size: 6px; letter-spacing: .04em; text-align: center; transform: translateY(-50%); }
  .prelude-chapters strong { grid-column: 1; grid-row: 1 / 3; align-self: center; font-size: 15px; }
  .prelude-chapters small { grid-column: 2; grid-row: 1 / 3; align-self: center; }
  .prelude-closed-note { margin-top: 46px; }
  .prelude-footer { margin-top: 72px; padding: 26px 0 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .profile-page { transition: none; }
  .theme-progress-bar { transition: none; }
}

@media print {
  body { overflow: visible; }
  .page-stage { height: auto; overflow: visible; }
  .profile-page { position: relative !important; inset: auto; height: auto; overflow: visible; opacity: 1; visibility: visible; pointer-events: auto; transform: none; break-after: page; }
  .profile-page[aria-hidden="true"] { display: block; }
  .page-controls { display: none !important; }
  .theme-player { color: #1f2f46; border-color: #8998a8; background: white; }
}
