/* 컷인 설정 창과 대화(cine) 반신 초상. 전투 컷인 자체는 cutin.css. */
.cutin-settings { box-sizing: border-box; width: min(530px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 24px; overflow-y: auto; color: #f5efdd; background: #112334; border: 2px solid #c8b47e; font: 14px var(--pixel-font, sans-serif); }
.cutin-settings::backdrop { background: #050b15b8; }
.cutin-settings header, .cutin-settings footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cutin-settings h2 { margin: 0; font-size: 23px; }
.cutin-settings p { color: #c0ccd6; line-height: 1.6; }
.cutin-settings fieldset { border: 0; padding: 0; margin: 20px 0; }
.cutin-settings legend { margin-bottom: 10px; color: #e6ce95; }
.cutin-settings label { display: flex; align-items: center; gap: 12px; padding: 12px; margin-bottom: 8px; border: 1px solid #3f566b; cursor: pointer; }
.cutin-settings label:has(input:checked) { border-color: #e6ce95; background: #273f50; }
.cutin-settings small { display: block; color: #bbcad6; font-size: 12px; line-height: 1.5; margin-top: 5px; }
.cutin-settings input { accent-color: #e6ce95; width: 18px; height: 18px; flex-shrink: 0; }
.cutin-settings button { color: inherit; background: #263f50; border: 1px solid #bca674; padding: 8px 18px; min-height: 40px; font: inherit; cursor: pointer; }
.cutin-settings footer { justify-content: flex-end; margin-top: 20px; }
.cutin-settings button[value="close"] { background: #d8bd7b; color: #14202b; }
.cutin-settings :focus-visible { outline: 2px solid #ffe4a2; outline-offset: 3px; }
/* JRPG dialogue uses the upper half of the original standing illustration. */
#cine:is(.full, .scene, .over) .cn-por { bottom: 10%; height: 82%; width: min(54vw, 670px); max-width: none; overflow: hidden; }
#cine:is(.full, .scene, .over) .cn-por.l { left: 1%; } #cine:is(.full, .scene, .over) .cn-por.r { right: 1%; }
#cine:is(.full, .scene, .over) .cn-por img { position: absolute; top: 0; left: 50%; transform: translateX(-50%); height: 174%; width: auto; max-width: none; object-fit: contain; image-rendering: auto; }
#cine:is(.full, .scene, .over) .cn-por.npc img { height: 110%; }
#cine:is(.full, .scene, .over) .cn-box { box-sizing: border-box; width: min(1080px, 92vw); min-height: 144px; padding: 28px 34px 24px; background: linear-gradient(120deg, #0d1b2ff5, #192e45ed); border: 1px solid #d4c392; border-top: 3px solid #e5d3a5; box-shadow: 0 0 0 4px #0b1526a8, 0 14px 40px #0008; }
#cine:is(.full, .scene, .over) .cn-name { top: -20px; left: 24px; padding: 6px 24px; font-size: 16px; letter-spacing: 1px; }
#cine:is(.full, .scene, .over) .cn-text { font-size: clamp(15px, 1.6vw, 19px); line-height: 1.8; }
@media (max-width: 600px) {
  #cine:is(.full, .scene, .over) .cn-por { width: 88vw; height: 70%; bottom: 21%; }
  #cine:is(.full, .scene, .over) .cn-por.on { opacity: .4; }
  #cine:is(.full, .scene, .over) .cn-por.l { left: -16%; } #cine:is(.full, .scene, .over) .cn-por.r { right: -16%; }
  #cine:is(.full, .scene, .over) .cn-por.talk { opacity: 1; z-index: 7; }
  #cine:is(.full, .scene, .over) .cn-box { min-height: 158px; padding: 24px 18px 20px; }
  #cine:is(.full, .scene, .over) .cn-name { font-size: 14px; }
  .cutin-settings { padding: 16px; }
}
@media (max-height: 480px) {
  #cine:is(.full, .scene, .over) .cn-por { height: 87%; bottom: 5%; }
  #cine:is(.full, .scene, .over) .cn-box { min-height: 94px; padding: 18px 22px 12px; }
  #cine:is(.full, .scene, .over) .cn-text { font-size: 13px; line-height: 1.5; }
  #cine:is(.full, .scene, .over) .cn-name { font-size: 12px; padding: 4px 16px; top: -17px; }
}
@media (prefers-reduced-motion: reduce) {
  #cine:is(.full, .scene, .over) .cn-por { transition: none; animation: none; }
}
