/* 설정집 사이트 — 색: 거울빛 도자기 바탕 · 가지색 잉크 · 리본 진홍 · 카드 금테 · 3막 남색 밤 */
:root {
  --paper: #ECEFF6;
  --paper-2: #DFE4EF;
  --sheet: #FDFBF6;
  --ink: #282038;
  --dim: #5D5670;
  --ribbon: #C2223B;
  --ribbon-dk: #8E1529;
  --gilt: #A98236;
  --gilt-hi: #D8B567;
  --garden: #4F7D62;
  --mirror: #5B6FA3;
  --night: #1A1F4A;
  --night-2: #11143A;
  --night-ink: #E9E6F2;
  --display: 'Song Myung', 'Gowun Batang', serif;
  --body: 'Gowun Batang', 'Nanum Myeongjo', 'Noto Serif KR', serif;
  --gut: 20px;
  --bar-h: 92px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); font: 400 16px/1.8 var(--body);
  word-break: keep-all; overflow-wrap: break-word; overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
  background-color: var(--paper);
  /* 체스판 바탕을 아주 옅게 */
  background-image: repeating-conic-gradient(rgba(40, 32, 56, .028) 0% 25%, transparent 0% 50%);
  background-size: 56px 56px;
}
img { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ribbon); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 99; background: var(--sheet); padding: 6px 12px; }
.skip:focus { left: 8px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 var(--gut); }
.narrow { max-width: 760px; }

/* ── 위 메뉴 ── */
.bar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 251, 246, .94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(169, 130, 54, .55), 0 3px 0 rgba(169, 130, 54, .14);
  padding-top: env(safe-area-inset-top);
}
.bar-top { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 12px 0 14px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; margin-right: auto; min-width: 0; }
.brand svg { width: 30px; height: 20px; flex: none; fill: none; stroke: var(--ribbon); stroke-width: 3.2; stroke-linecap: round; }
.brand span { font: 400 17px/1.2 var(--display); white-space: nowrap; }
.bar-cta {
  flex: none; text-decoration: none; font-size: 14px; font-weight: 700; line-height: 1;
  padding: 9px 13px; border-radius: 3px; color: #FFF8F3; background: var(--ribbon);
  box-shadow: inset 0 0 0 1px var(--gilt-hi);
}
.bar nav { display: flex; gap: 2px; height: 42px; padding: 0 8px; overflow-x: auto; scrollbar-width: none; border-top: 1px solid rgba(169, 130, 54, .22); }
.bar nav::-webkit-scrollbar { display: none; }
.bar nav a {
  flex: 1 0 auto; display: flex; align-items: center; justify-content: center;
  text-decoration: none; font-size: 15px; padding: 0 9px; white-space: nowrap; color: var(--dim);
}
.bar nav a[aria-current="page"] { color: var(--ribbon); font-weight: 700; box-shadow: inset 0 -3px 0 var(--ribbon); }

/* ── 쪽 머리 ── */
.head {
  position: relative; isolation: isolate; overflow: hidden; color: var(--night-ink);
  background: var(--night-2); padding: 46px 0 38px;
}
.head-bg { position: absolute; inset: 0; z-index: -2; }
.head-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .5; animation: settle 1.4s cubic-bezier(.2, .7, .2, 1) both; }
.head::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(17, 20, 58, .92) 30%, rgba(17, 20, 58, .45)); }
.head h1 { font: 400 40px/1.2 var(--display); margin: 0 0 8px; }
.head p { margin: 0; max-width: 34em; color: #D7D3E6; }

/* ── 공통 글 ── */
.sec { padding-top: 52px; padding-bottom: 8px; }
main > .sec:last-child { padding-bottom: 64px; }
.h2 { font: 400 30px/1.3 var(--display); margin: 0 0 10px; }
.h3 { font: 400 22px/1.35 var(--display); margin: 0 0 6px; }
.lede { margin: 0 0 22px; color: var(--dim); max-width: 36em; }
.panel { background: var(--sheet); border: 1px solid rgba(169, 130, 54, .7); border-radius: 4px; box-shadow: 0 2px 0 var(--paper-2); }
code { font-family: inherit; font-weight: 700; color: var(--ribbon); white-space: nowrap; }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* 표처럼 파인 버튼 */
.ticket {
  --notch: 10px;
  position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 220px; padding: 12px 28px 10px; text-decoration: none; overflow: hidden;
  color: #FFF8F3; background: var(--ribbon);
  -webkit-mask: radial-gradient(circle var(--notch) at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle var(--notch) at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle var(--notch) at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle var(--notch) at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
  box-shadow: inset 0 0 0 1px var(--gilt-hi);
  transition: transform .2s;
}
.ticket::before { content: ""; position: absolute; inset: 5px 15px; border: 1px dashed rgba(244, 222, 170, .65); pointer-events: none; }
.ticket::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; transform: translateX(-150%); pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 244, 220, .4), transparent);
  animation: sheen 5s 2.4s infinite;
}
.ticket b { font: 400 20px/1.3 var(--display); letter-spacing: .04em; }
.ticket small { font-size: 12px; color: #F4DEAA; }
.ticket:active { transform: scale(.98); }
.ghost {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px;
  text-decoration: none; border: 1px solid currentColor; border-radius: 3px; font-size: 15px;
}

/* ── 트럼프 카드(인물) ── */
/* 프로필 아래쪽의 이름 띠가 창 밖으로 나가게: 넓게 깔고 위쪽만 보임 */
@media (hover: hover) {
  .bar nav a:hover { color: var(--ribbon); }
  .ticket:hover { transform: translateY(-2px); }
}

/* ── 첫 쪽 ── */
.hero {
  position: relative; isolation: isolate; overflow: hidden; color: var(--night-ink);
  background: radial-gradient(120% 80% at 70% 0%, #2B2E6B, var(--night-2) 70%);
  padding: 34px 0 40px;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .32; animation: settle 1.8s cubic-bezier(.2, .7, .2, 1) both; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(17, 20, 58, .1), rgba(17, 20, 58, .75)); }
.stars { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.stars i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #FFF4D6; box-shadow: 0 0 6px 1px rgba(255, 228, 160, .7); animation: twinkle 3.6s ease-in-out infinite; }
.hero-in { display: grid; gap: 28px; }
.kicker { margin: 0 0 10px; font-size: 13.5px; color: var(--gilt-hi); }
.logo { margin: 0; font: 400 1px/1 var(--display); }
.logo span { display: block; }
.logo-a { font-size: 20px; letter-spacing: .35em; color: var(--gilt-hi); }
.logo-b { font-size: 36px; margin-top: 8px; }
.logo-c { font-size: 54px; margin-top: 4px; color: #FFF6EA; text-shadow: 0 3px 0 var(--ribbon-dk); }
.hero-ribbon { display: block; width: 210px; height: 26px; margin: 8px 0 0; overflow: visible; }
.hero-ribbon path { fill: none; stroke: var(--ribbon); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 1.2s .5s cubic-bezier(.6, 0, .2, 1) forwards; }
.hero-line { margin: 14px 0 0; font-size: 16px; color: #DCD8EA; max-width: 30em; }
.hero-act { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; }


.me { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.me li { display: grid; grid-template-columns: 44px 1fr; gap: 0 14px; padding: 18px 18px 18px 14px; }
.me-ic { grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); box-shadow: inset 0 0 0 1px var(--gilt); }
.me-ic svg { width: 26px; height: 26px; fill: none; stroke: var(--ribbon); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.me h3 { margin: 0; font: 400 20px/1.35 var(--display); }
.me p { margin: 2px 0 0; font-size: 15.5px; }

.toc { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.toc a { display: grid; grid-template-columns: 112px 1fr; align-items: stretch; text-decoration: none; overflow: hidden; }
.toc-img { position: relative; overflow: hidden; }
.toc-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease-out; }
.toc-txt { padding: 14px 16px; }
.toc b { display: block; font: 400 21px/1.3 var(--display); }
.toc span { display: block; font-size: 14.5px; line-height: 1.6; color: var(--dim); margin-top: 2px; }


/* ── 이야기 ── */
.scene p { margin: 0 0 14px; }
.scene p:last-child { margin-bottom: 0; }
.ribbon-card { margin-top: 26px; padding: 20px 20px 16px; outline: 1px solid rgba(169, 130, 54, .55); outline-offset: -7px; }
.ribbon-art { width: 110px; margin: -4px auto 4px; }
.ribbon-art svg { width: 100%; overflow: visible; }
.ribbon-art path { fill: none; stroke: var(--ribbon); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.ribbon-art circle { fill: var(--ribbon); }
.ribbon-art .rb-loop { stroke-dasharray: 420; stroke-dashoffset: 420; }
.ribbon-art .rb-tail { stroke-dasharray: 60; stroke-dashoffset: 60; }
.ribbon-card.in .rb-loop { animation: draw 1.4s .2s cubic-bezier(.6, 0, .2, 1) forwards; }
.ribbon-card.in .rb-tail { animation: draw .6s 1.4s ease-out forwards; }
.ribbon-card h3 { text-align: center; color: var(--ribbon); }
.dl { margin: 0; }
.dl div { padding: 10px 0; border-top: 1px solid rgba(169, 130, 54, .3); }
.dl dt { font-weight: 700; font-size: 15px; color: var(--ribbon); }
.dl dd { margin: 2px 0 0; font-size: 15.5px; }
.lands { display: grid; gap: 12px; }
.land { padding: 18px; border-top: 4px solid var(--ribbon); }
.land.mirror { border-top-color: var(--mirror); }
.land.link { border-top-color: var(--gilt); }
.land p { margin: 0; font-size: 15.5px; }
.who { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: start; padding: 16px; margin-top: 12px; }
.who img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; object-position: 50% 0; box-shadow: 0 0 0 2px var(--gilt); }
.who p { margin: 0; font-size: 15.5px; }
.who a { font-size: 14px; color: var(--ribbon); }
.acts { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: act; }
.act { --tone: var(--ribbon); overflow: hidden; }
.act.a2 { --tone: var(--mirror); }
.act.a3, .act.a4 { --tone: var(--gilt-hi); background: var(--night); color: var(--night-ink); border-color: #3A4080; box-shadow: none; }
.act-img { aspect-ratio: 16 / 8; overflow: hidden; border-bottom: 3px solid var(--tone); }
.act-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 6s ease-out; }
.act.in .act-img img { transform: scale(1.06); }
.act-txt { padding: 14px 18px 18px; }
.act-no { margin: 0; font-size: 13.5px; color: var(--dim); }
.act.a3 .act-no, .act.a4 .act-no { color: #A9AECB; }
.act-no b { display: inline-block; color: #FFF8F3; background: var(--tone); padding: 0 8px; margin-right: 6px; border-radius: 2px; }
.act.a3 .act-no b, .act.a4 .act-no b { color: var(--night-2); }
.act h3 { margin: 4px 0 6px; font-size: 24px; }
.act-txt p:last-child { margin: 0; font-size: 15.5px; }

/* ── 지도 ── */
.world {
  --bg: var(--paper); --fg: var(--ink); --fg-dim: var(--dim); --ac: var(--ribbon); --fr: var(--gilt); --map-paper: #F3ECD9;
  color: var(--fg); transition: color .8s;
}
.world[data-act="2"] { --ac: var(--mirror); --fr: #8C9BB8; --map-paper: #EEF2F8; }
.world[data-act="3"] { --fg: var(--night-ink); --fg-dim: #9EA4C2; --ac: #E3BD62; --fr: #C9A962; --map-paper: #1B2149; }
.world-bg { position: absolute; inset: 0; z-index: -1; background: var(--night-2); opacity: 0; transition: opacity .8s; }
.world { position: relative; isolation: isolate; }
.world[data-act="3"] .world-bg { opacity: 1; }
.world .lede { color: var(--fg-dim); }
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0 0 14px; }
.tabs button { border: 1px solid var(--fr); background: var(--sheet); padding: 9px 4px; border-radius: 3px; font-size: 14.5px; line-height: 1.3; transition: background .3s, color .3s; }
.world[data-act="3"] .tabs button { background: transparent; }
.tabs button[aria-selected="true"] { background: var(--ac); color: #FFF8F3; border-color: var(--ac); }
.world[data-act="3"] .tabs button[aria-selected="true"] { color: var(--night-2); }
.tab-ic { display: block; font-size: 15px; opacity: .8; }
.map-frame { position: relative; border-radius: 4px; overflow: hidden; box-shadow: 0 0 0 1px var(--fr), 0 4px 14px rgba(17, 20, 58, .12); }
.map { display: block; width: 100%; height: auto; touch-action: manipulation; }
.map-paper { fill: var(--map-paper); transition: fill .8s; }
.map-fr { fill: none; stroke: var(--fr); stroke-width: 2; }
.map-fr2 { stroke-width: 1; opacity: .7; }
#map-wash { opacity: .5; mix-blend-mode: multiply; }
.world[data-act="3"] #map-wash { mix-blend-mode: screen; opacity: .6; }
#map-line, #map-pins, #map-wash { transition: opacity .35s; }
.map.swap #map-line, .map.swap #map-pins, .map.swap #map-wash { opacity: 0; }
.orn { fill: var(--fr); font-size: 24px; text-anchor: middle; }
.pin { cursor: pointer; outline: none; }
.pin .hit { fill: transparent; }
.pin .ring { fill: none; stroke: var(--ac); stroke-width: 3; transform-box: fill-box; transform-origin: center; animation: pulse 2.4s ease-out infinite; }
.pin .core { fill: var(--ac); stroke: var(--map-paper); stroke-width: 3; transform-box: fill-box; transform-origin: center; transition: transform .2s; }
.pin .lab-bg { fill: var(--map-paper); stroke: var(--fr); stroke-width: 1.2; opacity: .95; }
.pin .lab { fill: var(--fg); font: 700 26px var(--body); text-anchor: middle; }
.pin.on .core { transform: scale(1.35); }
.pin.on .lab-bg { fill: var(--ac); stroke: var(--ac); }
.pin.on .lab { fill: #FFF8F3; }
.world[data-act="3"] .pin.on .lab { fill: var(--night-2); }
.pin:focus-visible .lab-bg { stroke: var(--fg); stroke-width: 3; }
.place { margin-top: 14px; overflow: hidden; transition: background .8s; }
.world[data-act="3"] .place { background: #20265A; border-color: #3A4080; box-shadow: none; }
.place-img { position: relative; aspect-ratio: 1200 / 821; overflow: hidden; background: var(--map-paper); }
.place-img img { width: 100%; height: 100%; object-fit: cover; }
.place-img::after { content: ""; position: absolute; inset: 0; transform: translateX(-120%); background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); }
.place.flash .place-img::after { animation: glint .9s ease-out; }
.place.flash .place-img img { animation: develop .7s ease-out; }
.place-txt { padding: 14px 16px 16px; }
.place h2 { font: 400 24px/1.3 var(--display); margin: 0 0 4px; }
.place-txt > p { margin: 0; font-size: 15.5px; }
.subs-h { margin: 12px 0 6px !important; font-size: 13.5px; color: var(--fg-dim); }
.subs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.subs li { font-size: 13.5px; line-height: 1.4; padding: 4px 10px; border: 1px solid var(--fr); border-radius: 99px; }
[hidden] { display: none !important; }

/* ── 인물 ── */


/* ── 노는 법 ── */
.ways { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.way { display: grid; grid-template-columns: 46px 1fr; column-gap: 12px; padding: 14px 16px; }
.way-suit { grid-row: span 2; font-size: 36px; line-height: 1.1; color: var(--ribbon); text-align: center; }
.way-suit.k { color: var(--ink); }
.way h3 { margin: 0; }
.way p { margin: 2px 0 0; font-size: 15.5px; }
.rules { margin: 18px 0 0; }
.rules div { padding: 11px 0; border-top: 1px dashed rgba(169, 130, 54, .6); }
.rules dt { font-weight: 700; }
.rules dd { margin: 1px 0 0; font-size: 15.5px; color: #3B344C; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.steps li { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center; padding: 12px 14px; }
.steps .n { width: 52px; height: 52px; display: grid; place-items: center; font: 400 26px/1 var(--display); color: var(--gilt); border-radius: 50%; box-shadow: inset 0 0 0 1px var(--gilt), inset 0 0 0 4px var(--sheet), inset 0 0 0 5px rgba(169, 130, 54, .4); }
.steps li:last-child .n { color: var(--ribbon); }
.steps p { margin: 0; font-size: 15.5px; }
.steps b { display: block; font: 400 18px/1.35 var(--display); }
.status { padding: 8px 10px; background: var(--sheet); border: 2px solid var(--ink); outline: 1px solid var(--gilt); outline-offset: -6px; border-radius: 4px; }
.st { border-bottom: 1px solid rgba(169, 130, 54, .35); }
.st:last-child { border-bottom: 0; }
.st summary { list-style: none; display: grid; grid-template-columns: 58px 1fr 18px; align-items: center; gap: 10px; padding: 10px 6px; cursor: pointer; }
.st summary::-webkit-details-marker { display: none; }
.st-k { font-weight: 700; font-size: 14px; text-align: center; color: #FFF8F3; background: var(--ink); border-radius: 2px; padding: 1px 0; }
.st-v { font-size: 15.5px; }
.st summary::after { content: "+"; color: var(--gilt); font-size: 20px; text-align: center; transition: transform .25s; }
.st[open] summary::after { transform: rotate(45deg); }
.st p { margin: 0 6px 10px 74px; font-size: 14.5px; line-height: 1.7; }
.st p + p { color: var(--dim); }
.ends { display: grid; gap: 10px; }
.end { padding: 16px 18px; }
.end h3 { margin: 0; }
.end p { margin: 2px 0 0; font-size: 15.5px; }
.end.bad { background: var(--night); color: var(--night-ink); border-color: #3A4080; box-shadow: none; }

/* ── 명령어 ── */
.find { position: relative; margin: 0 0 12px; }
.find input { width: 100%; height: 48px; padding: 0 14px 0 42px; border: 1px solid var(--gilt); border-radius: 4px; background: var(--sheet); font-size: 16px; }
.find svg { position: absolute; left: 14px; top: 14px; width: 20px; height: 20px; fill: none; stroke: var(--dim); stroke-width: 2; }
.cmd-group { margin-top: 30px; }
.cmd-group h2 { font: 400 23px/1.3 var(--display); margin: 0 0 10px; }
.cmd-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cmd-card { padding: 14px 16px; }
.cmd-row { display: flex; align-items: center; gap: 10px; }
.cmd { display: inline-flex; flex-wrap: wrap; gap: 5px; align-items: baseline; padding: 3px 10px; border-radius: 3px; background: var(--ink); color: #F5F1FA; font-size: 15.5px; font-weight: 700; }
.cmd i { font-style: normal; font-weight: 400; color: #F2B6C0; }
.copy { margin-left: auto; flex: none; min-height: 36px; padding: 0 12px; border: 1px solid var(--gilt); border-radius: 3px; background: transparent; font-size: 13.5px; }
.copy.done { background: var(--garden); color: #fff; border-color: var(--garden); }
.cmd-card p { margin: 8px 0 0; font-size: 15.5px; }
.cmd-card p.n { margin-top: 3px; font-size: 14px; color: var(--dim); }
.empty { margin: 24px 0 0; color: var(--dim); }

/* ── 바닥글 ── */
.foot { background: var(--night-2); color: #A9AECB; font-size: 13.5px; padding: 30px var(--gut) calc(30px + env(safe-area-inset-bottom)); text-align: center; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; margin-bottom: 14px; }
.foot nav a { color: var(--night-ink); text-decoration: none; padding: 6px 0; }
.foot p { margin: 0 0 6px; }
.foot .top { color: var(--gilt-hi); }

/* ── 움직임 ── */
@keyframes rise { from { opacity: 0; translate: 0 22px; } to { opacity: 1; translate: 0 0; } }
@keyframes settle { from { transform: scale(1.12); } to { transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes sheen { 0% { transform: translateX(-150%); } 30%, 100% { transform: translateX(350%); } }
@keyframes pulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.1); opacity: 0; } }
@keyframes glint { from { transform: translateX(-120%); } to { transform: translateX(120%); } }
@keyframes develop { from { opacity: .2; filter: saturate(.3) blur(3px); } to { opacity: 1; filter: none; } }
@keyframes deal { from { opacity: 0; translate: 0 -40px; scale: .85; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes flip-in { from { transform: perspective(1100px) rotateY(-90deg) scale(.85); opacity: .3; } to { transform: perspective(1100px) rotateY(0) scale(1); opacity: 1; } }
@keyframes twinkle { 0%, 100% { opacity: .15; scale: .6; } 50% { opacity: 1; scale: 1; } }

/* ── 넓은 화면 ── */
@media (min-width: 760px) {
  :root { --gut: 40px; --bar-h: 60px; }
  .bar { display: flex; align-items: center; padding: env(safe-area-inset-top) 24px 0; height: calc(60px + env(safe-area-inset-top)); }
  .bar-top { display: contents; }
  .brand { order: 1; margin-right: 0; }
  .bar nav { order: 2; margin: 0 auto; border: 0; height: 60px; gap: 6px; }
  .bar nav a { flex: none; padding: 0 12px; font-size: 16px; }
  .bar-cta { order: 3; }
  .head { padding: 76px 0 64px; }
  .head h1 { font-size: 56px; }
  .head p { font-size: 17px; }
  .sec { padding-top: 76px; }
  main > .sec:last-child { padding-bottom: 96px; }
  .h2 { font-size: 38px; }
  .hero { padding: 72px 0 76px; }
  .hero-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 48px; }
  .logo-a { font-size: 22px; }
  .logo-b { font-size: 46px; }
  .logo-c { font-size: 76px; }
  .hero-ribbon { width: 300px; height: 36px; }
  .hero-line { font-size: 17.5px; }
  .me { grid-template-columns: repeat(3, 1fr); }
  .me li { grid-template-columns: 1fr; gap: 8px; padding: 22px; }
  .me-ic { grid-row: auto; }
  .toc { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .toc a { grid-template-columns: 150px 1fr; min-height: 130px; }
  .toc li:first-child { grid-column: 1 / -1; }
  .story-top { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
  .story-top .ribbon-card { margin-top: 0; }
  .lands { grid-template-columns: repeat(3, 1fr); }
  .acts { grid-template-columns: repeat(2, 1fr); }
  .world .wrap.split { display: grid; grid-template-columns: 1.45fr 1fr; column-gap: 32px; align-items: start; }
  .world .wrap.split > .tabs { grid-column: 1 / -1; max-width: 560px; }
  .place { margin-top: 0; position: sticky; top: calc(var(--bar-h) + 16px); }
  .ways { grid-template-columns: repeat(3, 1fr); }
  .rules { columns: 2; column-gap: 40px; }
  .rules div { break-inside: avoid; }
  .two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
  .ends { grid-template-columns: repeat(3, 1fr); }
  .cmd-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 759px) {
  .map-frame { margin: 0 calc(var(--gut) * -1); border-radius: 0; }
}
@media (max-width: 370px) {
  .brand span { font-size: 15px; }
}

/* ════ 1205c: 크기 기준(폰 375px에서 본문 16px+, 작은 글 13px+, 누르는 칸 44px+) ════ */
main, .band { overflow-x: clip; }
.brand { min-height: 44px; }
.foot nav a { min-width: 44px; justify-content: center; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bar-cta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; font-size: 15px; }
.bar nav { height: 46px; }
.bar nav a { font-size: 16px; padding: 0 10px; }
.ticket { display: flex; width: 100%; min-height: 60px; padding: 10px 28px; }
.ticket b { font-size: 18px; }
.ticket small { font-size: 13px; }
.tabs button { min-height: 52px; font-size: 15px; }
.copy { min-height: 44px; min-width: 64px; font-size: 14px; }
.st summary { min-height: 48px; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; font-size: 15px; }
.who a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; }
.me p, .land p, .who p, .act-txt p:last-child, .place-txt > p, .way p, .rules dd, .steps p, .end p, .cmd-card p, .dl dd { font-size: 16px; }
.toc span, .st p { font-size: 15px; }
.kicker, .subs li, .act-no, .subs-h { font-size: 14px !important; }
.panel, .toc a, .pk, .st-faces button, .next-btn, .top-btn, .snap a { transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s; }
.panel:active, .toc a:active, .pk:active, .st-faces button:active, .next-btn:active, .top-btn:active { transform: scale(.98); }
@media (hover: hover) {
  .ticket:hover::after { animation: sheen 1.1s ease-out; }
  .ticket:hover { filter: brightness(1.08); }
  .toc a:hover { transform: perspective(900px) rotateX(2deg) rotateY(-3deg) translateY(-4px); box-shadow: 0 16px 30px rgba(17, 20, 58, .22); }
  .toc a:hover .toc-img img { transform: scale(1.07); }
  .toc a:hover b { color: var(--ribbon); }
  .band .panel:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(17, 20, 58, .16); }
}

/* ── 첫 화면: 서로 다른 순간 네 장을 겹쳐 놓음 ── */
.hero { padding: 22px 0 36px; }
.hero-in { display: grid; gap: 18px; }
.logo-c { font-size: 50px; }
.snaps { position: relative; list-style: none; margin: 0 4px; padding: 0; aspect-ratio: 1 / .9; }
.snap { position: absolute; }
.snap a { display: block; padding: 5px; border-radius: 6px; background: var(--sheet); transform: rotate(var(--r)); box-shadow: inset 0 0 0 1px var(--gilt), 0 12px 26px rgba(0, 0, 0, .45); text-decoration: none; }
.snap img { width: 100%; height: auto; aspect-ratio: 960 / 657; object-fit: cover; border-radius: 3px; }
.snap span { position: absolute; left: 12px; bottom: 12px; padding: 1px 10px; border-radius: 99px; font-size: 13px; color: #FFF6EA; background: rgba(17, 20, 58, .82); box-shadow: 0 0 0 1px rgba(216, 181, 103, .6); }
.s1 { left: 0; top: 3%; width: 76%; z-index: 2; --r: -2deg; }
.s2 { right: 0; top: 0; width: 44%; z-index: 3; --r: 3deg; }
.s3 { left: 1%; bottom: 0; width: 50%; z-index: 3; --r: -3deg; }
.s4 { right: 0; bottom: 4%; width: 50%; z-index: 4; --r: 2.5deg; }
.dealt .snap { animation: deal .8s cubic-bezier(.2, .8, .2, 1) both; }
.dealt .s1 { animation-delay: .15s; } .dealt .s2 { animation-delay: .35s; } .dealt .s3 { animation-delay: .5s; } .dealt .s4 { animation-delay: .65s; }
@media (hover: hover) { .snap a:hover { transform: rotate(0) scale(1.04); box-shadow: inset 0 0 0 1px var(--gilt-hi), 0 18px 36px rgba(0, 0, 0, .55); } .snap:hover { z-index: 5; } }
.hero-act { margin-top: 0; }
.hero-line { margin-top: 16px; }
.hero-more { margin: 6px 0 0; }
.hero-more a { display: inline-flex; align-items: center; min-height: 44px; color: var(--gilt-hi); font-size: 16px; }
/* 첫 화면에 떨어지는 카드 · 낙엽 */
.stars i.g, .stars i.leaf { width: auto; height: auto; border-radius: 0; background: none; box-shadow: none; font-size: 15px; line-height: 1; color: rgba(255, 228, 200, .5); top: -6% !important; animation: fall var(--d) linear var(--w) infinite; }
.stars i.leaf { width: 12px; height: 8px; border-radius: 0 80% 0 80%; background: rgba(216, 150, 80, .55); }
.off .stars i, .off .fx i { animation-play-state: paused; }

/* ── 구역 띠: 그림 바탕 · 모양 있는 가름 · 장식 · 떠다니는 것 ── */
.band { position: relative; isolation: isolate; padding-top: 76px; padding-bottom: 60px; background: var(--top); color: var(--fg); }
.band.tone-card { --top: #F8EFE7; --fg: var(--ink); --ac: var(--ribbon); --deco: var(--ribbon);
  --wash: linear-gradient(180deg, #F8EFE7 0, rgba(248, 239, 231, .8) 110px, rgba(250, 240, 234, .58) 55%, rgba(246, 230, 226, .8)); }
.band.tone-mirror { --top: #E5EBF6; --fg: var(--ink); --ac: var(--mirror); --deco: var(--mirror);
  --wash: linear-gradient(180deg, #E5EBF6 0, rgba(229, 235, 246, .8) 110px, rgba(236, 240, 248, .58) 55%, rgba(222, 229, 243, .8)); }
.band.tone-night { --top: #1C1A48; --fg: var(--night-ink); --ac: var(--gilt-hi); --deco: #B9A6F0;
  --wash: linear-gradient(180deg, #1C1A48 0, rgba(28, 26, 72, .84) 110px, rgba(34, 24, 78, .78) 55%, rgba(17, 20, 58, .94)); }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--wash); }
.sbg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.sbg img { position: absolute; left: 0; top: -14%; width: 100%; height: 128%; object-fit: cover; filter: blur(2px) saturate(.9); will-change: transform; }
.tone-night .sbg img { filter: blur(2px) saturate(.8) brightness(.8); }
.edge { position: absolute; left: 0; right: 0; top: -23px; height: 24px; z-index: 1; background: var(--top); pointer-events: none;
  -webkit-mask: var(--m) 0 100% / var(--mw) 24px repeat-x; mask: var(--m) 0 100% / var(--mw) 24px repeat-x; }
.e-wave, .e-ribbon { --mw: 160px; --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 24'%3E%3Cpath d='M0 14C40 2 40 2 80 14s40 12 80 0V24H0z'/%3E%3C/svg%3E"); }
.e-teeth { --mw: 26px; --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 24'%3E%3Cpath d='M0 24L13 9L26 24z'/%3E%3C/svg%3E"); }
.e-chess { top: -16px; height: 16px; -webkit-mask: none; mask: none; background: repeating-conic-gradient(var(--top) 0 25%, transparent 0 50%) 0 0 / 16px 16px; }
.e-ribbon { -webkit-mask: none; mask: none; background: none; top: -30px; height: 34px; }
.e-ribbon::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 24px; background: var(--top);
  -webkit-mask: var(--m) 0 100% / 160px 24px repeat-x; mask: var(--m) 0 100% / 160px 24px repeat-x; }
.edge-rib { position: absolute; left: 0; top: 4px; width: 100%; height: 24px; overflow: visible; }
.edge-rib path { fill: none; stroke: var(--ribbon); stroke-width: 4; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.deco { position: absolute; z-index: -1; right: -24px; top: 34px; width: 150px; color: var(--deco); opacity: .13; pointer-events: none; }
.deco svg { display: block; width: 100%; height: auto; fill: currentColor; overflow: visible; }
.deco text { font-family: 'Segoe UI Symbol', 'Apple Symbols', serif; }
.d-key { width: 190px; transform: rotate(-18deg); }
.d-knight, .d-moon { width: 130px; }
.tone-night .deco { opacity: .2; }
.deco .spin { animation: spin 80s linear infinite; }
.fx { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.fx i { position: absolute; font-style: normal; }
.tone-card .fx i { top: -5% !important; font-size: 16px; line-height: 1; color: rgba(194, 34, 59, .26); animation: fall var(--d) linear var(--w) infinite; }
.tone-mirror .fx i { width: 7px; height: 7px; background: #FFFFFF; transform: rotate(45deg); box-shadow: 0 0 10px 2px rgba(160, 185, 240, .9); animation: glitter calc(var(--d) * .5) ease-in-out var(--w) infinite; }
.tone-night .fx i { width: 5px; height: 5px; border-radius: 50%; background: #FFE9A8; box-shadow: 0 0 10px 3px rgba(255, 220, 130, .55); animation: firefly var(--d) ease-in-out var(--w) infinite alternate; }
.band .h2 { position: relative; }
.band .h2::after { content: ""; display: block; width: 56px; height: 3px; margin-top: 8px; border-radius: 2px; background: var(--ac); }
.tone-night .h2, .tone-night .h3 { color: #FFF6EA; }
.tone-night .lede { color: #C9C5DA; }
.tone-night .panel { color: var(--ink); }
.tone-night .panel .h3 { color: inherit; }
.tone-night .act.a3, .tone-night .act.a4, .tone-night .end.bad { color: var(--night-ink); }
.tone-night .act.a3 .h3, .tone-night .act.a4 .h3, .tone-night .end.bad .h3 { color: #FFF6EA; }
.tone-mirror .lede, .tone-card .lede { color: #4F4862; }
/* 나타나기 변형 */
.reveal.rv-side { transform: translateX(-26px); }
.reveal.rv-wipe { opacity: 1; transform: none; position: relative; overflow: hidden; }
/* 가림막이 오른쪽으로 걷힘(transform만 움직임) */
.reveal.rv-wipe::after { content: ""; position: absolute; inset: 0; z-index: 2; background: var(--top, var(--sheet)); transform-origin: 100% 50%; transition: transform 1s cubic-bezier(.6, 0, .2, 1); pointer-events: none; }
.reveal.rv-wipe.in::after { transform: scaleX(0); }
.reveal.in { opacity: 1; transform: none; }

/* ── 쪽 안 구역 목차 ── */
.sectoc { position: sticky; top: calc(var(--bar-h) + env(safe-area-inset-top)); z-index: 45; background: rgba(28, 26, 72, .94); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); overflow-x: auto; scrollbar-width: none; box-shadow: 0 1px 0 rgba(216, 181, 103, .5); }
.sectoc::-webkit-scrollbar { display: none; }
.sectoc ul { display: flex; gap: 2px; margin: 0; padding: 0 8px; list-style: none; width: max-content; }
.sectoc a { display: flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 12px; font-size: 14px; white-space: nowrap; color: #C9C5DA; text-decoration: none; }
.sectoc i { width: 8px; height: 8px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; flex: none; }
.sectoc a[aria-current] { color: #FFF6EA; font-weight: 700; }
.sectoc a[aria-current] i { background: var(--gilt-hi); box-shadow: none; }
html.has-toc { scroll-padding-top: calc(var(--bar-h) + 56px); }

/* ── 쪽 끝 띠: 다음 쪽 · 맨 위로 · 작품 ── */
.endband { text-align: center; padding-top: 84px; padding-bottom: 64px; }
.end-q { margin: 0 0 6px; font: 400 25px/1.45 var(--display); color: #FFF6EA; text-shadow: 0 2px 10px rgba(0, 0, 0, .6); }
.end-s { display: block; margin-bottom: 6px; font-size: 15px; color: #C9C5DA; }
.endband .ticket { margin: 22px auto 0; max-width: 420px; }
.end-nav { display: flex; gap: 10px; max-width: 420px; margin: 12px auto 0; }
.next-btn { flex: 1; display: flex; flex-direction: column; justify-content: center; min-height: 60px; padding: 6px 16px; border: 1px solid rgba(216, 181, 103, .7); border-radius: 4px; color: #FFF6EA; text-decoration: none; text-align: left; background: rgba(17, 20, 58, .5); }
.next-btn small { font-size: 13px; color: var(--gilt-hi); }
.next-btn b { font: 400 20px/1.25 var(--display); }
.next-btn b::after { content: " ›"; color: var(--gilt-hi); }
.top-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 60px; padding: 0 18px; border: 1px solid rgba(233, 230, 242, .4); border-radius: 4px; color: var(--night-ink); text-decoration: none; font-size: 15px; }

/* ── 첫 쪽 차례 카드: 그림 한 장 + 이름 + 한 줄 ── */
.toc a { display: flex; flex-direction: column; }
.toc-img { aspect-ratio: 16 / 7; }
@media (min-width: 760px) { .toc li:first-child .toc-img { aspect-ratio: 16 / 5; } }
.toc-txt { padding: 14px 18px 18px; }
.toc b { font-size: 24px; }
.toc b::after { content: " ›"; color: var(--ac, var(--ribbon)); }

/* ── 지도 구역 바탕(막 색조) ── */
.world { background: radial-gradient(90% 50% at 100% 0, rgba(194, 34, 59, .12), transparent 70%), radial-gradient(80% 50% at 0 100%, rgba(169, 130, 54, .16), transparent 70%), #F5EEE6; }
.world[data-act="2"] { background: radial-gradient(90% 50% at 100% 0, rgba(91, 111, 163, .18), transparent 70%), radial-gradient(80% 50% at 0 100%, rgba(170, 182, 205, .3), transparent 70%), #E8EDF6; }
.world { padding-bottom: 48px; }

/* ── 등장인물: 한 사람이 화면을 차지 ── */
.cast { position: relative; background: var(--night-2); }
.stage { --ac: var(--ribbon); --tint: rgba(70, 18, 36, .5); position: relative; isolation: isolate; overflow: hidden; color: var(--night-ink); }
.stage[data-act="2"] { --ac: #8FA6E0; --tint: rgba(22, 36, 84, .5); }
.stage[data-act="3"] { --ac: var(--gilt-hi); --tint: rgba(40, 18, 72, .55); }
.stage-bg { position: absolute; inset: -24px; z-index: -2; }
.stage-bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(10px) saturate(1.1); opacity: .85; }
.stage { --figh: clamp(380px, 62vh, 600px); }
.stage::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--tint), rgba(17, 20, 58, .2) calc(var(--figh) * .4), rgba(17, 20, 58, .8) calc(var(--figh) * .82), var(--night-2) var(--figh)); }
.stage-in { max-width: 1180px; margin: 0 auto; }
.st-fig { position: relative; margin: 0; height: var(--figh); touch-action: pan-y; clip-path: inset(-60px -100vw 0 -100vw); }
.st-fig img { position: absolute; inset: 12px 0 auto; width: 100%; height: 114%; max-width: none; object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 12px 26px rgba(0, 0, 0, .5)); transition: opacity .25s, transform .25s; }
/* 서 있는 그림은 넓적다리에서 끝나므로 아래를 흐리게 */
.st-fig:not(.bust)::after { content: ""; position: absolute; left: -100vw; right: -100vw; bottom: 0; height: 30%; z-index: 1; pointer-events: none; background: linear-gradient(rgba(17, 20, 58, 0), var(--night-2) 86%); }
.st-fig:not(.bust) + .st-txt { position: relative; z-index: 2; margin-top: -44px; }
.st-fig img.out { opacity: 0; transform: translateY(10px); }
.st-fig.bust { height: auto; padding: 26px 34px 6px; clip-path: none; }
.st-fig.bust img { position: relative; inset: auto; height: auto; aspect-ratio: 560 / 448; object-fit: cover; border-radius: 10px; filter: none;
  box-shadow: 0 0 0 2px var(--gilt-hi), 0 0 0 7px rgba(17, 20, 58, .65), 0 0 0 8px var(--gilt), 0 18px 40px rgba(0, 0, 0, .55); }
.st-step { position: absolute; top: 50%; z-index: 2; width: 48px; height: 48px; margin-top: -24px; border-radius: 50%; border: 1px solid rgba(216, 181, 103, .7); background: rgba(17, 20, 58, .55); color: #FFF6EA; font-size: 26px; line-height: 1; }
.st-step.prev { left: 8px; } .st-step.next { right: 8px; }
.st-txt { padding: 6px var(--gut) 30px; }
.st-where { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.st-where span { padding: 2px 11px; border-radius: 99px; font-size: 14px; border: 1px solid rgba(233, 230, 242, .45); }
.st-where span:first-child { background: var(--ac); border-color: var(--ac); color: #FFF8F3; }
.stage[data-act="3"] .st-where span:first-child { color: var(--night-2); }
.st-name { margin: 10px 0 0; font: 400 46px/1.1 var(--display); color: #FFF6EA; letter-spacing: .01em; text-shadow: 0 3px 0 rgba(142, 21, 41, .7), 0 6px 22px rgba(0, 0, 0, .5); }
.st-role { margin: 4px 0 0; font-size: 16px; color: var(--gilt-hi); }
.st-q { margin: 16px 0; padding: 12px 16px; border-left: 3px solid var(--ac); border-radius: 0 4px 4px 0; background: rgba(255, 255, 255, .07); font: 400 19px/1.6 var(--display); color: #FFF6EA; }
.st-faces { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; }
.st-faces button { min-height: 44px; padding: 0 15px; border-radius: 99px; border: 1px solid rgba(233, 230, 242, .4); background: rgba(17, 20, 58, .45); font-size: 15px; color: var(--night-ink); }
.st-faces button[aria-pressed="true"] { background: #FFF6EA; color: var(--night-2); border-color: #FFF6EA; }
.st-intro, .st-more { margin: 0 0 12px; font-size: 16.5px; line-height: 1.85; color: #E4E0F0; max-width: 34em; }
.st-more { color: #C9C5DA; }
.st-items { margin: 18px 0 0; }
.st-items div { display: grid; grid-template-columns: 7.5em 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid rgba(216, 181, 103, .3); }
.st-items dt { font-size: 14px; color: var(--gilt-hi); padding-top: 2px; }
.st-items dd { margin: 0; font-size: 16px; }
.st-items a { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-height: 44px; color: #FFF6EA; }
.st-items a small { font-size: 13px; color: var(--gilt-hi); }
.st-cg h3 { margin: 22px 0 10px; font: 400 19px/1.3 var(--display); color: #FFF6EA; }
.st-cg ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.st-cg li:only-child { grid-column: 1 / -1; max-width: 420px; }
.st-cg img { width: 100%; height: auto; border-radius: 6px; box-shadow: 0 0 0 1px var(--gilt), 0 8px 18px rgba(0, 0, 0, .4); }
.stage.enter .st-name, .stage.enter .st-where, .stage.enter .st-role { animation: rise .5s cubic-bezier(.2, .7, .2, 1) both; }
.stage.enter .st-role { animation-delay: .06s; }
.stage.enter .st-q { animation: rise .5s .12s cubic-bezier(.2, .7, .2, 1) both; }
/* 고르는 줄: 폰은 화면 아래에 붙는 띠 */
.picker { position: sticky; bottom: 0; z-index: 30; display: flex; gap: 16px; overflow-x: auto; scrollbar-width: none; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: rgba(17, 20, 58, .96); box-shadow: 0 -1px 0 rgba(216, 181, 103, .6); }
.picker::-webkit-scrollbar { display: none; }
.pk-row { display: flex; align-items: center; gap: 6px; flex: none; }
.pk-row h2 { margin: 0; writing-mode: vertical-rl; font: 400 13px/1.2 var(--body); color: var(--gilt-hi); letter-spacing: .1em; }
.pk-row ul { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pk { display: block; padding: 0; border: 0; background: none; color: var(--night-ink); }
.pk-face { display: block; position: relative; width: 58px; height: 58px; border-radius: 50%; overflow: hidden; background: var(--paper-2); box-shadow: 0 0 0 2px rgba(233, 230, 242, .25); transition: box-shadow .2s, transform .2s; }
.pk-face img { position: absolute; left: -20%; top: 0; width: 140%; max-width: none; height: auto; aspect-ratio: 1; }
.pk span { display: none; }
.pk[aria-current="true"] .pk-face { box-shadow: 0 0 0 3px var(--gilt-hi), 0 0 14px rgba(216, 181, 103, .7); transform: scale(1.06); }
.cast + .endband { margin-top: 0; }

@keyframes fall { 0% { transform: translate3d(0, -40px, 0) rotate(0); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translate3d(40px, 105vh, 0) rotate(300deg); opacity: 0; } }
@keyframes glitter { 0%, 100% { opacity: 0; transform: rotate(45deg) scale(.3); } 50% { opacity: .95; transform: rotate(45deg) scale(1); } }
@keyframes firefly { 0% { opacity: .1; transform: translate3d(0, 0, 0); } 50% { opacity: 1; } 100% { opacity: .3; transform: translate3d(30px, -40px, 0); } }
@keyframes spin { to { transform: rotate(360deg); } }
.deco .spin { transform-origin: 50% 50%; }

@media (min-width: 760px) {
  .hero { padding: 56px 0 70px; }
  .hero-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); grid-template-rows: auto 1fr; column-gap: 48px; row-gap: 10px; align-items: start; }
  .hero-in > div:first-child { grid-column: 1; grid-row: 1; align-self: end; }
  .snaps { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .hero-txt { grid-column: 1; grid-row: 2; }
  .logo-c { font-size: 72px; }
  .hero-act .ticket, .endband .ticket { width: auto; min-width: 340px; min-height: 66px; display: inline-flex; }
  .hero-act .ticket b, .endband .ticket b { font-size: 20px; }
  .band { padding-top: 104px; padding-bottom: 88px; }
  .deco { width: 240px; right: 4%; top: 48px; }
  .d-key { width: 300px; } .d-knight, .d-moon { width: 200px; }
  .endband { padding-top: 110px; }
  .end-q { font-size: 34px; }
  .toc-img { aspect-ratio: 16 / 8; }
  .toc a { min-height: 0; }
  .sectoc { position: fixed; top: 50%; right: 14px; transform: translateY(-50%); background: none; box-shadow: none; overflow: visible; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .sectoc ul { flex-direction: column; align-items: flex-end; padding: 0; }
  .sectoc a { flex-direction: row-reverse; min-height: 40px; padding: 0 4px; color: var(--dim); }
  .sectoc a span { opacity: 0; transform: translateX(6px); transition: opacity .2s, transform .2s; padding: 3px 10px; border-radius: 99px; background: rgba(28, 26, 72, .9); color: #FFF6EA; font-size: 13px; }
  .sectoc a:hover span, .sectoc a:focus-visible span, .sectoc a[aria-current] span { opacity: 1; transform: none; }
  .sectoc i { width: 12px; height: 12px; background: rgba(253, 251, 246, .85); box-shadow: inset 0 0 0 2px var(--gilt); }
  .sectoc a[aria-current] i { background: var(--ribbon); box-shadow: 0 0 0 3px rgba(194, 34, 59, .25); }
  html.has-toc { scroll-padding-top: calc(var(--bar-h) + 12px); }
  .end-nav { max-width: 460px; }
}
@media (min-width: 960px) {
  .cast { display: grid; grid-template-columns: 296px minmax(0, 1fr); }
  .picker { order: -1; position: sticky; top: var(--bar-h); bottom: auto; align-self: start; height: calc(100vh - var(--bar-h)); flex-direction: column; gap: 18px; overflow-x: hidden; overflow-y: auto; padding: 22px 16px 30px; box-shadow: 1px 0 0 rgba(216, 181, 103, .5); scrollbar-width: thin; }
  .pk-row { flex-direction: column; align-items: stretch; }
  .pk-row h2 { writing-mode: horizontal-tb; font: 400 17px/1.3 var(--display); letter-spacing: 0; padding-bottom: 6px; border-bottom: 1px solid rgba(216, 181, 103, .35); }
  .pk-row ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 4px; }
  .pk { display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 44px; }
  .pk span { display: block; font-size: 13px; line-height: 1.25; text-align: center; color: #C9C5DA; }
  .pk[aria-current="true"] span { color: #FFF6EA; }
  .stage { min-height: calc(100vh - var(--bar-h)); }
  .stage::before { background: linear-gradient(90deg, rgba(17, 20, 58, .15), rgba(17, 20, 58, .35) 42%, rgba(17, 20, 58, .86) 58%, rgba(17, 20, 58, .94)), linear-gradient(var(--tint), transparent 50%); }
  .stage-in { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 36px; align-items: start; padding: 28px 40px 48px; }
  .st-fig { position: sticky; top: var(--bar-h); height: calc(100vh - var(--bar-h)); min-height: 520px; margin: -28px 0 -48px; }
  .st-fig img { height: 106%; }
  .st-fig:not(.bust)::after { display: none; }
  .st-fig:not(.bust) + .st-txt { margin-top: 0; }
  .st-fig.bust { top: calc(var(--bar-h) + 16px); height: auto; min-height: 0; margin: 0; padding: 70px 0 0; }
  .st-fig.bust img { height: auto; }
  .st-txt { padding: 30px 0 0; }
  .st-name { font-size: 70px; }
  .st-q { font-size: 21px; }
}
@media (max-width: 759px) {
  .ticket { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .hero-ribbon path, .ribbon-art path { stroke-dashoffset: 0 !important; }
  .stars, .fx { display: none; }
  .reveal.rv-wipe::after { display: none; }
}
