/* 천층: 서약의 등반자 — 고정 무대 720×1280 */
:root {
  --ink: #1b130f; --night: #120f1a; --slate: #232a3d; --slate2: #2f3852;
  --amber: #f2a24a; --amber2: #ffcf7a; --gold: #f0c548; --paper: #f4e6c8; --paper2: #e8d3a8;
  --cloud: #c9c1e3; --oath: #a05ce0; --red: #e0503c; --green: #5ee07a;
  --disp: 'Black Han Sans', 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  --body: 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: #07060b; overflow: hidden; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
#stage { position: absolute; left: 50%; top: 50%; width: 720px; height: 1280px; overflow: hidden; background: var(--night); color: #f3ead8; font-family: var(--body); font-size: 26px; transform-origin: 50% 50%; }
#screen, #overlay, #cutin { position: absolute; inset: 0; }
#overlay { pointer-events: none; z-index: 50; }
#overlay > * { pointer-events: auto; }
#cutin { pointer-events: none; z-index: 60; }
button { font-family: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
img { -webkit-user-drag: none; }

/* 로딩 */
#loading { position: absolute; inset: 0; z-index: 99; background: radial-gradient(ellipse at 50% 70%, #3a2f55, #0d0a14 70%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px; transition: opacity .5s; }
#loading.out { opacity: 0; pointer-events: none; }
.ld-title { font-family: var(--disp); font-size: 130px; color: var(--paper); text-shadow: 0 6px 0 var(--ink), 0 0 40px rgba(240,197,72,.4); }
.ld-bar { width: 360px; height: 14px; border: 3px solid var(--ink); background: #2a2238; border-radius: 10px; overflow: hidden; }
.ld-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--amber), var(--gold)); transition: width .2s; }
.ld-txt { font-size: 22px; opacity: .7; }

/* 버튼 */
.btn { position: relative; font-family: var(--disp); font-size: 28px; padding: 14px 26px; border-radius: 14px; color: var(--paper); background: linear-gradient(#5b4433, #3d2c21); border: 3px solid var(--ink); box-shadow: inset 0 2px 0 rgba(255,220,170,.25), 0 5px 0 var(--ink); transition: transform .08s; letter-spacing: .5px; }
.btn:active { transform: translateY(4px); box-shadow: inset 0 2px 0 rgba(255,220,170,.25), 0 1px 0 var(--ink); }
.btn.big { font-size: 36px; padding: 18px 40px; }
.btn.gold { color: var(--ink); background: linear-gradient(#ffe08a, #e8a93d); box-shadow: inset 0 3px 0 rgba(255,255,255,.55), 0 6px 0 var(--ink), 0 0 30px rgba(255,190,80,.35); }
.btn.ghost { background: rgba(20,16,30,.6); color: var(--paper2); }
.btn.small { font-size: 22px; padding: 8px 16px; border-radius: 10px; }
.btn.tool { font-size: 20px; padding: 8px 14px; border-radius: 10px; background: rgba(25,20,36,.85); box-shadow: 0 3px 0 var(--ink); }
.btn.on { color: var(--ink); background: linear-gradient(#ffe08a, #e8a93d); }
.btn.off { opacity: .45; filter: grayscale(.6); }
.btn.round { width: 64px; height: 64px; padding: 0; border-radius: 50%; font-size: 30px; }
.btn.danger { background: linear-gradient(#b9483a, #7a2a22); color: #fff; }
.tag { display: inline-block; font-size: 18px; padding: 2px 10px; border-radius: 8px; background: #3d3550; border: 2px solid var(--ink); margin-left: 6px; color: #fff; font-family: var(--disp); vertical-align: middle; }
.tag.attr { color: var(--ink); }
.mst { font-size: 16px; color: var(--gold); margin-left: 8px; letter-spacing: 1px; }
.mst i { color: rgba(255,255,255,.3); font-style: normal; }
.stars i { color: rgba(255,255,255,.25); font-style: normal; } .stars i.on { color: var(--gold); }

/* 알림 */
#toast { position: absolute; left: 50%; bottom: 300px; transform: translate(-50%, 20px); z-index: 80; background: rgba(15,12,22,.92); border: 3px solid var(--gold); color: var(--paper); padding: 14px 26px; border-radius: 14px; font-size: 24px; opacity: 0; pointer-events: none; transition: all .2s; max-width: 620px; text-align: center; }
#toast.on { opacity: 1; transform: translate(-50%, 0); }

/* 대화상자 */
.dlg-wrap { position: absolute; inset: 0; background: rgba(8,6,14,.72); display: flex; align-items: center; justify-content: center; animation: fadeIn .18s; }
.dlg-wrap.out { opacity: 0; transition: opacity .18s; }
.dlg { width: 600px; max-height: 1100px; overflow: auto; background: linear-gradient(#f6ead0, #e6d2a6); color: var(--ink); border: 4px solid var(--ink); border-radius: 18px; box-shadow: 0 10px 0 var(--ink), 0 0 60px rgba(0,0,0,.6); padding: 26px 28px; animation: popIn .22s cubic-bezier(.2,1.4,.4,1); }
.dlg.wide { width: 660px; }
.dlg-title { font-family: var(--disp); font-size: 36px; margin-bottom: 14px; border-bottom: 3px dashed rgba(27,19,15,.3); padding-bottom: 10px; }
.dlg-body { font-size: 24px; line-height: 1.55; white-space: pre-line; }
.dlg-body p { margin: 8px 0; }
.dlg-btns { display: flex; gap: 14px; justify-content: flex-end; margin-top: 22px; flex-wrap: wrap; }
.oath-pop .op-sent { font-family: var(--disp); font-size: 28px; color: #5a2f8a; margin-bottom: 10px; }
.oath-pop .op-row { margin: 6px 0; } .oath-pop .op-row b { display: inline-block; min-width: 130px; color: #6b4a2a; }
.oath-pop .op-row.brk b { color: #8a2f9a; }
.oath-pop .op-state { margin-top: 12px; font-size: 20px; color: #6b4a2a; }
.menu-body p { margin: 6px 0; font-size: 22px; }

/* 컷인 */
.ci { position: absolute; left: 0; right: 0; top: 400px; height: 300px; animation: ciIn .25s ease-out; }
.ci.out { animation: ciOut .22s ease-in forwards; }
.ci-band { position: absolute; left: -40px; right: -40px; top: 40px; height: 220px; background: linear-gradient(100deg, rgba(20,14,30,.95) 0 40%, var(--ci) 40% 41%, rgba(20,14,30,.95) 41%); transform: skewY(-6deg); border-top: 5px solid var(--ci); border-bottom: 5px solid var(--ci); overflow: hidden; }
.ci-lines { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 40px, rgba(255,255,255,.08) 40px 44px); animation: lines .4s linear infinite; }
.ci-face { position: absolute; left: -10px; top: -30px; width: 340px; height: 340px; background-size: 115% auto; background-position: 50% 4%; background-repeat: no-repeat; filter: drop-shadow(0 0 0 #000) drop-shadow(6px 0 0 var(--ink)); animation: faceIn .3s ease-out; }
.ci-text { position: absolute; left: 320px; right: 20px; top: 100px; transform: skewY(-6deg); }
.ci-title { font-family: var(--disp); font-size: 72px; color: #fff; text-shadow: 4px 4px 0 var(--ink), 0 0 20px var(--ci); line-height: 1; }
.ci-sub { font-size: 22px; margin-top: 10px; color: var(--paper2); }
.ci-break .ci-band { background: linear-gradient(100deg, rgba(30,10,40,.96), rgba(70,20,90,.96)); }
.ci-break .ci-title { font-size: 96px; color: #f0d6ff; animation: shatter .5s ease-out; }
.ci-break::after { content: ''; position: absolute; inset: -400px 0; background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.5), transparent 40%); animation: flashOut .6s ease-out forwards; }
@keyframes ciIn { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes ciOut { to { transform: translateX(110%); opacity: 0; } }
@keyframes faceIn { from { transform: translateX(-80px); opacity: 0; } }
@keyframes lines { to { background-position: -44px 0; } }
@keyframes shatter { 0% { transform: scale(1.6); letter-spacing: 30px; opacity: 0; } 60% { transform: scale(.95); } 100% { transform: none; } }
@keyframes flashOut { to { opacity: 0; } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes popIn { from { transform: scale(.85); opacity: 0; } }

/* ───── 타이틀 ───── */
.tt { position: absolute; inset: 0; overflow: hidden; }
.tt-bg { position: absolute; inset: 0; background: url(../assets/img/bg/title.webp) center/cover; animation: slowPan 18s ease-in-out infinite alternate; }
.tt-cloud { position: absolute; left: -10%; right: -10%; bottom: -40px; height: 300px; background: radial-gradient(ellipse at 30% 60%, rgba(220,212,245,.9), transparent 60%), radial-gradient(ellipse at 75% 70%, rgba(210,200,240,.85), transparent 60%); animation: drift 9s ease-in-out infinite alternate; }
.tt-logo { position: absolute; top: 110px; left: 0; right: 0; text-align: center; }
.tt-han { font-family: var(--disp); font-size: 40px; color: var(--amber2); letter-spacing: 20px; text-shadow: 2px 2px 0 var(--ink); }
.tt-main { font-family: var(--disp); font-size: 170px; line-height: 1; color: #fff7e0; text-shadow: 0 8px 0 var(--ink), 6px 6px 0 var(--ink), 0 0 60px rgba(255,190,90,.6); }
.tt-sub { font-family: var(--disp); font-size: 46px; color: var(--paper); margin-top: 8px; text-shadow: 3px 3px 0 var(--ink); letter-spacing: 6px; }
.tt-line { position: absolute; top: 450px; width: 100%; text-align: center; font-size: 24px; color: #fff; text-shadow: 2px 2px 0 var(--ink), 0 0 10px #000; }
.tt-tap { position: absolute; bottom: 160px; width: 100%; text-align: center; font-family: var(--disp); font-size: 36px; color: #fff; text-shadow: 3px 3px 0 var(--ink); animation: blink 1.6s ease-in-out infinite; }
.tt-btns { position: absolute; bottom: 130px; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.tt-ver { position: absolute; bottom: 30px; width: 100%; text-align: center; font-size: 18px; opacity: .6; }
@keyframes blink { 50% { opacity: .35; } }
@keyframes slowPan { to { transform: scale(1.08) translateY(-20px); } }
@keyframes drift { to { transform: translateX(40px); } }

/* ───── 홈 ───── */
.hm { position: absolute; inset: 0; overflow: hidden; }
.hm-bg { position: absolute; inset: 0; background: url(../assets/img/bg/home_tower.webp) center/cover; }
.hm-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(10,8,18,.55), rgba(10,8,18,0) 25%, rgba(10,8,18,0) 60%, rgba(10,8,18,.6)); }
.hm-top { position: absolute; top: 24px; left: 24px; right: 24px; display: flex; align-items: center; gap: 16px; }
.hm-logo { font-family: var(--disp); font-size: 54px; color: #fff7e0; text-shadow: 4px 4px 0 var(--ink); }
.hm-floor { flex: 1; font-family: var(--disp); font-size: 28px; background: rgba(20,14,30,.75); border: 3px solid var(--ink); border-radius: 12px; padding: 8px 16px; color: var(--paper); }
.hm-floor b { color: var(--gold); font-size: 34px; }
.hm-plaque { position: absolute; left: 30px; top: 150px; width: 190px; padding: 14px; text-align: center; background: linear-gradient(#5a5068, #3a3348); border: 4px solid var(--ink); border-radius: 10px; box-shadow: 0 6px 0 var(--ink); transform: rotate(-3deg); }
.hm-plaque small { display: block; font-size: 18px; color: var(--paper2); }
.hm-plaque b { display: block; font-family: var(--disp); font-size: 64px; color: var(--amber2); text-shadow: 3px 3px 0 var(--ink); line-height: 1.1; }
.hm-plaque span { font-size: 16px; color: #d9cfe6; }
.hm-notches { position: absolute; right: 26px; top: 160px; width: 330px; display: flex; flex-direction: column; gap: 12px; }
.hm-notch { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 22px; background: linear-gradient(90deg, rgba(244,230,200,.95), rgba(220,198,156,.95)); color: var(--ink); border: 3px solid var(--ink); border-radius: 6px 14px 14px 6px; box-shadow: 0 4px 0 var(--ink); text-align: left; }
.hm-notch::before { content: ''; position: absolute; left: -26px; top: 50%; width: 22px; height: 6px; background: var(--ink); }
.hm-notch .hn-no { font-family: var(--disp); font-size: 26px; color: #7a4a1e; min-width: 54px; }
.hm-notch .hn-t { flex: 1; font-family: var(--disp); font-size: 28px; }
.hm-notch .hn-st { color: #c08a12; font-size: 20px; }
.hm-notch.cur { background: linear-gradient(90deg, #ffe08a, #f2b14a); animation: glow 1.6s ease-in-out infinite; }
.hm-notch.lock { opacity: .55; filter: grayscale(.8); }
.hm-notch.done .hn-no::after { content: ' ✓'; color: #2c7a3a; }
@keyframes glow { 50% { box-shadow: 0 4px 0 var(--ink), 0 0 30px rgba(255,200,90,.9); } }
.hm-cloud { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(rgba(201,193,227,0), rgba(201,193,227,.75) 18%, rgba(160,150,200,.95)); pointer-events: none; }
.hm-cloud::before { content: ''; position: absolute; top: -20px; left: -5%; right: -5%; height: 60px; background: radial-gradient(ellipse at 10% 60%, rgba(235,230,255,.9) 0 30px, transparent 31px), radial-gradient(ellipse at 30% 60%, rgba(235,230,255,.9) 0 40px, transparent 41px), radial-gradient(ellipse at 55% 60%, rgba(235,230,255,.9) 0 34px, transparent 35px), radial-gradient(ellipse at 80% 60%, rgba(235,230,255,.9) 0 44px, transparent 45px); animation: drift 6s ease-in-out infinite alternate; }
.hm-cloud-lbl { position: absolute; bottom: calc(100% + 98px); left: 26px; font-size: 20px; color: #efe6ff; font-family: var(--disp); background: rgba(18,13,28,.72); border: 2px solid var(--ink); border-radius: 12px; padding: 5px 14px 3px; white-space: nowrap; } /* 큰 '등반' 버튼 위로 올림(전에는 버튼 밑에 깔렸다) */
.hm-main { position: absolute; left: 0; right: 0; bottom: 170px; display: flex; justify-content: center; }
.btn.climb { min-width: 520px; display: flex; flex-direction: column; align-items: center; padding: 16px 30px; }
.btn.climb small { display: block; font-size: 20px; opacity: .8; }
.hm-tabs { position: absolute; left: 16px; right: 16px; bottom: 16px; height: 130px; display: flex; gap: 12px; }
.hm-tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: linear-gradient(#5b4433, #3a2a1f); border: 3px solid var(--ink); border-radius: 14px; box-shadow: 0 5px 0 var(--ink); font-family: var(--disp); font-size: 26px; color: var(--paper); }
.hm-tab i { font-style: normal; font-size: 40px; }
.hm-tab.on { background: linear-gradient(#ffe08a, #e8a93d); color: var(--ink); }
.hm-tab.lock { opacity: .55; }

/* ───── 컷신 ───── */
.sv-wrap { position: absolute; inset: 0; background: #0c0a12; }
.sv { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.sv::-webkit-scrollbar { display: none; }
.sv-head { position: absolute; top: 0; left: 0; right: 0; height: 84px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; background: linear-gradient(rgba(10,8,16,.9), rgba(10,8,16,0)); transition: transform .3s; z-index: 2; }
.sv-head.hide { transform: translateY(-90px); }
.sv-ep { font-family: var(--disp); font-size: 28px; } .sv-ep b { color: var(--gold); }
.sv-tools { display: flex; gap: 10px; }
.sv-tools .btn.tool { font-size: 24px; padding: 10px 16px; } /* 재테스트: 자동 넘김·건너뛰기가 작다 */
.sv-col { width: 720px; padding-bottom: 60px; }
.sv-top-pad { height: 90px; }
.cut { position: relative; width: 720px; margin-bottom: 26px; overflow: hidden; background: #1a1624; }
.cut-img { position: relative; width: 720px; overflow: hidden; }
.cut-img img { position: absolute; left: 0; width: 720px; display: block; transition: transform .1s linear; }
.cut-img.missing { background: radial-gradient(ellipse at 50% 120%, #8d83b8, #2a2340 70%); }
.cut.fx-fadeIn { opacity: 0; transition: opacity 1.2s; } .cut.fx-fadeIn.in { opacity: 1; }
.cut.fx-zoomIn img { transform: scale(1.18); transition: transform 1.4s ease-out; } .cut.fx-zoomIn.in img { transform: scale(1); }
.cut.shake { animation: shake .5s; }
.cut.flash::after { content: ''; position: absolute; inset: 0; background: #fff; animation: flashOut .6s forwards; }
.cut-cloud { position: absolute; left: -10%; right: -10%; bottom: -100%; height: 100%; background: linear-gradient(rgba(210,200,240,0), rgba(220,212,245,.95) 30%); transition: bottom 2.2s ease-out; }
.cut.in .cut-cloud { bottom: -42%; } /* 컷의 아래 절반쯤만 덮는다(전에는 거의 다 덮여 빈 컷처럼 보였다) */
.cut-bg { width: 720px; }
.cut-bg.bg-black { background: #050407; } .cut-bg.bg-white { background: #f7f3ea; } .cut-bg.bg-cloud { background: radial-gradient(ellipse at 50% 80%, #e8e2fb, #9d93c4); }
@keyframes shake { 20% { transform: translate(-10px, 4px); } 40% { transform: translate(8px, -6px); } 60% { transform: translate(-6px, 2px); } 80% { transform: translate(4px, 0); } }
.cut-texts { position: absolute; inset: 0; padding: 26px 26px; display: flex; flex-direction: column; gap: 14px; pointer-events: none; }
.cut-texts.center { justify-content: center; align-items: stretch; }
.cut-texts > * { opacity: 0; transform: translateY(14px) scale(.96); }
.cut.in .cut-texts > * { animation: bubIn .35s forwards cubic-bezier(.2,1.3,.4,1); }
@keyframes bubIn { to { opacity: 1; transform: none; } }
.bub { position: relative; max-width: 520px; padding: 16px 24px; background: #fffdf6; color: #14100c; border: 3.5px solid var(--ink); border-radius: 30px; font-size: 27px; line-height: 1.45; box-shadow: 4px 5px 0 rgba(0,0,0,.35); }
.bub.l { align-self: flex-start; } .bub.r { align-self: flex-end; }
.bub .who { position: absolute; top: -18px; left: 22px; font-family: var(--disp); font-size: 18px; background: var(--ink); color: var(--amber2); padding: 1px 10px; border-radius: 8px; }
.bub.r .who { left: auto; right: 22px; }
.bub.think { border-style: dashed; border-radius: 40px; background: rgba(255,253,246,.92); font-style: italic; }
.bub.whisper { border-width: 2px; font-size: 23px; color: #4a3f36; }
.bub.shout { font-family: var(--disp); font-size: 34px; border-width: 5px; border-radius: 10px; background: #fff; transform: rotate(-1.5deg); box-shadow: 6px 6px 0 var(--ink); }
.cut.in .bub.shout { animation: bubIn .35s forwards, shoutShake .3s .35s; }
@keyframes shoutShake { 30% { transform: rotate(1deg) scale(1.04); } 60% { transform: rotate(-2deg); } }
.cap { align-self: flex-start; max-width: 560px; padding: 12px 20px; background: rgba(250,240,215,.95); color: #2a1d12; border: 3px solid var(--ink); font-size: 25px; line-height: 1.45; box-shadow: 3px 4px 0 rgba(0,0,0,.4); }
.sys { align-self: center; text-align: center; font-family: var(--disp); font-size: 34px; color: #f6eedd; text-shadow: 0 0 20px rgba(255,220,150,.6); letter-spacing: 2px; }
.cut-bg.bg-white ~ .cut-texts .sys { color: #2a1d12; text-shadow: none; }
/* 컷신 넘기기 안내(처음 조금 내리면 사라진다) */
.sv-hint { position: absolute; left: 50%; bottom: 46px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 10px 22px; border-radius: 30px; background: rgba(18,13,28,.82); border: 3px solid var(--ink); color: var(--paper); font-size: 22px; white-space: nowrap; pointer-events: none; z-index: 6; transition: opacity .4s; animation: hintBob 1.4s ease-in-out infinite; }
.sv-hint i { font-style: normal; color: var(--gold); }
.sv-hint.out { opacity: 0; }
@keyframes hintBob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }
.onoma { position: absolute; font-family: var(--disp); font-size: 86px; color: #fff; -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; text-shadow: 6px 6px 0 var(--ink); transform: rotate(var(--rot)) scale(.2); opacity: 0; pointer-events: none; white-space: nowrap; }
.cut.in .onoma { animation: onoPop .45s .2s forwards cubic-bezier(.2,1.6,.4,1); }
@keyframes onoPop { to { opacity: 1; transform: rotate(var(--rot)) scale(1); } }
.onoma.p-c { left: 50%; top: 45%; margin-left: -200px; } .onoma.p-tl { left: 30px; top: 30px; } .onoma.p-tr { right: 30px; top: 30px; } .onoma.p-bl { left: 30px; bottom: 30px; } .onoma.p-br { right: 30px; bottom: 30px; }
.sv-tail { padding: 40px 0 80px; display: flex; flex-direction: column; align-items: center; gap: 30px; }
.sv-end { text-align: center; }
.sv-end-t { font-family: var(--disp); font-size: 54px; color: var(--gold); text-shadow: 3px 3px 0 var(--ink); }
.sv-teaser { margin-top: 18px; width: 600px; padding: 20px; border: 3px solid var(--gold); border-radius: 14px; background: rgba(40,30,20,.6); font-size: 26px; }
.sv-teaser small { display: block; font-family: var(--disp); color: var(--amber2); margin-bottom: 6px; }
#stage.tx0 .bub, #stage.tx0 .cap { font-size: 23px; } #stage.tx2 .bub, #stage.tx2 .cap { font-size: 32px; }

/* ───── 서약 선택 ───── */
.ch { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; padding: 120px 40px 60px; gap: 30px; overflow: hidden; }
.ch-bg { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 30%, rgba(255,210,120,.25), transparent 50%), radial-gradient(ellipse at 50% 100%, #3c3160, #0b0912 70%); }
.ch-bg::after { content: ''; position: absolute; left: 50%; top: 140px; width: 420px; height: 420px; margin-left: -210px; border-radius: 50%; border: 3px solid rgba(255,220,150,.3); box-shadow: 0 0 80px rgba(255,200,100,.2), inset 0 0 60px rgba(255,200,100,.15); animation: spin 30s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ch-img { position: absolute; inset: -30px; background-size: cover; background-position: center; filter: blur(6px) brightness(.55) saturate(.9); }
.ch-bg.over { background: radial-gradient(ellipse at 50% 30%, rgba(255,210,120,.22), transparent 50%), linear-gradient(rgba(11,9,18,.35), rgba(11,9,18,.85)); }
.ch-head { position: relative; text-align: center; }
.ch-head small { font-family: var(--disp); color: var(--amber2); font-size: 24px; }
.ch-prompt { font-family: var(--disp); font-size: 42px; margin-top: 14px; color: #fff7e0; text-shadow: 3px 3px 0 var(--ink); line-height: 1.3; }
.ch-opts { position: relative; display: flex; flex-direction: column; gap: 22px; width: 100%; margin-top: 30px; }
.ch-opt { padding: 26px 28px; text-align: left; background: linear-gradient(#efe1c0, #d6bf8f); color: var(--ink); border: 4px solid var(--ink); border-radius: 8px 30px 8px 30px; box-shadow: 0 7px 0 var(--ink); transition: all .25s; }
.ch-opt .ch-t { font-family: var(--disp); font-size: 34px; line-height: 1.3; }
.ch-opt .ch-oath { margin-top: 10px; font-size: 20px; color: #5a3e22; }
.ch-opt .ch-oath b { color: #6a2f9a; }
.ch.decided .ch-opt:not(.picked) { opacity: 0; transform: translateX(-60px); }
.ch-opt.picked { background: linear-gradient(#fff3c4, #ffd36a); transform: scale(1.04); box-shadow: 0 7px 0 var(--ink), 0 0 60px rgba(255,210,100,.9); }
.ch-foot { position: relative; font-size: 20px; color: #cfc4e6; text-align: center; margin-top: auto; }

/* ───── 출전 준비 ───── */
.pp { position: absolute; inset: 0; padding: 30px 26px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.pp-bg { position: absolute; inset: 0; background: url(../assets/img/bg/f1_backdrop.webp) center/cover; filter: brightness(.38) saturate(.8); }
.pp > *:not(.pp-bg) { position: relative; }
.pp-head { text-align: center; padding: 10px 10px 16px; background: rgba(15,11,22,.7); border: 3px solid var(--ink); border-radius: 16px; }
.pp-head small { font-family: var(--disp); color: var(--amber2); font-size: 22px; }
.pp-name { font-family: var(--disp); font-size: 50px; text-shadow: 3px 3px 0 var(--ink); }
.pp-brief { font-size: 24px; color: var(--paper2); margin: 4px 0 10px; }
.pp-rules { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.pp-rules span { font-size: 18px; background: rgba(160,92,224,.3); border: 2px solid rgba(200,160,255,.5); padding: 2px 10px; border-radius: 8px; }
.pp-sub { font-family: var(--disp); font-size: 22px; color: var(--amber2); text-shadow: 2px 2px 0 var(--ink); }
.pp-party { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pp-slot { height: 220px; border: 3px solid var(--ink); border-radius: 14px; background: linear-gradient(rgba(60,50,80,.85), rgba(25,20,35,.9)); display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 6px; position: relative; }
.pp-slot img { height: 128px; object-fit: contain; filter: drop-shadow(0 4px 0 rgba(0,0,0,.4)); }
.pp-slot.req { border-color: var(--gold); }
.pp-slot.empty { justify-content: center; color: #8a80a0; font-size: 20px; border-style: dashed; }
.pp-nm { font-family: var(--disp); font-size: 24px; } .pp-nm small { font-size: 16px; color: var(--paper2); }
.pp-role .tag { font-size: 14px; margin: 0 2px; padding: 1px 6px; }
.pp-bench-row { display: flex; gap: 10px; margin-top: 6px; }
.pp-b { width: 120px; height: 120px; border: 3px solid var(--ink); border-radius: 12px; background: rgba(30,24,44,.85); display: flex; flex-direction: column; align-items: center; justify-content: flex-end; font-family: var(--disp); font-size: 18px; padding-bottom: 4px; }
.pp-b img { height: 76px; }
.pp-oaths { display: flex; flex-direction: column; gap: 10px; flex: 1; min-height: 0; }
.pp-oslots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.oc { min-height: 196px; padding: 10px; border: 3px solid var(--ink); border-radius: 10px; background: linear-gradient(#efe1c0, #d6bf8f); color: var(--ink); font-size: 15px; line-height: 1.3; display: flex; flex-direction: column; gap: 4px; }
.oc.story { background: linear-gradient(#fff0b8, #f0c548); box-shadow: 0 0 20px rgba(240,197,72,.6); }
.oc.empty { background: rgba(30,24,44,.6); border-style: dashed; color: #8a80a0; align-items: center; justify-content: center; font-size: 18px; }
.oc-k { font-family: var(--disp); font-size: 14px; color: #6a2f9a; } .oc-n { font-family: var(--disp); font-size: 21px; }
.oc-c { font-weight: 700; } .oc-e { color: #2a5a2a; } .oc-b { color: #6a2f9a; }
.oc .mst { margin: auto 0 0; color: #a06a00; font-size: 14px; }
.pp-opool { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; overflow-y: auto; padding-right: 4px; }
.op-chip { text-align: left; padding: 10px 12px; border: 3px solid var(--ink); border-radius: 10px; background: rgba(40,32,56,.9); display: flex; flex-direction: column; gap: 2px; }
.op-chip b { font-family: var(--disp); font-size: 22px; font-weight: 400; } .op-chip small { font-size: 16px; color: #cfc4e6; }
.op-chip.on { background: linear-gradient(#5a3a85, #3a2457); border-color: var(--gold); }
.op-chip.off { opacity: .45; }
.pp-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }

/* ───── 결과 ───── */
.rs { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; padding: 70px 40px 50px; gap: 14px; }
.rs-bg { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 25%, rgba(255,200,100,.35), transparent 55%), linear-gradient(#1c1630, #0b0912); }
.rs.lose .rs-bg { background: radial-gradient(ellipse at 50% 25%, rgba(160,140,220,.3), transparent 55%), linear-gradient(#1c1630, #0b0912); }
.rs > *:not(.rs-bg) { position: relative; }
.rs-stamp { font-family: var(--disp); font-size: 96px; color: #fff3c4; text-shadow: 0 6px 0 var(--ink), 0 0 40px rgba(255,200,90,.7); animation: stamp .5s cubic-bezier(.2,1.6,.4,1); transform: rotate(-4deg); }
.rs.lose .rs-stamp { color: #d9cdf5; text-shadow: 0 6px 0 var(--ink), 0 0 40px rgba(160,140,220,.7); }
@keyframes stamp { from { transform: scale(2.4) rotate(-10deg); opacity: 0; } }
.rs-name { font-family: var(--disp); font-size: 32px; color: var(--paper2); }
.rs-why { font-size: 24px; color: #ffe9b0; margin-top: -6px; text-align: center; }
.rs.lose .rs-why { color: #d9cdf5; }
.rs-stars { display: flex; gap: 22px; }
.rs-party { display: flex; justify-content: center; align-items: flex-end; gap: 4px; height: 170px; }
.rs-party img { height: 160px; filter: drop-shadow(0 6px 4px rgba(0,0,0,.6)); animation: hop .5s both cubic-bezier(.2,1.6,.4,1); }
.rs.lose .rs-party img { filter: grayscale(.6) brightness(.7); height: 130px; }
@keyframes hop { from { transform: translateY(60px); opacity: 0; } }
.oc.empty.wide { grid-column: span 3; font-size: 17px; text-align: center; }
.rs-stars .st { font-style: normal; font-size: 96px; color: rgba(255,255,255,.15); -webkit-text-stroke: 3px var(--ink); }
.rs-stars .st.on { animation: starIn .45s both cubic-bezier(.2,1.8,.4,1); color: var(--gold); text-shadow: 0 0 30px rgba(255,210,80,.8); }
@keyframes starIn { from { transform: scale(3); opacity: 0; } }
.rs-star-lbl { display: flex; gap: 16px; font-size: 17px; color: #bfb3da; }
.rs-list { width: 100%; background: rgba(244,230,200,.95); color: var(--ink); border: 4px solid var(--ink); border-radius: 16px; padding: 18px 24px; display: flex; flex-direction: column; gap: 8px; font-size: 24px; }
.rs-row { display: flex; justify-content: space-between; border-bottom: 2px dashed rgba(27,19,15,.2); padding-bottom: 6px; }
.rs-row b { font-family: var(--disp); font-weight: 400; }
.rs-row.ok { color: #1f6b2c; } .rs-row.brk { color: #6a2f9a; } .rs-row.up { color: #b35a00; animation: popIn .4s; }
.rs-tip { font-size: 21px; color: #4a3a2a; }
/* 결과: 동료별 활약 */
.rs-team { display: flex; flex-direction: column; gap: 4px; border-bottom: 2px dashed rgba(27,19,15,.2); padding-bottom: 8px; }
.rs-mate { display: flex; align-items: center; gap: 8px; font-size: 20px; }
.rs-mate img { width: 38px; height: 38px; object-fit: cover; object-position: 50% 12%; border-radius: 50%; border: 2px solid var(--ink); background: #e9d9b6; flex: none; }
.rs-mate b { font-family: var(--disp); font-weight: 400; min-width: 46px; }
.rs-mate em { font-style: normal; font-size: 14px; padding: 2px 7px 1px; border-radius: 8px; background: #cfc6b4; white-space: nowrap; }
.rs-mate em.r-lead { background: #ff9d6a; } .rs-mate em.r-belay { background: #8ec5ff; } .rs-mate em.r-guide { background: #c9a6ff; } .rs-mate em.r-supply { background: #8fe39b; }
.rs-mate span { margin-left: auto; color: #4a3a2a; font-size: 19px; text-align: right; }
.rs-foot { display: flex; gap: 16px; margin-top: auto; flex-wrap: wrap; justify-content: center; }

/* ───── 전투 ───── */
.bt { position: absolute; inset: 0; }
.bt-cv { position: absolute; inset: 0; width: 720px; height: 1280px; touch-action: none; }
.bt-top { position: absolute; top: 0; left: 0; right: 0; height: 150px; padding: 12px 14px 8px; background: linear-gradient(rgba(12,9,20,.96), rgba(12,9,20,.75) 80%, rgba(12,9,20,0)); display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.bt-top > * { pointer-events: auto; }
.bt-row1 { display: flex; align-items: center; gap: 10px; }
.bt-turn { width: 74px; height: 64px; border: 3px solid var(--ink); border-radius: 12px; background: linear-gradient(#5b4433, #3a2a1f); display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--disp); font-size: 32px; line-height: 1; }
.bt-turn small { font-size: 12px; color: var(--amber2); }
.bt-title { flex: 1; min-width: 0; } .bt-title b { display: block; font-family: var(--disp); font-size: 28px; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .bt-title span { font-size: 17px; color: var(--paper2); }
.bt-cloud { display: flex; align-items: center; gap: 6px; padding: 6px 14px; border: 3px solid var(--ink); border-radius: 30px; background: linear-gradient(#cfc6ec, #8f84bd); color: #241d3a; font-family: var(--disp); }
.bt-cloud i { font-style: normal; font-size: 30px; } .bt-cloud span { font-size: 16px; } .bt-cloud b { font-size: 28px; font-weight: 400; }
.bt-cloud.warn { background: linear-gradient(#c9a0ff, #7b45d6); color: #fff; animation: warnPulse .8s ease-in-out infinite; }
@keyframes warnPulse { 50% { transform: scale(1.08); box-shadow: 0 0 24px rgba(180,120,255,.9); } }
.bt-row2 { display: flex; align-items: center; gap: 10px; }
.bt-oaths { flex: 1; display: flex; gap: 6px; overflow: hidden; }
.bt-nooath { font-size: 18px; color: #8a80a0; padding: 6px; }
.oath-tok { display: flex; align-items: center; gap: 4px; padding: 6px 10px; border: 3px solid var(--ink); border-radius: 8px; background: linear-gradient(#f3e3bd, #d6bd8a); color: var(--ink); font-family: var(--disp); font-size: 17px; white-space: nowrap; box-shadow: 0 3px 0 var(--ink); }
.oath-tok i { font-style: normal; color: #6a2f9a; }
.oath-tok.story { background: linear-gradient(#fff0b8, #f0c548); }
.oath-tok.broken { background: linear-gradient(#5a3a6a, #3a2448); color: #c9a6e6; text-decoration: line-through; box-shadow: 0 3px 0 var(--ink); }
.bt-tools { display: flex; gap: 6px; }
.bt-bottom { position: absolute; left: 0; right: 0; bottom: 0; height: 280px; padding: 14px 16px 16px; background: linear-gradient(rgba(14,10,22,0), rgba(14,10,22,.92) 14%, rgba(14,10,22,.98)); display: flex; flex-direction: column; gap: 10px; }
.bt-hint { flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 23px; color: var(--paper2); padding: 0 30px; }
.bt-hint.small { flex: none; font-size: 18px; }
.bt-roster { display: flex; gap: 10px; justify-content: center; }
.bt-rb { width: 150px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-family: var(--disp); font-size: 18px; }
.bt-rb-face { width: 96px; height: 96px; border: 3px solid var(--ink); border-radius: 14px; background-color: #2c2440; background-size: 230% auto; background-position: 50% 3%; background-repeat: no-repeat; box-shadow: 0 4px 0 var(--ink); }
.bt-rb-hp { width: 96px; height: 8px; background: #2a1e1e; border: 2px solid var(--ink); border-radius: 4px; overflow: hidden; } .bt-rb-hp i { display: block; height: 100%; background: #5ee07a; }
.bt-rb.done { opacity: .45; filter: grayscale(.7); }
.bt-card { display: flex; gap: 14px; align-items: center; min-height: 104px; }
.bt-face { width: 100px; height: 100px; flex: none; border: 3px solid var(--ink); border-radius: 14px; background-color: #2c2440; background-size: 230% auto; background-position: 50% 3%; background-repeat: no-repeat; box-shadow: 0 4px 0 var(--ink); }
.bt-face.chibi { background-size: contain; background-position: 50% 80%; }
.bt-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.bt-nm b { font-family: var(--disp); font-size: 30px; font-weight: 400; } .bt-nm .tag { font-size: 15px; } .bt-nm .lv { margin-left: 8px; font-size: 18px; color: var(--amber2); }
.bt-hp { position: relative; height: 22px; border: 3px solid var(--ink); border-radius: 8px; background: #2a1e1e; overflow: hidden; }
.bt-hp i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(#7dff96, #3cbf5a); } .bt-hp.en i { background: linear-gradient(#ff8b7a, #d64534); }
.bt-hp span { position: absolute; inset: 0; text-align: center; font-size: 15px; line-height: 16px; font-weight: 700; text-shadow: 1px 1px 0 #000; }
.bt-res { display: flex; align-items: center; gap: 6px; font-size: 17px; color: var(--paper2); }
.bt-res i { width: 16px; height: 16px; transform: rotate(45deg); background: rgba(255,255,255,.15); border: 2px solid var(--ink); }
.bt-res i.on { background: #ffd24d; }
.bt-res .st { margin-left: auto; font-size: 15px; color: #a99fc4; }
.bt-desc { font-size: 17px; color: #cfc4e6; }
.bt-intent { font-size: 18px; color: #ff9a8a; font-family: var(--disp); }
.bt-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.bt-prev { width: 100%; font-size: 18px; color: #ffd0c8; background: rgba(120,30,20,.5); border: 2px solid #ff6a5a; border-radius: 8px; padding: 4px 10px; }
.btn.act { font-size: 21px; padding: 10px 14px; border-radius: 10px; }
.btn.act.skill { background: linear-gradient(#6b4aa6, #432a72); display: flex; flex-direction: column; align-items: center; padding: 6px 16px; line-height: 1.1; }
.btn.act.skill small { font-size: 13px; color: var(--amber2); }
.btn.act.role { background: linear-gradient(#3d6a8a, #274a64); }
.btn.act.cancel { background: #3a3346; }
.bt-endrow { display: flex; gap: 12px; margin-top: auto; }
.btn.undo { flex: 0 0 200px; font-size: 22px; background: #3a3346; }
.btn.endturn { flex: 1; font-size: 30px; background: linear-gradient(#b25a32, #7e3a1d); }
.btn.endturn.glow { background: linear-gradient(#ffe08a, #e8a93d); color: var(--ink); animation: glow 1.4s ease-in-out infinite; }
.btn.endturn.arm { background: linear-gradient(#e0503c, #9a2a1c); }
.bt-banner { position: absolute; left: 0; right: 0; top: 520px; height: 0; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--disp); font-size: 60px; color: #fff; text-shadow: 4px 4px 0 var(--ink); pointer-events: none; transition: height .2s; }
.bt-banner.on { height: 150px; background: linear-gradient(90deg, transparent, rgba(15,10,24,.9) 15%, rgba(15,10,24,.9) 85%, transparent); }
.bt-banner.enemy { color: #ff8b7a; } .bt-banner.cloud { color: #d8c8ff; } .bt-banner.ally { color: #ffe08a; }
.bt-banner.intro.on { height: 230px; }
.in-name { font-size: 64px; } .in-brief { font-family: var(--body); font-size: 26px; color: var(--paper2); text-shadow: 2px 2px 0 var(--ink); margin-top: 8px; padding: 0 40px; text-align: center; }
.bt-guide { position: absolute; left: 16px; right: 16px; bottom: 296px; display: none; gap: 0; align-items: flex-end; }
.bt-guide.on { display: flex; animation: popIn .25s; }
.gd-face { width: 160px; height: 200px; flex: none; background-size: 200% auto; background-position: 50% 4%; background-repeat: no-repeat; margin-right: -20px; position: relative; z-index: 1; filter: drop-shadow(4px 0 0 var(--ink)); }
.gd-box { flex: 1; background: linear-gradient(#f6ead0, #e6d2a6); color: var(--ink); border: 4px solid var(--ink); border-radius: 16px; padding: 14px 18px 14px 36px; box-shadow: 0 6px 0 var(--ink); }
.gd-who { font-family: var(--disp); font-size: 20px; color: #6a2f9a; }
.gd-txt { font-size: 24px; line-height: 1.45; margin: 6px 0 10px; }
.gd-nav { display: flex; justify-content: space-between; align-items: center; font-size: 18px; color: #6b4a2a; }
.gd-next { font-family: var(--disp); font-weight: 400; font-size: 24px; color: var(--paper); background: linear-gradient(#5b4433, #3d2c21); border: 3px solid var(--ink); border-radius: 12px; padding: 6px 16px 4px; box-shadow: 0 4px 0 var(--ink); animation: nextBlink 1s ease-in-out infinite; }
@keyframes nextBlink { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.45); } }

/* ───── 동료 ───── */
.pt { position: absolute; inset: 0; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.pt-bg { position: absolute; inset: 0; background: url(../assets/img/bg/camp_f1.webp) center/cover; filter: brightness(.35); }
.pt > *:not(.pt-bg) { position: relative; }
.pt-head { display: flex; align-items: center; gap: 16px; }
.pt-tabs { display: flex; gap: 8px; }
.pt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; overflow-y: auto; }
.pt-card { height: 330px; border: 4px solid var(--ink); border-radius: 18px; background: linear-gradient(rgba(70,58,92,.9), rgba(28,22,40,.95)); display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 10px; box-shadow: 0 6px 0 var(--ink); }
.pt-card img { height: 200px; object-fit: contain; }
.pt-card.lock { justify-content: center; opacity: .6; }
.pt-q { font-family: var(--disp); font-size: 120px; color: #5a5070; }
.pt-nm { font-family: var(--disp); font-size: 30px; } .pt-nm small { font-size: 20px; color: var(--amber2); }
.pt-tags .tag { font-size: 16px; }
.pd { display: flex; gap: 16px; }
.pd-art { width: 230px; height: 560px; flex: none; background-size: contain; background-position: 50% 0; background-repeat: no-repeat; }
.pd-info { flex: 1; display: flex; flex-direction: column; gap: 8px; font-size: 20px; line-height: 1.4; }
.pd-line { font-family: var(--disp); font-size: 22px; color: #5a2f8a; }
.pd-tags .tag { margin-left: 0; }
.pd-stats { background: rgba(27,19,15,.08); padding: 8px; border-radius: 8px; }
.pd-sk b { font-family: var(--disp); font-weight: 400; color: #7a4a1e; }
.ob-list { display: flex; flex-direction: column; gap: 10px; overflow-y: auto; }
.ob { background: linear-gradient(#efe1c0, #d6bf8f); color: var(--ink); border: 3px solid var(--ink); border-radius: 12px; padding: 12px 16px; font-size: 19px; }
.ob.lock { background: rgba(40,32,56,.9); color: #8a80a0; }
.ob-n { font-family: var(--disp); font-size: 26px; } .ob-n small { font-size: 16px; color: #7a4a1e; }
.ob-s { color: #5a2f8a; margin: 2px 0 4px; } .ob-r b { color: #7a4a1e; } .ob-r.brk b { color: #6a2f9a; } .ob-m { font-size: 16px; color: #6b4a2a; margin-top: 4px; }

/* ───── 야영지 ───── */
.cp { position: absolute; inset: 0; overflow: hidden; }
.cp-bg { position: absolute; inset: 0; background: url(../assets/img/bg/camp_f1.webp) center/cover; }
.cp-fire { position: absolute; left: 50%; top: 900px; width: 260px; height: 260px; margin: -130px 0 0 -130px; border-radius: 50%; background: radial-gradient(circle, rgba(255,190,90,.55), rgba(255,120,40,.15) 50%, transparent 70%); animation: flicker 1.2s ease-in-out infinite alternate; pointer-events: none; }
@keyframes flicker { 50% { transform: scale(1.12); opacity: .8; } }
.cp-head { position: absolute; top: 24px; left: 24px; right: 24px; display: flex; align-items: center; gap: 16px; }
.cp-t { font-family: var(--disp); font-size: 30px; text-shadow: 3px 3px 0 var(--ink); }
.cp-p { position: absolute; width: 150px; height: 180px; margin-left: -75px; margin-top: -170px; display: flex; align-items: flex-end; justify-content: center; }
.cp-p img { height: 160px; filter: drop-shadow(0 6px 4px rgba(0,0,0,.6)); animation: bob 2.4s ease-in-out infinite; }
.cp-p:nth-child(odd) img { animation-delay: .6s; }
@keyframes bob { 50% { transform: translateY(-5px); } }
.cp-bub { position: absolute; width: 240px; padding: 10px 14px; background: #fffdf6; color: var(--ink); border: 3px solid var(--ink); border-radius: 18px; font-size: 19px; opacity: 0; pointer-events: none; }
.cp-bub.on { animation: bubFade 3.2s forwards; }
@keyframes bubFade { 0% { opacity: 0; transform: translateY(10px); } 10%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.cp-chats { position: absolute; top: 110px; left: 24px; right: 24px; max-height: 470px; overflow-y: auto; background: rgba(15,11,22,.78); border: 3px solid var(--ink); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.cp-ch-h { font-family: var(--disp); color: var(--amber2); font-size: 24px; }
.cp-chat { position: relative; display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border: 3px solid var(--ink); border-radius: 10px; background: linear-gradient(#efe1c0, #d6bf8f); color: var(--ink); font-size: 18px; }
.cp-chat b { font-family: var(--disp); font-size: 22px; font-weight: 400; }
.cp-chat.lock { background: rgba(50,40,66,.9); color: #9a90b0; }
.cp-chat.seen { opacity: .8; }
.cp-chat i { position: absolute; right: -6px; top: -10px; font-style: normal; font-family: var(--disp); font-size: 14px; background: var(--red); color: #fff; padding: 1px 8px; border-radius: 8px; border: 2px solid var(--ink); }
.cp-empty { font-size: 18px; color: #9a90b0; }
.vn { position: absolute; inset: 0; background: rgba(8,6,14,.55); }
.vn-face { position: absolute; left: 30px; bottom: 260px; width: 380px; height: 760px; background-size: contain; background-position: 50% 100%; background-repeat: no-repeat; animation: faceIn .25s; }
.vn-box { position: absolute; left: 20px; right: 20px; bottom: 30px; min-height: 230px; background: linear-gradient(#f6ead0, #e6d2a6); color: var(--ink); border: 4px solid var(--ink); border-radius: 18px; padding: 22px 26px; box-shadow: 0 8px 0 var(--ink); }
.vn-who { font-family: var(--disp); font-size: 30px; color: #7a4a1e; }
.vn-t { font-size: 28px; line-height: 1.5; margin-top: 8px; }
.vn-next { position: absolute; right: 22px; bottom: 14px; animation: blink 1s infinite; }

/* ───── 설정·기타 ───── */
.set { display: flex; flex-direction: column; gap: 12px; }
.set-row { display: flex; align-items: center; justify-content: space-between; }
.set-row b { font-family: var(--disp); font-weight: 400; }
.set-opts { display: flex; gap: 6px; }
/* 앱 전용(js/screens/home.js appSettings · askPush · appCorner). 웹에서는 그려지지 않는다 */
.set-app { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 3px dashed rgba(27,19,15,.3); }
.set-app:empty { display: none; }
.set-app.busy { opacity: .6; pointer-events: none; }
.set-app .set-row b { display: flex; flex-direction: column; max-width: 400px; }
.set-app .set-row b small { font-family: var(--body, sans-serif); font-size: 17px; line-height: 1.35; color: #6b4a2a; }
.set-app .set-row.off { opacity: .45; pointer-events: none; }
.set-note { margin: 0; font-size: 19px; color: #a03a2a; }
.set-links, .pa-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.set-ver { margin: 0; font-size: 17px; color: #6b4a2a; }
.app-link { padding: 6px 2px; border: 0; background: none; color: #5a2f8a; font: inherit; font-size: 20px; text-decoration: underline; }
.pa p { font-size: 22px; line-height: 1.5; }
.pa .pa-q { font-family: var(--disp); font-size: 28px; }
.pa .pa-n { font-size: 19px; color: #6b4a2a; }
.pa-legal { margin-top: 12px; font-size: 19px; color: #6b4a2a; }
.tt-app { position: absolute; right: 18px; bottom: 66px; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 16px; color: #f4e6c8; opacity: .75; pointer-events: none; text-align: right; }
.tt-app .tt-app-n:empty { display: none; }
.tt-app .tt-app-n { padding: 6px 12px; border-radius: 10px; background: rgba(15,12,22,.78); border: 2px solid var(--gold); font-size: 18px; }
.unlock { display: flex; flex-direction: column; gap: 10px; }
.ul-o { background: rgba(160,92,224,.15); border: 2px solid rgba(106,47,154,.5); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; }
.ul-o b { font-family: var(--disp); font-weight: 400; font-size: 26px; color: #5a2f8a; } .ul-o span { color: #5a3e22; } .ul-o small { font-size: 18px; color: #6b4a2a; }
.cor-intro p { margin: 6px 0; font-size: 22px; }
.boon { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; padding: 180px 40px 80px; gap: 30px; }
.boon-bg { position: absolute; inset: 0; background: url(../assets/img/bg/corridor.webp) center/cover; filter: brightness(.45); }
.boon > *:not(.boon-bg) { position: relative; }
.boon-h { font-family: var(--disp); font-size: 54px; text-align: center; text-shadow: 3px 3px 0 var(--ink); } .boon-h small { display: block; font-size: 26px; color: var(--amber2); }
.boon-list { display: flex; flex-direction: column; gap: 18px; width: 100%; }
.boon-c { padding: 24px; background: linear-gradient(#efe1c0, #d6bf8f); color: var(--ink); border: 4px solid var(--ink); border-radius: 18px; box-shadow: 0 6px 0 var(--ink); text-align: left; display: flex; flex-direction: column; gap: 6px; animation: popIn .3s both; }
.boon-c:nth-child(2) { animation-delay: .1s; } .boon-c:nth-child(3) { animation-delay: .2s; }
.boon-c b { font-family: var(--disp); font-size: 34px; font-weight: 400; } .boon-c span { font-size: 22px; }
.boon-f { font-size: 20px; color: var(--paper2); margin-top: auto; }

/* 층 넘겨 보기(홈) */
.hm-floor { display: flex; align-items: center; gap: 8px; }
.hm-floor > span { flex: 1; text-align: center; white-space: nowrap; }
.hm-fbtn { width: 46px; height: 46px; border-radius: 50%; border: 3px solid var(--ink); background: var(--gold); color: var(--ink); font-size: 22px; font-family: var(--disp); line-height: 1; padding: 0; }
.hm-fbtn.off { opacity: .25; }
.hm-f2 .hm-bg { filter: hue-rotate(-18deg) saturate(1.15); }
.hm-f3 .hm-bg { filter: hue-rotate(95deg) saturate(.8) brightness(.8); }

/* ───── 광고 자리(js/ads.js, 2026-11-17) ───── */
.ch-ad, .rs-ad { position: relative; display: grid; gap: 4px; width: 100%; margin-top: 18px; padding: 18px 24px 18px 96px; text-align: left; color: var(--ink);
  background: linear-gradient(#fff0b0, #f0b84a); border: 4px solid var(--ink); border-radius: 22px; box-shadow: inset 0 3px 0 rgba(255,255,255,.6), 0 6px 0 var(--ink), 0 0 34px rgba(255,200,90,.45); }
.ch-ad i, .rs-ad i { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); font-style: normal; font-family: var(--disp); font-size: 20px; padding: 8px 12px; color: #fff3c8; background: var(--ink); border-radius: 10px; }
.ch-ad b, .rs-ad b { font-family: var(--disp); font-size: 28px; line-height: 1.2; }
.ch-ad span, .rs-ad span { font-size: 19px; color: #5a3e22; }
.ch-ad.got, .rs-ad.got { padding-left: 24px; background: linear-gradient(#e9dcff, #b99cf0); box-shadow: inset 0 3px 0 rgba(255,255,255,.5), 0 6px 0 var(--ink), 0 0 34px rgba(170,130,255,.5); pointer-events: none; }
.rs-ad { margin: 14px 0 0; }
.ch.decided .ch-ad:not(.got) { opacity: .35; pointer-events: none; }
.ad-fake { position: fixed; inset: 0; z-index: 9999; display: flex; flex-direction: column; background: #0c0a14; color: #fff; font-family: var(--body, sans-serif); }
.ad-fake .ad-tag { padding: 14px 18px; font-size: 15px; letter-spacing: .08em; color: #ffd98a; }
.ad-fake .ad-body { flex: 1; display: grid; place-content: center; gap: 12px; text-align: center; margin: 0 20px; border: 2px dashed rgba(255,255,255,.35); border-radius: 18px; }
.ad-fake .ad-body b { font-size: 22px; } .ad-fake .ad-body span { font-size: 15px; color: #b9b0d0; }
.ad-fake .ad-foot { display: flex; justify-content: space-between; gap: 12px; padding: 16px 18px calc(16px + env(safe-area-inset-bottom)); }
.ad-veil { position: fixed; inset: 0; z-index: 9998; display: grid; place-content: center; padding: 0 24px; text-align: center; background: rgba(8,6,14,.86); color: #f4e6c8; font: 18px var(--body, sans-serif); }
.ad-fake button { font-size: 17px; padding: 12px 18px; border-radius: 12px; border: 0; background: #2a2440; color: #fff; }
.ad-fake .ad-close { margin-left: auto; background: #ffd24d; color: #1a1426; font-weight: 700; } .ad-fake .ad-close:disabled { background: #3a3450; color: #9a90b8; }
/* 결과 화면: 광고 버튼이 들어가도 「계속」이 화면 안에 남게 — 목록이 줄어들며 안에서 스크롤 */
.rs-list { flex: 0 1 auto; min-height: 120px; overflow-y: auto; }
.rs-ad, .rs-foot, .rs-stamp, .rs-stars, .rs-party { flex-shrink: 0; }
.rs-ad { margin: 0; padding-top: 12px; padding-bottom: 12px; }
.rs-foot { margin-top: 0; }
.rs > .rs-list + .rs-foot { margin-top: auto; }

/* ───── 앱 전용: 계정 · 서버 백업 · 회랑 주간 랭킹 (js/screens/home.js · corridor.js, docs/ACCOUNT_SPEC.md) ───── */
.set-acct { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 3px dashed rgba(27,19,15,.3); white-space: normal; }
.set-acct .set-row b { display: flex; flex-direction: column; max-width: 400px; }
.set-acct .set-row b small, .acct-note { font-family: var(--body); font-size: 18px; line-height: 1.4; color: #6b4a2a; }
.acct-rows { display: flex; flex-direction: column; gap: 6px; background: rgba(255,255,255,.35); border: 2px solid rgba(27,19,15,.25); border-radius: 12px; padding: 10px 14px; }
.acct-row { display: flex; align-items: center; gap: 12px; font-size: 21px; }
.acct-row .k { flex: 0 0 120px; color: #6b4a2a; }
.acct-row .v { flex: 1; font-family: var(--disp); font-weight: 400; }
.acct-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.acct-alert { display: flex; align-items: center; gap: 10px; justify-content: space-between; background: #fbe3c2; border: 2px solid #c27a2a; border-radius: 12px; padding: 8px 12px; font-size: 19px; line-height: 1.35; }
.acct-dlg .dlg-body { white-space: normal; }
.acct-msg { min-height: 1.4em; font-size: 19px; color: #a03a2a; margin: 6px 0 0; }
.acct-wait { font-size: 20px; color: #6b4a2a; }
.acct-warn { font-family: var(--disp); font-size: 28px; color: #8a2a1c; }
.acct-del { margin: 4px 0 8px 1.2em; font-size: 21px; }
.acct-age { display: flex; align-items: center; gap: 12px; margin: 12px 0; font-family: var(--disp); font-size: 26px; }
.acct-age input { width: 34px; height: 34px; accent-color: #3d2c21; }
.acct-provs { display: flex; flex-direction: column; gap: 12px; margin: 8px 0; }
.acct-prov { display: flex; align-items: center; justify-content: center; gap: 12px; height: 76px; border-radius: 14px; font-size: 27px; font-weight: 600; border: 0; font-family: -apple-system, 'Apple SD Gothic Neo', sans-serif; }
.acct-prov.apple { background: #000; color: #fff; }
.acct-prov.test { background: #3a3346; color: var(--paper); }
.acct-prov:disabled { opacity: .4; }
.acct-prov .pv-ico { width: 30px; height: 30px; }
.sv-cols { display: flex; gap: 12px; margin: 10px 0; }
.sv-col { flex: 1; display: flex; flex-direction: column; gap: 8px; background: rgba(255,255,255,.4); border: 2px solid rgba(27,19,15,.3); border-radius: 12px; padding: 12px; font-size: 20px; }
.sv-col h3 { margin: 0; font-family: var(--disp); font-weight: 400; font-size: 26px; display: flex; align-items: center; gap: 8px; }
.sv-newer { font-family: var(--body); font-size: 15px; background: var(--gold); border-radius: 8px; padding: 2px 8px; }
.sv-big b { font-family: var(--disp); font-weight: 400; font-size: 34px; }
.sv-when, .sv-empty { font-size: 17px; color: #6b4a2a; }
.sv-col .btn { margin-top: auto; }
.nick-list { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.nick-opt { padding: 12px 16px; font-family: var(--disp); font-size: 24px; text-align: left; background: rgba(255,255,255,.55); border: 2px solid rgba(27,19,15,.35); border-radius: 12px; color: var(--ink); }
.nick-opt:disabled { opacity: .5; }
.rk-tabs { display: flex; gap: 8px; margin-bottom: 8px; }
.rk-meta { font-size: 17px; color: #6b4a2a; margin: 4px 0; }
.rk-mine { font-size: 22px; margin: 4px 0 8px; } .rk-mine.none { font-size: 19px; color: #6b4a2a; }
.rk-list { list-style: none; margin: 0; padding: 0; max-height: 620px; overflow: auto; border: 2px solid rgba(27,19,15,.25); border-radius: 12px; background: rgba(255,255,255,.3); }
.rk-row { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-bottom: 1px solid rgba(27,19,15,.12); }
.rk-row.me { background: rgba(240,197,72,.45); }
.rk-n { flex: 0 0 46px; font-family: var(--disp); font-size: 26px; text-align: center; }
.rk-row.top .rk-n { color: #a8661a; }
.rk-who { flex: 1; display: flex; flex-direction: column; line-height: 1.2; }
.rk-who b { font-size: 21px; } .rk-who small { font-size: 15px; color: #6b4a2a; }
.rk-score { font-family: var(--disp); font-weight: 400; font-size: 26px; }
.rk-empty { font-size: 20px; color: #6b4a2a; }
.rk-how { margin-top: 10px; font-size: 18px; }
.rk-how summary { font-family: var(--disp); font-size: 22px; cursor: pointer; }
.rk-how ul { list-style: none; margin: 6px 0; padding: 0; }
.rk-how li { display: flex; gap: 10px; padding: 3px 0; align-items: baseline; }
.rk-how .k { flex: 0 0 150px; font-weight: 700; } .rk-how .d { flex: 1; line-height: 1.35; }
.rk-how .v { font-family: var(--disp); font-weight: 400; font-size: 21px; } .rk-how .v.neg { color: #a03a2a; }
.rk-rec { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin: 14px 0 6px; padding: 12px; background: #2b2233; color: var(--amber2); border-radius: 14px; border: 3px solid var(--ink); }
.rk-rec small { color: var(--paper2); font-size: 17px; margin-right: 6px; }
.rk-rec b { font-family: var(--disp); font-weight: 400; font-size: 54px; color: var(--gold); }
.rk-rec span { font-size: 22px; color: var(--paper2); }
