/* Pattern Rumble 소개 페이지. 톤: "재단사의 견본첩".
   바탕은 표백하지 않은 리넨, 글자와 선은 진갈색. 채도 높은 색은 실 빨강 하나뿐이고 바늘땀·단추·밑줄에만 조금 쓴다.
   마을 색은 핀으로 꽂은 견본 조각(로고 아래의 천 조각)으로만 보여 주고, 화면에서 선명한 색은 인형 그림뿐이다.
   장치: 구역이 들어올 때 바늘이 이음매를 따라 빨간 실 한 줄을 꿰어 간다(landing.js가 --p를 준다). */
@font-face { font-family: "Pretendard"; src: url("/fonts/pretendard-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Pretendard"; src: url("/fonts/pretendard-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Pretendard"; src: url("/fonts/pretendard-black.woff2") format("woff2"); font-weight: 900; font-display: swap; }
:root {
  --ink: #3b2516; --ink2: #2a1a0f; --line: rgba(59, 37, 22, .55);
  --linen: #f4ecdf; --linen2: #ebe1cf; --linen3: #ddd0b9; --paper: #faf5ec;
  --red: #c4302b;
  --sans: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 60px; overflow-x: hidden; overflow-x: clip; }
body { margin: 0; background: var(--linen); color: var(--ink); font: 500 17px/1.7 var(--sans); letter-spacing: -.01em; word-break: keep-all; overflow-wrap: anywhere; overflow-x: hidden; overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--red); text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
b { font-weight: 700; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--ink); color: var(--linen); padding: 8px 12px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* ── 바탕: 리넨과 진갈색, 마을 무늬는 바탕보다 살짝 어두운 톤온톤 ── */
.bg-ivory, .bg-ink, .bg-stripe, .bg-dot, .bg-check, .bg-flower, .bg-spot { position: absolute; inset: 0; }
.bg-ivory { background-color: var(--linen); }
.bg-ink { background-color: var(--ink); }
.bg-stripe { background: repeating-linear-gradient(90deg, #ebe1ce 0 56px, var(--linen) 56px 112px); }
.bg-dot { background: radial-gradient(circle, #e7dcc7 0 13px, transparent 14px) 0 0 / 76px 76px, radial-gradient(circle, #e7dcc7 0 13px, transparent 14px) 38px 38px / 76px 76px, var(--linen); }
.bg-check { background: linear-gradient(90deg, rgba(130, 95, 60, .07) 50%, transparent 50%) 0 0 / 84px 84px, linear-gradient(rgba(130, 95, 60, .07) 50%, transparent 50%) 0 0 / 84px 84px, var(--linen); }
.bg-flower { background: url("/img/tex/flower.svg") 0 0 / 200px 200px, var(--linen); }
.bg-spot { background: url("/img/tex/spot.svg") 0 0 / 210px 210px, var(--linen); }
/* 리넨의 결 */
.under::after, .lay::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(80, 55, 30, .035) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(80, 55, 30, .03) 0 1px, transparent 1px 4px); }
.bg-ink::after { background: repeating-linear-gradient(0deg, rgba(255, 240, 220, .025) 0 1px, transparent 1px 3px); }

/* ── 이름표·카드: 얇은 선 + 안쪽 가는 바늘땀 ── */
.boss, .label, .frame, .sheet { border: 1.5px solid var(--ink); position: relative; }
.boss::after, .label::after, .frame::after, .sheet::after { content: ""; position: absolute; inset: 6px; pointer-events: none; border: 1.5px dashed var(--line); border-radius: inherit; z-index: 4; }

/* ── 큰 글자: 진갈색 단색, 굵고 좁게 ── */
.big { font-family: var(--sans); font-weight: 900; margin: 0; line-height: 1.02; letter-spacing: -.055em; font-size: clamp(3.4rem, 17vw, 8.4rem); color: var(--ink); }
.big-ink { color: var(--ink); }
.big-mid { font-size: clamp(2.6rem, 12vw, 5.6rem); }
.big-light { color: var(--linen); }
.sub { margin: 12px 0 0; font-weight: 700; font-size: clamp(1.1rem, 4.6vw, 1.5rem); letter-spacing: -.02em; color: var(--ink); }
.sub::before { content: ""; display: inline-block; width: 28px; height: 0; border-top: 2px dashed var(--red); vertical-align: middle; margin-right: 10px; }
.sub-light { color: var(--linen); }
.say { margin: 18px 0 0; max-width: 30em; font-size: 1.08rem; line-height: 1.7; }
.say-dark, .say-light { color: var(--linen); }
.tag { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 7px 14px 8px; background: var(--paper); color: var(--ink); border: 1.5px solid var(--ink); border-radius: 3px; font-weight: 700; font-size: 1rem; line-height: 1.3; }
.tag-beta::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--red); flex: none; }
.tag-v { background: var(--paper); }

/* ── 위 띠: 리넨 바탕, 아래 가는 선 ── */
.topbar { position: fixed; left: 0; right: 0; top: 0; z-index: 100; height: 60px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 20px;
  background: rgba(244, 236, 223, .96); border-bottom: 1px solid var(--ink); }
.topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; border-top: 1px dashed var(--line); }
.tb-links { display: flex; gap: 22px; }
.tb-links a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1rem; }
.tb-links a:hover, .tb-links a.on { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.tb-logo { display: block; }
.tb-logo img { height: 46px; width: auto; }
.tb-tag { justify-self: end; margin: 0; font-weight: 700; font-size: .95rem; display: flex; align-items: center; gap: 8px; }
.tb-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
@media (max-width: 760px) { .tb-links, .tb-tag { display: none; } .topbar { grid-template-columns: 1fr; justify-items: center; } }

/* ── 구역 공통 ── */
.scr { position: relative; min-height: 100svh; overflow: hidden; overflow: clip; display: flex; flex-direction: column; justify-content: center; padding: 104px 22px 92px; isolation: isolate; }
.scr > .in { position: relative; z-index: 3; width: 100%; max-width: 1120px; margin: 0 auto; }
.under, .lay { z-index: 0; }
/* 이음매: 바늘이 빨간 실 한 줄을 꿰어 간다 */
.seam { position: absolute; left: 0; top: 10px; height: 2px; z-index: 4; width: calc(var(--p, 1) * 100%); background: repeating-linear-gradient(90deg, var(--red) 0 12px, transparent 12px 20px); }
.seam::after { content: ""; position: absolute; right: -40px; top: -5px; width: 46px; height: 12px; opacity: var(--ro, 0);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 12'%3E%3Cpath d='M2 6 L36 3.6 Q44 6 36 8.4 Z' fill='%23d9dde0' stroke='%233b2516' stroke-width='1'/%3E%3Cellipse cx='8' cy='6' rx='3.6' ry='1.1' fill='%233b2516'/%3E%3C/svg%3E") center / contain no-repeat; }
.no-js .seam::after { display: none; }

/* ── 1. 첫 화면 ── */
.hero { position: relative; height: 100svh; min-height: 620px; overflow: hidden; background: var(--linen); }
.hero-art { position: absolute; inset: 0; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; transform: scale(1.03); transform-origin: 50% 70%; will-change: transform; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(244, 236, 223, .97) 0%, rgba(244, 236, 223, .9) 26%, rgba(244, 236, 223, 0) 46%), linear-gradient(0deg, rgba(244, 236, 223, .9) 0%, rgba(244, 236, 223, 0) 18%); }
.hero-copy { position: absolute; z-index: 2; inset: 74px 0 0; display: flex; flex-direction: column; align-items: center; padding: 0 16px; pointer-events: none; }
.hero-copy > * { pointer-events: auto; }
.logo { margin: 0; width: min(86vw, 520px); }
.logo img { width: 100%; }
.tagline { margin: 6px 0 0; font-weight: 700; font-size: 1.12rem; line-height: 1.5; text-align: center; color: var(--ink); }
.hero .tag-beta { position: absolute; bottom: 26px; }
@media (min-aspect-ratio: 1/1) {
  .hero::before { background: linear-gradient(90deg, rgba(244, 236, 223, 0) 40%, rgba(244, 236, 223, .9) 62%, rgba(244, 236, 223, .97) 100%); }
  .hero-art img { object-position: 30% 55%; }
  .hero-copy { left: auto; right: 4vw; width: 40vw; inset-block: 0; justify-content: center; }
  .logo { width: 36vw; max-width: 600px; }
  .tagline { font-size: 1.3rem; }
  .hero .tag-beta { position: static; margin-top: 22px; }
}

/* ── 2. 무늬 띠: 진갈색 글자와 견본 조각이 간격을 두고 흐른다 ── */
.band { position: relative; z-index: 5; background: var(--paper); border-block: 1px solid var(--ink); overflow: hidden; }
.band::before, .band::after { content: ""; position: absolute; left: 0; right: 0; border-top: 1px dashed var(--line); z-index: 1; }
.band::before { top: 5px; } .band::after { bottom: 5px; }
.band-track { display: flex; width: max-content; animation: band 48s linear infinite; padding: 16px 0; }
.mq { display: inline-flex; align-items: center; gap: 14px; padding: 0 34px; }
.mq img { width: 40px; height: auto; }
.mq b { font-weight: 900; font-size: 1.5rem; letter-spacing: -.04em; color: var(--ink); }
@keyframes band { to { transform: translateX(-50%); } }

/* ── 이야기 (만화 컷) ── */
.scr-story { background: var(--linen); padding-top: 120px; justify-content: flex-start; }
.scr-story > .in { margin-bottom: 30px; }
.manga { position: relative; z-index: 3; width: 100%; max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cut { position: relative; margin: 0; }
.cut-f { height: 100%; filter: drop-shadow(1.5px 0 0 var(--ink)) drop-shadow(-1.5px 0 0 var(--ink)) drop-shadow(0 1.5px 0 var(--ink)) drop-shadow(0 -1.5px 0 var(--ink)); }
.cut-img { height: 100%; overflow: hidden; background: var(--linen2); }
.cut-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 6s ease-out; }
.cut.in-view .cut-img img { transform: scale(1.05); }
.cut figcaption { position: absolute; z-index: 2; left: 10px; bottom: 12px; max-width: calc(100% - 20px); padding: 7px 11px 8px; background: var(--paper); border: 1px solid var(--ink); border-radius: 2px;
  font-weight: 700; font-size: 1rem; line-height: 1.45; letter-spacing: -.02em; }
.c1 { grid-column: 1 / -1; height: 62svh; } .c1 .cut-img { clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%); }
.c2 { height: 46svh; margin-top: -3svh; } .c2 .cut-img { clip-path: polygon(0 7%, 100% 0, 94% 100%, 0 100%); }
.c3 { height: 46svh; margin-top: -6svh; } .c3 .cut-img { clip-path: polygon(7% 0, 100% 0, 100% 100%, 0 100%); } .c3 img { object-position: 38% 50%; }
.c4 { height: 48svh; } .c4 .cut-img { clip-path: polygon(0 0, 100% 0, 93% 100%, 0 96%); }
.c5 { height: 48svh; } .c5 .cut-img { clip-path: polygon(7% 0, 100% 3%, 100% 100%, 0 100%); } .c5 img { object-position: 50% 50%; }
.c6 { grid-column: 1 / -1; height: 42svh; } .c6 .cut-img { clip-path: polygon(0 6%, 100% 0, 100% 100%, 0 100%); }
.c3 figcaption, .c5 figcaption { left: 14px; }
.c6 figcaption { left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--linen); font-size: 1.15rem; white-space: nowrap; }
.js .cut { opacity: 0; transform: translateY(30px); transition: opacity .7s, transform .9s cubic-bezier(.2, .8, .2, 1); }
.js .cut.in-view { opacity: 1; transform: none; }
@media (min-width: 900px) {
  .manga { grid-template-columns: repeat(12, 1fr); gap: 16px; padding: 0 24px; }
  .c1, .c2, .c3, .c4, .c5, .c6 { height: 50vh; margin-top: 0; }
  .c1 { grid-column: 1 / 6; } .c2 { grid-column: 6 / 9; } .c3 { grid-column: 9 / 13; }
  .c4 { grid-column: 1 / 4; } .c5 { grid-column: 4 / 9; } .c6 { grid-column: 9 / 13; }
  .c1 .cut-img { clip-path: polygon(0 0, 100% 0, 94% 100%, 0 100%); } .c2 .cut-img { clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%); }
  .c3 .cut-img { clip-path: polygon(6% 0, 100% 0, 100% 100%, 0 100%); } .c4 .cut-img { clip-path: polygon(0 0, 100% 0, 91% 100%, 0 100%); }
  .c5 .cut-img { clip-path: polygon(9% 0, 100% 0, 95% 100%, 0 100%); } .c6 .cut-img { clip-path: polygon(5% 0, 100% 0, 100% 100%, 0 100%); }
  .scr-story > .in { display: flex; align-items: baseline; gap: 28px; } .scr-story .sub { margin: 0; }
}

/* ── 3. 무지 (진갈색 화면에 리넨 띠) ── */
.scr-muji .in { display: grid; justify-items: center; text-align: center; }
.muji-slab { position: absolute; left: -20%; right: -20%; top: 24%; height: 50%; background: var(--linen); transform: rotate(-6deg); z-index: -1; }
.muji-slab::before, .muji-slab::after { content: ""; position: absolute; left: 0; right: 0; border-top: 2px dashed var(--red); }
.muji-slab::before { top: 10px; } .muji-slab::after { bottom: 10px; border-top-color: var(--line); }
.muji-big { height: 54svh; width: auto; margin: 18px 0 6px; }
.js .scr-muji .muji-big { transform: translateY(40px); opacity: 0; transition: transform 1s cubic-bezier(.2, .8, .2, 1), opacity .5s; }
.js .scr-muji.in-view .muji-big { transform: none; opacity: 1; }
.scr-muji .muji-copy { display: contents; }
.scr-muji .big { order: -1; color: var(--linen); }
.scr-muji .say { color: var(--linen); }
@media (min-width: 900px) {
  .scr-muji .in { grid-template-columns: 1fr 1fr; text-align: left; justify-items: start; align-items: center; }
  .scr-muji .muji-copy { display: block; }
  .scr-muji .big { color: var(--ink); }
  .scr-muji .say { color: var(--ink); font-size: 1.15rem; max-width: 24em; }
  .muji-slab { top: 16%; height: 68%; transform: rotate(-3deg); }
  .muji-big { height: 72vh; justify-self: center; }
}

/* ── 4. 다섯 마을: 방 이름 + 마을 이름 + 소개 두 문장 + 덮친 얼룩 ── */
.scr-v .in { display: flex; flex-direction: column; align-items: stretch; }
.v-text { max-width: 32em; }
.v-tag { display: flex; align-items: center; gap: 12px; }
.v-sw { width: 50px; height: auto; transform: rotate(-6deg); filter: drop-shadow(0 2px 2px rgba(59, 37, 22, .2)); }
.v-room { margin: 0; padding: 4px 12px 5px; background: var(--paper); border: 1px solid var(--ink); border-radius: 2px; font-weight: 700; font-size: 1rem; }
.v-title { margin: 14px 0 0; font-weight: 900; font-size: clamp(2.7rem, 13vw, 5rem); line-height: 1.05; letter-spacing: -.055em; }
.v-intro { margin: 14px 0 0; font-size: 1.1rem; line-height: 1.8; }
.v-intro b { font-weight: 900; text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.v-stain { margin: 14px 0 0; display: flex; gap: 10px; align-items: flex-start; font-size: 1rem; line-height: 1.6; color: #5e4634; }
.v-stain b { color: var(--ink); margin-right: 4px; }
.st-dot { flex: none; width: 18px; height: 15px; margin-top: 5px; border-radius: 55% 45% 60% 40% / 50% 60% 40% 50%; }
.st-stripe { background: #6b4a2c; } .st-check { background: #a8322a; } .st-spot { background: #2b2d4a; } .st-flower { background: #7a5434; }
.v-dot .st-dot { background: #8a7a3a; }
.stage { position: relative; width: min(100%, 560px); aspect-ratio: 1 / 1.02; margin: 18px auto 0; }
.doll { all: unset; position: absolute; left: var(--x); bottom: var(--b); width: var(--w); z-index: var(--z); cursor: pointer; -webkit-tap-highlight-color: transparent; transform-origin: 50% 100%; }
.doll img { width: 100%; height: auto; filter: drop-shadow(0 6px 6px rgba(59, 37, 22, .22)); transition: transform .3s cubic-bezier(.3, 1.4, .5, 1); }
.doll:hover img, .doll.on img { transform: translateY(-5%); }
.doll:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.js .scr-v .doll { opacity: 0; transform: translateY(18%); transition: transform .8s cubic-bezier(.2, .8, .2, 1) var(--d), opacity .5s var(--d); }
.js .scr-v.in-view .doll { opacity: 1; transform: none; }
.names { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip { all: unset; box-sizing: border-box; cursor: pointer; display: inline-block; padding: 5px 12px 6px; border: 1px solid var(--ink); border-radius: 2px; background: var(--paper); font-weight: 700; font-size: 1rem; color: var(--ink); }
.chip:hover { text-decoration: underline; text-decoration-color: var(--red); }
.chip.on { background: var(--ink); color: var(--linen); }
.nojs-line { display: none; }
.no-js .names { display: block; text-align: left; background: var(--paper); border: 1px solid var(--ink); padding: 12px 16px; }
.no-js .names li { margin: 4px 0; } .no-js .nojs-line { display: inline; }
@media (min-width: 900px) {
  .scr-v .in { display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; column-gap: 56px; }
  .scr-v .v-text { grid-column: 1; grid-row: 1; align-self: end; }
  .scr-v .names { grid-column: 1; grid-row: 2; justify-content: flex-start; align-self: start; margin-top: 22px; }
  .stage { grid-column: 2; grid-row: 1 / 3; width: 100%; max-width: 620px; }
}
}

/* ── 인형 이름표 ── */
.sheet { position: fixed; z-index: 120; left: 10px; right: 10px; bottom: 10px; max-width: 520px; margin: 0 auto; border-radius: 4px; background: var(--paper); padding: 16px 18px 18px 130px; min-height: 148px;
  box-shadow: 0 10px 30px rgba(42, 26, 15, .25); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.sheet[hidden] { display: block; transform: translateY(140%); visibility: hidden; transition: transform .25s ease-in, visibility 0s .25s; }
.sheet-sprite { position: absolute; left: 12px; bottom: 12px; width: 108px; height: 132px; }
.sheet-v { margin: 0; font-size: .95rem; font-weight: 700; color: var(--red); }
.sheet-name { margin: 2px 0 2px; font-weight: 900; font-size: 2rem; line-height: 1.1; letter-spacing: -.05em; }
.sheet-role { margin: 0; font-weight: 700; }
.sheet-line { margin: 2px 0 0; font-size: 1rem; line-height: 1.55; }
.sheet-x { all: unset; position: absolute; right: 12px; top: 8px; z-index: 5; width: 38px; height: 38px; display: grid; place-items: center; cursor: pointer; font-size: 1.7rem; line-height: 1; color: var(--ink); }

/* ── 그림 벽 (리넨 바탕, 얇은 틀) ── */
.scr-wall { background: var(--linen2); justify-content: flex-start; padding-top: 110px; }
.scr-wall .big-light { color: var(--ink); } .scr-wall .sub-light { color: var(--ink); }
.scr-wall > .in { margin-bottom: 28px; }
.wall { position: relative; z-index: 3; width: 100%; max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 23vw; grid-auto-flow: dense; gap: 8px; }
.wt { position: relative; border: 1px solid var(--ink); border-radius: 3px; overflow: hidden; background: var(--paper); }
.wt.r { background: #efe5d3; }
.wt img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.wt.d img { object-position: 50% 8%; transform: scale(1.12); transform-origin: 50% 0; }
.wt:hover img { transform: scale(1.18); }
.wt.w2 { grid-column: span 2; } .wt.h2 { grid-row: span 2; }
.js .wt { opacity: 0; transition: opacity .7s; }
.js .scr-wall.in-view .wt { opacity: 1; }
.js .scr-wall.in-view .wt:nth-child(3n+1) { transition-delay: .05s; } .js .scr-wall.in-view .wt:nth-child(3n+2) { transition-delay: .2s; } .js .scr-wall.in-view .wt:nth-child(3n) { transition-delay: .35s; }
@media (min-width: 900px) { .wall { grid-template-columns: repeat(8, 1fr); grid-auto-rows: 140px; padding: 0 24px; } .scr-wall > .in { display: flex; align-items: baseline; gap: 28px; } .scr-wall .sub { margin: 0; } }

/* ── 5. 꼬질단 (진갈색) ── */
.scr-foes { background: radial-gradient(ellipse 60% 30% at 20% 30%, rgba(110, 70, 40, .25), transparent 70%), var(--ink2); padding-top: 130px; justify-content: flex-start; }
.drip { position: absolute; left: 0; top: -1px; width: 100%; height: 90px; z-index: 2; }
.drip path { fill: var(--linen2); }
.scr-foes .big { color: var(--linen); }
.bosses { position: relative; z-index: 3; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 26px 22px 30px; margin: 10px -22px 0; scrollbar-width: none; overscroll-behavior-x: contain; }
.bosses::-webkit-scrollbar { display: none; }
.boss { flex: 0 0 min(80vw, 360px); scroll-snap-align: center; background: var(--paper); border-radius: 4px; padding: 18px 20px 22px; border-color: var(--linen3); }
.boss-art { height: 240px; display: flex; align-items: flex-end; justify-content: center; border-bottom: 1px solid var(--linen3); margin-bottom: 12px; }
.boss-art img { max-height: 228px; width: auto; }
.boss-room { margin: 0; display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .95rem; color: #8a6a52; }
.boss-room span { font-weight: 900; color: var(--red); }
.boss h3 { margin: 2px 0 4px; font-weight: 900; font-size: 1.8rem; line-height: 1.15; letter-spacing: -.05em; }
.boss p { margin: 0; }
.boss-nav { position: relative; z-index: 3; display: none; justify-content: center; gap: 12px; }
.boss-nav button { all: unset; cursor: pointer; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: var(--linen); font-size: 1.9rem; line-height: 1; border: 1.5px solid var(--linen); }
.boss-nav button:hover { border-color: var(--red); color: var(--red); }
.js .boss-nav { display: flex; }
@media (max-width: 760px) { .js .boss-nav { display: none; } }

/* ── 6. 놀이 ── */
.scr-play .in { display: grid; }
.p-ink .big { color: var(--linen); }
.p-ink .say { color: var(--linen); }
.scr-play .tag-v { justify-self: start; margin-bottom: 16px; }
.frame { margin-top: 26px; width: 100%; max-width: 560px; aspect-ratio: 1 / 1; border-radius: 4px; overflow: hidden; background: #d9b98c; }
.p-ink .frame { border-color: var(--linen3); }
.scene-box canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.scene-still { position: absolute; left: 50%; bottom: 10%; height: 70%; width: auto; transform: translateX(-50%); }
.scene-box.live .scene-still { display: none; }
@media (min-width: 900px) {
  .scr-play .in { grid-template-columns: 1fr 1fr; column-gap: 64px; align-items: center; }
  .scr-play .tag-v, .scr-play .big, .scr-play .say { grid-column: 1; }
  .frame { grid-column: 2; grid-row: 1 / span 4; margin: 0; }
}

/* ── 7. 약속: 옷 꼬리표 두 장 ── */
.scr-promise .in { display: grid; gap: 30px; justify-items: center; }
.label { width: min(100%, 520px); min-height: 32svh; background: var(--paper); border-radius: 3px 3px 14px 14px; padding: 54px 26px 32px; text-align: center; display: flex; flex-direction: column; justify-content: center; border-color: var(--linen3); }
.label:nth-child(2) { transform: rotate(-1.5deg); } .label:nth-child(3) { transform: rotate(1.2deg); }
.label-hole { position: absolute; left: 50%; top: 16px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px var(--linen3); }
.label-hole::before { content: ""; position: absolute; left: 7px; bottom: 14px; width: 1.5px; height: 34px; background: var(--red); }
@media (min-width: 900px) { .label-hole::before { height: 120px; } }
.label-k { margin: 0; font-weight: 700; color: var(--red); font-size: 1rem; }
.label h3 { margin: 6px 0 10px; font-weight: 900; font-size: clamp(2.6rem, 12vw, 4.2rem); line-height: 1.05; letter-spacing: -.055em; color: var(--ink); }
.label p { margin: 0; }
.js .label { opacity: 0; transform: translateY(-24px); transform-origin: 50% 0; transition: opacity .6s, transform 1s cubic-bezier(.2, .8, .2, 1); }
.js .scr-promise.in-view .label:nth-child(2) { opacity: 1; transform: rotate(-1.5deg); }
.js .scr-promise.in-view .label:nth-child(3) { opacity: 1; transform: rotate(1.2deg); transition-delay: .2s; }
@media (min-width: 900px) { .scr-promise .in { grid-template-columns: 1fr 1fr; } .label { min-height: 52vh; } }

/* ── 8. 맺음 (리넨) ── */
.scr-end .in { display: flex; flex-direction: column; align-items: center; text-align: center; }
.end-logo { width: min(86vw, 500px); }
.end-muji { height: 30svh; width: auto; margin: 10px 0 18px; }
.js .scr-end .end-muji { transform: translateY(30px); opacity: 0; transition: transform .9s cubic-bezier(.2, .8, .2, 1), opacity .5s; }
.js .scr-end.in-view .end-muji { transform: none; opacity: 1; }
.tag-big { white-space: nowrap; font-size: clamp(1rem, 4.6vw, 1.25rem); padding: 10px 18px; }
.scr-end .say { font-size: 1.05rem; color: var(--ink); }

/* ── 바닥글 ── */
.foot { position: relative; z-index: 3; background: var(--ink); color: var(--linen); padding: 34px 22px 46px; }
.foot .wrap { max-width: 1120px; margin: 0 auto; }
.foot-brand { margin: 0 0 12px; font-weight: 900; font-size: 1.4rem; letter-spacing: -.04em; }
.foot-brand span { color: var(--linen3); margin-left: 6px; font-weight: 700; font-size: 1rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 12px; }
.foot nav a { color: var(--linen); font-weight: 700; }
.foot p { margin: 4px 0; font-size: 1rem; }

/* 연출을 줄이는 설정: 움직임을 끄고 내용은 처음부터 보인다 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .cut, .js .scr-v .doll, .js .wt, .js .label, .js .scr-muji .muji-big, .js .scr-end .end-muji { opacity: 1 !important; transform: none !important; }
  .js .scr-promise .label:nth-child(2) { transform: rotate(-1.5deg) !important; } .js .scr-promise .label:nth-child(3) { transform: rotate(1.2deg) !important; }
  .band-track { width: auto; flex-wrap: wrap; justify-content: center; } .mq:nth-child(n+6) { display: none; }
}
