/* intro.css — 입단 서약서, 관문, 프롤로그 컷신(#cine), 전투 조작 안내(#coach) */

/* ---------- 컷신 ---------- */
#cine { position: fixed; inset: 0; z-index: 46; overflow: hidden; cursor: pointer; font-family: var(--pixel-font, 'Galmuri11', sans-serif); color: #fff; }
#cine.hide { display: none; }
#cine.full { background: #000; }
#cine.scene { background: transparent; }
#cine.scene .cn-stage { display: none; }
#cine.scene.idle { pointer-events: none; }
#cine.scene.idle .cn-box, #cine.scene.idle .cn-ui, #cine.scene.idle .cn-por { opacity: 0 !important; }
#cine.scene:not(.idle) { background: linear-gradient(transparent 50%, rgba(4,4,10,.55)); }
/* 대사 사이 걷기·카메라 연출: 멈춘 게 아니라는 표시 + 누르면 빨리 넘긴다(main.js F.sceneRush) */
#cine.on.scene.idle::after { content: '▶▶ 누르면 빨리 넘기기'; position: absolute; right: 14px; bottom: 12px; padding: 3px 8px; font-size: 11px; line-height: 1.2; color: #fff5d8; background: rgba(8,8,16,.62); border: 1px solid rgba(255,230,160,.35); text-shadow: 1px 1px 0 #000; animation: cnRush 1.2s steps(2) infinite; pointer-events: none; }
@keyframes cnRush { 50% { opacity: .45; } }
#cine.over { background: linear-gradient(rgba(4,4,10,.15), rgba(4,4,10,.1) 45%, rgba(4,4,10,.72)); }
#cine.cover > :not(.cn-stage) { display: none; }
#cine.leave { transition: opacity .9s; opacity: 0; pointer-events: none; }
#cine.shake { animation: cnShake .42s steps(8); }
@keyframes cnShake { 0%,100% { transform: none; } 20% { transform: translate(calc(var(--sh) * -1), var(--sh)); } 40% { transform: translate(var(--sh), calc(var(--sh) * -.6)); } 60% { transform: translate(calc(var(--sh) * -.6), calc(var(--sh) * -.4)); } 80% { transform: translate(calc(var(--sh) * .4), calc(var(--sh) * .3)); } }

.cn-stage { position: absolute; inset: 0; }
#cine.over .cn-stage { display: none; }
.cn-bg { position: absolute; inset: 0; background: #000; }
.cn-layer { position: absolute; inset: -6%; background-size: cover; background-position: center; will-change: transform, opacity; }
.kb-in  { animation: kbIn 26s linear forwards; }
.kb-out { animation: kbOut 26s linear forwards; }
.kb-l   { animation: kbL 26s linear forwards; }
.kb-r   { animation: kbR 26s linear forwards; }
@keyframes kbIn  { from { transform: scale(1); } to { transform: scale(1.14); } }
@keyframes kbOut { from { transform: scale(1.16); } to { transform: scale(1.02); } }
@keyframes kbL   { from { transform: scale(1.1) translateX(3%); } to { transform: scale(1.1) translateX(-3%); } }
@keyframes kbR   { from { transform: scale(1.1) translateX(-3%); } to { transform: scale(1.1) translateX(3%); } }
.cn-embers { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s; mix-blend-mode: screen; }
.cn-embers.on { opacity: 1; }
.cn-vig { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 45%, transparent 45%, rgba(0,0,0,.72)); pointer-events: none; }

/* 시네마 레터박스 */
.cn-bars i { position: absolute; left: 0; right: 0; height: 0; background: #000; z-index: 7; transition: height .9s cubic-bezier(.3,.8,.3,1); }
.cn-bars i:first-child { top: 0; } .cn-bars i:last-child { bottom: 0; }
#cine.bars .cn-bars i { height: 9vh; }
#cine.over .cn-bars, #cine.over .cn-cap { display: none; }

/* 장소 자막 */
.cn-cap { position: absolute; left: 5vw; top: calc(9vh + 18px); z-index: 4; opacity: 0; pointer-events: none; border-left: 3px solid #ffd76a; padding: 2px 0 2px 12px; }
.cn-cap b { display: block; font-size: clamp(15px, 3.4vh, 22px); letter-spacing: 3px; text-shadow: 0 2px 6px #000; }
.cn-cap small { display: block; margin-top: 4px; font-size: clamp(11px, 2.2vh, 13px); color: #e8d8b0; letter-spacing: 2px; text-shadow: 0 2px 6px #000; }
.cn-cap.on { animation: cnCap 5.2s ease forwards; }
@keyframes cnCap { 0% { opacity: 0; transform: translateX(-16px); clip-path: inset(0 100% 0 0); } 12% { opacity: 1; transform: none; clip-path: inset(0 0 0 0); } 80% { opacity: 1; } 100% { opacity: 0; } }

/* 가운데 독백(목소리) */
.cn-center { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; text-align: center; padding: 0 8vw 0 calc(8vw + .28em); font-family: 'Noto Sans KR', sans-serif; font-weight: 300; font-size: clamp(16px, 3.8vh, 26px); letter-spacing: .28em; line-height: 2; color: #d9d4e8; text-shadow: 0 0 18px rgba(170,150,255,.45); opacity: 0; transition: opacity .5s; pointer-events: none; }
.cn-center.on { opacity: 1; }
.cn-center.big { font-size: clamp(24px, 6vh, 40px); color: #fff; }
.cn-center.name span { font-family: 'Black Han Sans', sans-serif; font-weight: 400; font-size: clamp(40px, 14vh, 96px); letter-spacing: .35em; padding-left: .35em; color: #fff; text-shadow: 0 0 22px #b8a0ff, 0 0 60px rgba(120,90,255,.6); animation: cnName 1.8s ease-out both; }
@keyframes cnName { from { filter: blur(6px); letter-spacing: .8em; } to { filter: none; } }

/* 초상화 */
.cn-por { position: absolute; bottom: 0; z-index: 6; height: 86%; max-width: 44vw; object-fit: contain; object-position: bottom; opacity: 0; filter: brightness(.42) saturate(.55); transition: filter .2s, opacity .25s, transform .2s; pointer-events: none; }
.cn-por.l { left: 3%; } .cn-por.r { right: 3%; transform: scaleX(-1); }
.cn-por.on { opacity: 1; }
.cn-por.talk { filter: drop-shadow(0 0 12px rgba(0,0,0,.6)); }
.cn-por.l.talk { transform: translateY(-4px); } .cn-por.r.talk { transform: scaleX(-1) translateY(-4px); }
.cn-por.sil, .cn-por.sil.talk { filter: brightness(0) drop-shadow(0 0 10px rgba(255,210,120,.35)); }
.cn-por.l.in { animation: cnPorL .35s cubic-bezier(.2,.9,.3,1); }
.cn-por.r.in { animation: cnPorR .35s cubic-bezier(.2,.9,.3,1); }
@keyframes cnPorL { from { transform: translateX(-40px); opacity: 0; } }
@keyframes cnPorR { from { transform: scaleX(-1) translateX(-40px); opacity: 0; } }

/* 대사창 */
.cn-box { position: absolute; left: 50%; bottom: calc(4vh + 8px); z-index: 8; transform: translateX(-50%); width: min(820px, 90vw); min-height: 88px; padding: 20px 22px 16px; background: rgba(12,18,32,.94); border: 2px solid #f5e6ba; box-shadow: 0 0 0 2px #111d2c, 6px 6px 0 rgba(0,0,0,.5); opacity: 0; transition: opacity .2s; }
#cine.bars .cn-box { bottom: calc(9vh + 10px); }
.cn-box.on { opacity: 1; }
.cn-box.pop { animation: cnPop .18s ease-out; }
@keyframes cnPop { from { transform: translateX(-50%) translateY(4px); } }
.cn-box.dim { opacity: .45; }
.cn-name { position: absolute; left: 14px; top: -15px; padding: 2px 14px; background: var(--c, #ffe07a); color: #111d2c; font-size: 13px; border: 2px solid #111d2c; letter-spacing: 1px; }
.cn-name:empty { display: none; }
.cn-text { margin: 0; font-size: clamp(13px, 2.9vh, 16px); line-height: 1.7; min-height: 3em; word-break: keep-all; }
.cn-text em { font-style: normal; color: #ffd76a; text-shadow: 0 0 8px rgba(255,200,90,.5); }
.cn-box.narr { background: rgba(6,8,14,.82); border-color: rgba(245,230,186,.35); box-shadow: none; text-align: center; }
.cn-box.narr .cn-text { color: #e8e0c8; }
.cn-box.enemy { border-color: #ff6a5a; box-shadow: 0 0 0 2px #2a0c0c, 0 0 24px rgba(255,60,40,.35); }
.cn-box.npc { border-color: #d8c8a0; }
.cn-box.tip { border-color: #8ad8ff; }
.cn-box.big .cn-text { font-size: clamp(16px, 3.8vh, 21px); letter-spacing: 1px; }
.cn-next { position: absolute; right: 12px; bottom: 6px; width: 8px; height: 8px; border-right: 2px solid #ffe07a; border-bottom: 2px solid #ffe07a; transform: rotate(45deg); animation: blink .6s steps(2) infinite alternate; }

/* 선택지 */
.cn-choice { position: absolute; left: 50%; top: 40%; z-index: 9; transform: translate(-50%, -50%); display: none; flex-direction: column; gap: 12px; width: min(520px, 80vw); }
.cn-choice.on { display: flex; }
.cn-choice button { padding: 14px 20px; font-family: inherit; font-size: clamp(14px, 3vh, 17px); letter-spacing: 1px; color: #fff6d8; background: linear-gradient(90deg, rgba(20,28,48,.2), rgba(20,28,48,.95) 20%, rgba(20,28,48,.95) 80%, rgba(20,28,48,.2)); border: 0; border-top: 1px solid rgba(255,215,106,.6); border-bottom: 1px solid rgba(255,215,106,.6); animation: cnChoice .35s var(--d) both; transition: transform .12s, color .12s; }
.cn-choice button:hover { color: #ffd76a; transform: scale(1.03); }
.cn-choice button.pick { animation: cnPick .38s forwards; color: #ffd76a; }
@keyframes cnChoice { from { opacity: 0; transform: translateY(10px); } }
@keyframes cnPick { 40% { transform: scale(1.06); filter: brightness(1.8); } to { opacity: 0; transform: scale(1.1); } }

/* 제목 카드 */
.cn-card { position: absolute; inset: 0; z-index: 10; display: none; place-items: center; background: radial-gradient(ellipse at center, rgba(20,14,40,.6), rgba(0,0,0,.9)); }
.cn-card.on { display: grid; animation: cnFade .8s both; }
.cn-card.out { animation: cnFadeOut .6s forwards; }
.cn-card-in { text-align: center; }
.cn-card em { display: block; font-style: normal; font-size: clamp(12px, 2.6vh, 15px); letter-spacing: .8em; color: #ffd76a; animation: cnFade 1s .2s both; }
.cn-card .ln { display: block; height: 1px; margin: 14px auto; background: linear-gradient(90deg, transparent, #ffd76a, transparent); animation: cnLine 1.1s .3s cubic-bezier(.2,.8,.2,1) both; width: min(520px, 70vw); }
.cn-card b { display: block; font-family: 'Black Han Sans', sans-serif; font-weight: 400; font-size: clamp(34px, 11vh, 72px); letter-spacing: .12em; text-shadow: 0 4px 0 #1a1030, 0 0 30px rgba(160,130,255,.5); animation: cnTitle 1.2s .45s cubic-bezier(.2,.8,.2,1) both; }
.cn-card small { display: block; margin-top: 12px; font-size: clamp(11px, 2.4vh, 14px); letter-spacing: .5em; color: #c8c0e0; animation: cnFade 1s 1s both; }
@keyframes cnFade { from { opacity: 0; } }
@keyframes cnFadeOut { to { opacity: 0; } }
@keyframes cnLine { from { transform: scaleX(0); } }
@keyframes cnTitle { from { opacity: 0; letter-spacing: .5em; filter: blur(8px); } }

.cn-flash { position: absolute; inset: 0; z-index: 12; opacity: 0; pointer-events: none; }
.cn-flash.on { animation: cnFlash ease-out forwards; }
@keyframes cnFlash { 0% { opacity: 1; } 100% { opacity: 0; } }

.cn-ui { position: absolute; right: 12px; top: 10px; z-index: 13; display: flex; gap: 6px; }
.cn-ui button { padding: 4px 12px; background: rgba(17,29,44,.8); color: #f5e6ba; border: 1px solid rgba(245,230,186,.6); font-family: inherit; font-size: 11px; }
.cn-ui .cn-auto.on { background: #f5e6ba; color: #111d2c; }
#cine.bars .cn-ui { top: calc(9vh - 30px); }
@media (max-height: 420px) { .cn-box { min-height: 70px; padding: 15px 16px 10px; } .cn-por { height: 92%; } }

/* ---------- 입단 서약서 ---------- */
#oath { position: fixed; inset: 0; z-index: 42; display: grid; place-items: center; background: rgba(6,4,14,0); transition: background .6s; font-family: var(--pixel-font, 'Galmuri11', sans-serif); cursor: default; }
#oath.on { background: rgba(6,4,14,.72); }
#oath.out { transition: opacity .5s; opacity: 0; }
.oa-paper { position: relative; width: min(460px, 86vw); max-height: 94vh; overflow: hidden; padding: 22px 30px 20px; text-align: center; color: #3a2614;
  background: radial-gradient(ellipse at 50% 30%, #fbf1d6, #ead6a6 70%, #d4b77c); border: 2px solid #6a4a24; box-shadow: 0 0 0 4px #2a1a0c, 0 20px 60px rgba(0,0,0,.7);
  transform: translateY(30px) rotate(-1deg); opacity: 0; transition: transform .6s cubic-bezier(.2,.9,.3,1.1), opacity .5s; }
#oath.on .oa-paper { transform: none; opacity: 1; }
.oa-crest { width: 44px; height: 44px; object-fit: contain; filter: sepia(1) saturate(.6) brightness(.7); }
.oa-paper small { display: block; font-size: 10px; letter-spacing: 3px; color: #8a6a40; }
.oa-paper h2 { margin: 4px 0 8px; font-family: 'Black Han Sans', sans-serif; font-weight: 400; font-size: 30px; letter-spacing: .5em; color: #4a2a10; }
.oa-vow { margin: 0 0 16px; font-size: clamp(12px, 2.6vh, 14px); line-height: 1.9; }
.oa-sign { display: flex; align-items: flex-end; gap: 10px; justify-content: center; }
.oa-sign span { font-size: 12px; color: #6a4a24; padding-bottom: 6px; white-space: nowrap; }
.oa-sign input { width: 190px; padding: 4px 6px; background: transparent; border: 0; border-bottom: 2px solid #6a4a24; outline: none; font-family: 'Black Han Sans', sans-serif; font-size: 26px; text-align: center; color: #1a0e30; letter-spacing: 2px; user-select: text; -webkit-user-select: text; }
.oa-sign input::placeholder { font-family: var(--pixel-font, sans-serif); font-size: 13px; color: #a88a5a; letter-spacing: 0; }
#oath.signed .oa-sign input { color: #20103a; text-shadow: 0 0 1px #20103a; animation: oaInk .7s; }
@keyframes oaInk { from { filter: blur(3px); opacity: .2; } }
.oa-rule { margin: 8px 0 14px; font-size: 11px; color: #8a6a40; min-height: 1.2em; }
.oa-rule.bad { color: #b0301a; }
.oa-go { min-width: 180px; height: 44px; font-family: 'Black Han Sans', sans-serif; font-size: 18px; letter-spacing: 6px; color: #2a1804; border: 0; border-style: solid; border-width: 0 26px; border-image: url(assets/ui/btn_gold.png) 0 100 fill / 0 26px stretch; background: none; filter: drop-shadow(0 3px 5px rgba(0,0,0,.35)); }
.oa-go:disabled { filter: grayscale(1) opacity(.5); cursor: default; }
.oa-seal { position: absolute; right: 22px; bottom: 20px; width: 70px; height: 70px; border-radius: 50%; opacity: 0; pointer-events: none;
  background: radial-gradient(circle at 40% 35%, #e0504a, #9a1a14 60%, #6a0e0a); box-shadow: 0 3px 0 #4a0806, inset 0 0 0 5px rgba(0,0,0,.18); }
.oa-seal::after { content: 'V'; position: absolute; inset: 0; display: grid; place-items: center; font-family: 'Black Han Sans', sans-serif; font-size: 34px; color: rgba(255,210,190,.55); text-shadow: 0 -1px 0 #4a0806; }
#oath.sealed .oa-seal { animation: oaSeal .45s cubic-bezier(.3,1.6,.4,1) forwards; }
#oath.sealed .oa-paper { animation: oaThump .45s .12s; }
@keyframes oaSeal { from { opacity: 0; transform: scale(2.6) rotate(-30deg); } to { opacity: 1; transform: scale(1) rotate(-12deg); } }
@keyframes oaThump { 30% { transform: translateY(3px) scale(.99); } }

/* ---------- 관문 ---------- */
#gate { position: fixed; inset: 0; z-index: 48; pointer-events: all; font-family: var(--pixel-font, 'Galmuri11', sans-serif); }
#gate i { position: absolute; top: 0; bottom: 0; width: 50.5%; background: linear-gradient(90deg, #0b0816, #18122c 80%, #231a3e); transition: transform 1s cubic-bezier(.7,0,.3,1); transform: translateX(0); }
#gate .gt-l { left: 0; border-right: 1px solid #5a4a8a; transform: translateX(-100%); }
#gate .gt-r { right: 0; transform: translateX(100%) scaleX(-1); border-right: 1px solid #5a4a8a; }
#gate.on .gt-l { transform: none; } #gate.on .gt-r { transform: scaleX(-1); }
#gate.open .gt-l { transform: translateX(-100%); } #gate.open .gt-r { transform: translateX(100%) scaleX(-1); }
.gt-seam { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 20px #c8b8ff, 0 0 60px #8a70ff; opacity: 0; transition: opacity .4s .8s, width 1s; }
#gate.on .gt-seam { opacity: 1; }
#gate.open .gt-seam { width: 100vw; margin-left: -50vw; transition: width 1s cubic-bezier(.7,0,.3,1); background: #fff; }
.gt-t { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; color: #fff; opacity: 0; transition: opacity .5s .5s; text-shadow: 0 0 8px #000, 0 0 14px #000; white-space: nowrap; z-index: 2; }
#gate.on .gt-t { opacity: 1; } #gate.open .gt-t { opacity: 0; transition-delay: 0s; transition-duration: .3s; }
.gt-t small { display: block; font-size: 11px; letter-spacing: .6em; color: #ffd76a; }
.gt-t b { display: block; margin: 8px 0 4px; font-family: 'Black Han Sans', sans-serif; font-weight: 400; font-size: clamp(26px, 8vh, 44px); letter-spacing: .2em; }
.gt-t span { font-size: 12px; color: #c8c0e0; }
.gt-bar { width: 220px; height: 2px; margin: 12px auto 0; background: rgba(255,255,255,.15); }
.gt-bar u { display: block; height: 100%; width: 0; background: #ffd76a; box-shadow: 0 0 6px #ffd76a; transition: width 1.3s .5s ease-out; }
#gate.on .gt-bar u { width: 100%; }
#gate.white { background: #fff; transition: background .5s; }
#gate.gone { transition: opacity .8s; opacity: 0; pointer-events: none; }

/* ---------- 전투 조작 안내 ---------- */
#coach { position: fixed; inset: 0; z-index: 30; pointer-events: none; display: none; font-family: var(--pixel-font, 'Galmuri11', sans-serif); }
#coach.on { display: block; }
.co-ring { position: absolute; border: 2px solid #ffe07a; border-radius: 10px; box-shadow: 0 0 0 2px rgba(0,0,0,.5), 0 0 16px rgba(255,224,122,.7); animation: coRing 1s ease-in-out infinite; }
#coach.spot .co-ring { box-shadow: 0 0 0 2px rgba(0,0,0,.5), 0 0 16px rgba(255,224,122,.7), 0 0 0 200vmax rgba(0,0,0,.38); }
@keyframes coRing { 50% { transform: scale(1.06); border-color: #fff; } }
.co-hand { position: absolute; width: 0; height: 0; margin-left: -9px; border: 9px solid transparent; border-top: 14px solid #ffe07a; filter: drop-shadow(0 2px 0 #000); animation: coHand .7s ease-in-out infinite alternate; }
.co-hand.up { border-top: 9px solid transparent; border-bottom: 14px solid #ffe07a; margin-top: -9px; }
@keyframes coHand { to { transform: translateY(6px); } }
.co-hand.up { animation-name: coHandUp; } @keyframes coHandUp { to { transform: translateY(-6px); } }
.co-tip { position: absolute; max-width: min(360px, 80vw); padding: 10px 14px 9px; background: rgba(12,18,32,.95); border: 2px solid #ffe07a; box-shadow: 0 0 0 2px #111d2c, 4px 4px 0 rgba(0,0,0,.5); }
.co-tip.pop { animation: coPop .3s cubic-bezier(.2,1.4,.4,1); }
@keyframes coPop { from { transform: scale(.85); opacity: 0; } }
.co-tip b { display: block; font-size: 12px; color: #ffe07a; letter-spacing: 1px; margin-bottom: 4px; }
.co-tip b:empty { display: none; }
.co-tip p { margin: 0; font-size: clamp(12px, 2.6vh, 14px); line-height: 1.6; color: #fff; word-break: keep-all; }
.co-tip small { display: block; margin-top: 5px; font-size: 10px; color: #9ab8d8; }
.co-tip small:empty { display: none; }
.co-stick { position: absolute; left: 14vw; bottom: 16vh; width: 90px; height: 90px; margin: -45px 0 0 -45px; border-radius: 50%; border: 2px dashed rgba(255,224,122,.7); display: none; }
.co-stick i { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px; border-radius: 50%; background: rgba(255,224,122,.55); box-shadow: 0 0 12px rgba(255,224,122,.7); animation: coStick 1.6s ease-in-out infinite; }
#coach.stick .co-stick { display: block; }
@keyframes coStick { 0%, 100% { transform: none; } 30% { transform: translateX(26px); } 60% { transform: translate(18px, -18px); } }

/* 튜토리얼: 아직 배우지 않은 HUD */
#hud .tut-off { visibility: hidden !important; pointer-events: none !important; }
#hud .tut-pop { animation: tutPop .6s cubic-bezier(.2,1.5,.4,1); }
@keyframes tutPop { 0% { transform: scale(.6); opacity: 0; filter: brightness(3); } 60% { filter: brightness(1.6); } }

/* 무대 연출(scene.js): 장면 전환 막, 필드 HUD 숨김 */
.cn-black { position: absolute; inset: 0; z-index: 11; background: #000; opacity: 0; pointer-events: none; }
#fhud.scene > *:not(.fh-toast):not(.fh-banner) { visibility: hidden; }
#cine.scene .cn-por { height: 64%; max-width: 30vw; bottom: 9vh; }
#cine.scene .cn-por.l { left: 1%; } #cine.scene .cn-por.r { right: 1%; }
#cine.scene .cn-box { width: min(760px, 84vw); }

.tut-hint { margin: 0 0 10px; padding: 8px 10px; border: 1px dashed #ffe07a; color: #ffe07a; font-size: 12px; }
.cn-por.light, .cn-por.light.talk { filter: brightness(0) invert(1) drop-shadow(0 0 14px #ffe9a0) drop-shadow(0 0 40px #fff6c0); }

/* ---------- 퀘스트: 보상 카드 · 의뢰 수첩 (quests.js) ---------- */
#qreward { position: fixed; inset: 0; z-index: 49; display: grid; place-items: center; background: radial-gradient(ellipse at center, rgba(40,30,10,.55), rgba(0,0,0,.82)); font-family: var(--pixel-font, 'Galmuri11', sans-serif); cursor: pointer; animation: cnFade .35s both; }
#qreward.out { animation: cnFadeOut .3s forwards; }
.qr-box { width: min(560px, 88vw); text-align: center; }
.qr-box > em { display: block; font-style: normal; font-size: 12px; letter-spacing: .6em; color: #ffd76a; }
.qr-box > b { display: block; margin: 6px 0 16px; font-family: 'Black Han Sans', sans-serif; font-weight: 400; font-size: clamp(22px, 6vh, 34px); color: #fff; text-shadow: 0 3px 0 #1a1030, 0 0 18px rgba(255,215,106,.45); animation: cnTitle .8s both; }
.qr-items { display: flex; flex-direction: column; gap: 8px; }
.qr-it { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: rgba(12,18,32,.92); border: 1px solid rgba(255,215,106,.4); text-align: left; animation: qrIn .45s var(--d) both; }
.qr-it > svg, .qr-it > .ico { width: 22px; height: 22px; flex: 0 0 auto; }
.qr-it b { font-size: 14px; color: #fff6d8; }
.qr-it.gear { border: 2px solid #c07aff; box-shadow: 0 0 18px rgba(192,122,255,.35); }
.qr-it.gear small { display: block; font-size: 10px; color: #c8a8ff; }
.qr-it.gear p { margin: 3px 0 0; font-size: 11px; color: #d8d0e8; line-height: 1.45; }
.qr-it .gi { flex: 0 0 auto; }
.qr-tap { display: block; margin-top: 14px; font-size: 11px; color: rgba(255,255,255,.55); }
@keyframes qrIn { from { opacity: 0; transform: translateY(10px) scale(.96); filter: brightness(2.2); } }

#qlog { position: fixed; inset: 0; z-index: 44; display: grid; place-items: center; background: rgba(4,4,12,.6); font-family: var(--pixel-font, 'Galmuri11', sans-serif); }
.ql-box { width: min(520px, 90vw); max-height: 82vh; display: flex; flex-direction: column; background: #111d2c; border: 2px solid #f5e6ba; box-shadow: 0 0 0 2px #111d2c, 6px 6px 0 rgba(0,0,0,.5); }
.ql-h { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid rgba(245,230,186,.3); }
.ql-h b { display: flex; align-items: center; gap: 6px; font-size: 15px; color: #ffe07a; }
.ql-h b svg { width: 18px; height: 18px; }
.ql-x { background: none; border: 0; color: #f5e6ba; font-size: 16px; }
.ql-list { overflow: auto; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.ql-q { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; padding: 10px 12px; text-align: left; font-family: inherit; background: rgba(255,255,255,.04); border: 1px solid rgba(245,230,186,.25); color: #fff; }
.ql-q em { grid-row: span 2; align-self: center; font-style: normal; font-size: 10px; padding: 2px 6px; background: #3a4a6a; color: #cfe0ff; }
.ql-q b { font-size: 14px; }
.ql-q small { font-size: 11px; color: #c8c0a8; }
.ql-q.on { border-color: #ffd76a; cursor: pointer; }
.ql-q.on:hover { background: rgba(255,215,106,.08); }
.ql-q.track { box-shadow: inset 3px 0 0 #ffd76a; }
.ql-q.track b::after { content: ' · 추적 중'; font-size: 10px; color: #ffd76a; }
.ql-q.new em { background: #6a5a1a; color: #ffe89a; }
.ql-q.done { opacity: .55; }
.ql-q:disabled { cursor: default; }
.ql-foot { margin: 0; padding: 8px 14px 12px; font-size: 11px; color: #a8b8c8; }
