/* game.css — 1 게임(2026-10-18). 모든 규칙을 .jg 아래에 둔다 — 앱의 button · input 기본 모양을 덮고, 다른 페이지와 섞이지 않게. */

.jg {
  --g-gold: #c9a45c; --g-gold2: #e8cf8f; --g-text: #ece4d6; --g-dim: #a39889; --g-line: rgba(201,164,92,.45);
  color: var(--g-text);
  font-family: 'Noto Sans KR', -apple-system, "Segoe UI", "Malgun Gothic", sans-serif;
}
.jg [hidden] { display: none !important; }
.jg button, .jg input, .jg select { font-family: inherit; color: var(--g-text); }
.jg .jg-serif { font-family: 'Nanum Myeongjo', 'Batang', serif; }

/* 스크롤 바 — 브라우저 기본 대신 게임 모양(2026-10-30 유저). Chrome은 scrollbar-color가 있으면 ::-webkit-scrollbar를 무시하므로 표준 속성은 그것이 없는 브라우저(Firefox)에만 */
.jg ::-webkit-scrollbar, .jg::-webkit-scrollbar { width: 9px; height: 9px; }
.jg ::-webkit-scrollbar-track, .jg::-webkit-scrollbar-track { background: linear-gradient(90deg, transparent 3px, rgba(201,164,92,.14) 3px, rgba(201,164,92,.14) 6px, transparent 6px); }
.jg ::-webkit-scrollbar-thumb, .jg::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 9px; background: linear-gradient(180deg, #e8cf8f, #a8813e 45%, #6e5228) padding-box; box-shadow: inset 0 0 0 1px rgba(0,0,0,.35); }
.jg ::-webkit-scrollbar-thumb:hover, .jg::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #f6e2a8, #c9a45c 45%, #8a6a34) padding-box; }
.jg ::-webkit-scrollbar-thumb:active, .jg::-webkit-scrollbar-thumb:active { background: #e8cf8f padding-box; }
.jg ::-webkit-scrollbar-corner, .jg::-webkit-scrollbar-corner { background: transparent; }
.jg ::-webkit-scrollbar-button, .jg::-webkit-scrollbar-button { display: none; }
@supports not selector(::-webkit-scrollbar) { .jg, .jg * { scrollbar-width: thin; scrollbar-color: #a8813e rgba(201,164,92,.12); } }

.jg .jg-stage { position: relative; width: min(100%, calc((100vh - 170px) * 16 / 9)); aspect-ratio: 16 / 9; min-height: 560px; margin: 0 auto; overflow: hidden; overflow: clip;
  border: 1px solid #3a2d22; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.6); background: #000; user-select: none; }
.jg .jg-bg { position: absolute; inset: 0; transition: background .6s; background: #050405; }
.jg .jg-fog { position: absolute; inset: -20%; pointer-events: none; filter: blur(8px);
  background: radial-gradient(ellipse at 20% 70%, rgba(200,210,205,.1), transparent 40%), radial-gradient(ellipse at 80% 60%, rgba(200,210,205,.08), transparent 45%);
  animation: jg-drift 26s ease-in-out infinite alternate; }
@keyframes jg-drift { from { transform: translateX(-4%); } to { transform: translateX(4%); } }
.jg .jg-bglabel { position: absolute; left: 14px; top: 50px; font-size: 11px; color: rgba(255,255,255,.38); z-index: 4; }

/* 위 막대 */
.jg .jg-hud { position: absolute; top: 0; left: 0; right: 0; height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 64px 0 16px; z-index: 5; font-size: 13px; overflow: hidden;
  background: linear-gradient(180deg, rgba(0,0,0,.82), rgba(0,0,0,0)); }
.jg .jg-hud b { font-family: 'Nanum Myeongjo', serif; color: var(--g-gold2); font-size: 18px; margin-right: 4px; white-space: nowrap; }
.jg .jg-chip { padding: 3px 10px; border: 1px solid rgba(201,164,92,.35); border-radius: 3px; background: rgba(20,14,10,.6); white-space: nowrap; }
.jg .jg-chip.debt { color: #f0a8a8; border-color: rgba(200,80,80,.55); }
.jg .jg-chip.paid { color: #a8e0b0; border-color: rgba(90,180,110,.55); }
.jg .jg-chip.milk { color: #f3f0e6; border-color: rgba(240,240,230,.5); }
.jg .jg-chip.mood-bad { color: #f0b0a6; border-color: rgba(220,110,100,.6); }
.jg .jg-chip.mood-good { color: #a8e0b0; border-color: rgba(90,180,110,.55); }
.jg .jg-chip.buff { color: #f2b8d8; border-color: rgba(230,130,190,.6); }
.jg button.jg-chip.her { font: inherit; color: inherit; cursor: pointer; }
.jg button.jg-chip.her:hover { border-color: var(--g-gold2); background: rgba(60,42,22,.75); }
.jg button.jg-chip.cal { font: inherit; color: var(--g-gold2); cursor: pointer; }
.jg button.jg-chip.cal:hover { border-color: var(--g-gold2); background: rgba(60,42,22,.75); }
/* 잠자리 선택지 · 성접대 함께 부르기 */
.jg .jg-bedopts, .jg .jg-with { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; align-items: center; }
.jg .jg-bedopts .jg-btn.on, .jg .jg-with .jg-btn.on { border-color: var(--g-gold2); color: var(--g-gold2); background: rgba(70,50,26,.7); }
.jg .jg-with small { font-size: 11px; opacity: .7; }
/* 노예 고르기 목록(위 막대의 노예 이름) */
.jg .jg-hermenu { position: absolute; top: 40px; z-index: 30; min-width: 230px; padding: 6px; border: 1px solid var(--g-gold); border-radius: 4px;
  background: rgba(14,10,7,.96); box-shadow: 0 8px 24px rgba(0,0,0,.6); display: flex; flex-direction: column; gap: 4px; }
.jg .jg-hermenu button { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 10px; text-align: left; cursor: pointer;
  font: inherit; color: #e8dfcf; background: rgba(40,28,18,.6); border: 1px solid rgba(201,164,92,.25); border-radius: 3px; }
.jg .jg-hermenu button:hover { border-color: var(--g-gold2); background: rgba(70,50,26,.7); }
.jg .jg-hermenu button.on { border-color: var(--g-gold); color: var(--g-gold2); }
.jg .jg-hermenu button b { display: block; font-size: 14px; }
.jg .jg-hermenu button small { display: block; font-size: 11px; color: rgba(232,223,207,.6); }
.jg .jg-hermenu button.more { justify-content: center; background: transparent; }
/* 일시 정지 단추(위 막대 오른쪽 끝) — 터치 화면엔 Esc가 없다 */
.jg .jg-menubtn { position: absolute; right: 12px; top: 6px; height: 32px; padding: 0 14px; font: inherit; font-size: 16px; line-height: 1; color: var(--g-gold2); cursor: pointer;
  background: rgba(20,14,10,.75); border: 1px solid rgba(201,164,92,.5); border-radius: 3px; }
.jg .jg-menubtn:hover { border-color: var(--g-gold2); }
.jg .jg-pip { display: inline-block; width: 11px; height: 11px; border-radius: 50%; border: 1px solid var(--g-gold); margin-right: 3px; vertical-align: -1px; }
.jg .jg-pip.on { background: radial-gradient(circle at 35% 35%, #ffe7a6, #c9a45c); }

/* 오른쪽 메뉴 */
.jg .jg-side { position: absolute; right: 12px; top: 56px; display: flex; flex-direction: column; gap: 8px; z-index: 9; }
.jg .jg-side button { width: 66px; height: 58px; background: rgba(16,12,14,.85); border: 1px solid var(--g-line); color: var(--g-gold2); border-radius: 4px; cursor: pointer;
  font-size: 12px; padding: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; white-space: nowrap; letter-spacing: -.5px; }
.jg .jg-side button span { font-size: 18px; line-height: 1; }
.jg .jg-side button:hover { border-color: var(--g-gold2); }
.jg .jg-stage:has(> .jg-dialog:not([hidden])) .jg-side { display: none; }   /* 장면 · 대화 중엔 오른쪽 메뉴를 내린다 — 그림을 가리고, 장면 중엔 쓸 일이 없다 */

/* 인물 */
.jg .jg-sprite { position: absolute; left: 50%; top: 10%; transform: translateX(-50%); height: 145%; z-index: 2; transition: left .4s; }   /* 카우보이 샷 — 전신 그림을 크게 두고 허벅지 중간부터 무대 아래로 잘라 배경에 앉힌다 */
.jg .jg-stage.panel .jg-sprite { left: 24%; }
.jg .jg-sprite svg { height: 100%; filter: drop-shadow(0 0 24px rgba(0,0,0,.75)); }
.jg .jg-spimg { position: relative; height: 100%; filter: drop-shadow(0 0 18px rgba(0,0,0,.6));
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }   /* 그림 양끝에서 잘린 머리카락을 흐리게 */
.jg .jg-spimg img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; user-select: none; pointer-events: none; }
.jg .jg-spimg img.face { height: auto; }
/* 컷신 그림 층 */
.jg .jg-cg { position: absolute; inset: 0; z-index: 3; overflow: hidden; display: flex; justify-content: center; align-items: flex-start; }
.jg .jg-cg .blur { position: absolute; inset: -30px; background: center / cover no-repeat; filter: blur(22px) brightness(.42); }
.jg .jg-cg img { position: relative; height: 100%; max-width: 100%; object-fit: contain; box-shadow: 0 0 40px rgba(0,0,0,.7); animation: jg-cgimg .9s ease-out both; }
.jg .jg-stage.cg .jg-cg { animation: jg-cgin .7s ease-out both; }   /* 컷신으로 넘어갈 때 층 전체가 천천히 떠오르고, 컷이 바뀌면 그림이 살짝 다가오며 스민다 */
@keyframes jg-cgin { from { opacity: 0; } to { opacity: 1; } }
@keyframes jg-cgimg { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
.jg .jg-cgout { z-index: 11; pointer-events: none; animation: jg-cgfade .8s ease-in forwards; }   /* 컷신이 끝날 때 마지막 그림이 걷힌다(game.mjs setCg) */
.jg .jg-cgout img { animation: none; }
@keyframes jg-cgfade { to { opacity: 0; } }
/* 날 알림(game.mjs dayCard) — 검은 판에 「N일째」 */
.jg .jg-daycard { position: absolute; inset: 0; z-index: 20; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; cursor: pointer;
  background: radial-gradient(ellipse at 50% 45%, rgba(60,46,30,.35), transparent 60%), #050405; animation: jg-cgin .8s ease-out both; }
.jg .jg-daycard b { font-family: 'Nanum Myeongjo', serif; font-weight: 800; font-size: 64px; letter-spacing: .12em; color: var(--g-gold2); text-shadow: 0 4px 24px rgba(0,0,0,.9); animation: jg-tin 1s .35s ease-out both; }
.jg .jg-daycard small { font-family: 'Nanum Myeongjo', serif; font-size: 18px; letter-spacing: .2em; color: #d6ccb9; animation: jg-tin 1s .7s ease-out both; }
.jg .jg-daycard.out { animation: jg-cgfade .8s ease-in forwards; pointer-events: none; }
.jg .jg-stage.cg .jg-sprite, .jg .jg-stage.cg .jg-bglabel { display: none; }
/* 컷신 — 대화창은 아래 낮은 띠, 그림은 그 위 자리에 다 보이게 */
.jg .jg-stage.cg:not(.hide-ui):has(> .jg-dialog:not([hidden])) .jg-cg { bottom: var(--dlg, 0px); }
.jg .jg-stage.cg .jg-dialog { left: 0; right: 0; bottom: 0; min-height: 15%; padding: 22px 11% 18px; border: 0; border-top: 1px solid rgba(201,164,92,.6); border-radius: 0; box-shadow: none; background: rgba(8,6,8,.97); }
.jg .jg-stage.cg .jg-dialog .jg-name { left: calc(11% - 8px); }
.jg .jg-stage.cg .jg-choices { bottom: calc(var(--dlg, 0px) + 30px); }
/* 대화창 가리기 — 컷만 보기 */
.jg .jg-hideui { position: absolute; left: 14px; top: 56px; z-index: 14; cursor: pointer; font-size: 12px; color: var(--g-gold2); background: rgba(0,0,0,.6);
  border: 1px solid rgba(201,164,92,.55); padding: 6px 12px; border-radius: 3px; }
.jg .jg-hideui:hover { border-color: var(--g-gold2); }
.jg .jg-stage.hide-ui :is(.jg-dialog, .jg-choices, .jg-hud, .jg-side, .jg-toasts) { visibility: hidden; }
.jg .jg-stage.hide-ui .jg-cg { cursor: pointer; }
.jg .jg-splabel { position: absolute; top: 16%; left: 88%; white-space: nowrap; font-size: 12px; color: var(--g-gold2); background: rgba(0,0,0,.6);
  border: 1px dashed rgba(201,164,92,.55); padding: 6px 10px; border-radius: 3px; }
.jg .jg-splabel small { display: block; color: var(--g-dim); font-size: 11px; margin-top: 2px; }
/* 말풍선 — 행동 뒤 그녀의 한마디(2026-10-21 유저). 얼굴 오른쪽 위, 꼬리는 입 쪽으로 */
.jg .jg-bubble { position: absolute; top: 1%; left: 66%; z-index: 3; width: max-content; max-width: 250px; padding: 10px 14px; border-radius: 14px;
  background: rgba(252,248,240,.96); color: #2a2024; font-family: 'Nanum Myeongjo', 'Batang', serif; font-size: 15px; line-height: 1.5; word-break: keep-all;
  box-shadow: 0 4px 16px rgba(0,0,0,.55); animation: jg-bubblein .35s ease-out both; }
.jg .jg-bubble::after { content: ""; position: absolute; left: 14px; bottom: -9px; border: 10px solid transparent; border-top-color: rgba(252,248,240,.96); border-bottom: 0; transform: skewX(-25deg); }
.jg .jg-stage:has(> .jg-panel:not([hidden])) .jg-bubble { left: 52%; }   /* 창이 열려 있으면 머리 바로 오른쪽에서 시작 — 창 밑에 깔리지 않게(그림과 창 사이는 어느 화면에서나 250px 넘게 남는다) */
@keyframes jg-bubblein { from { opacity: 0; transform: translateY(6px) scale(.96); } to { opacity: 1; transform: none; } }

/* 대사창 · 선택지 */
.jg .jg-dialog { position: absolute; left: 11%; right: 11%; bottom: 3.5%; min-height: 20%; z-index: 7; cursor: pointer; border-radius: 4px; padding: 26px 30px 22px;
  background: linear-gradient(180deg, rgba(14,10,12,.88), rgba(8,6,8,.95)); border: 1px solid rgba(201,164,92,.6); box-shadow: 0 0 0 4px rgba(0,0,0,.35); }
.jg .jg-dialog .jg-name { position: absolute; top: -16px; left: 22px; background: linear-gradient(#5a3f1e, #2c1e10); border: 1px solid var(--g-gold); color: var(--g-gold2);
  font-family: 'Nanum Myeongjo', serif; font-weight: 700; padding: 4px 18px; font-size: 16px; border-radius: 2px; }
.jg .jg-dialog .jg-text { font-family: 'Nanum Myeongjo', serif; font-size: 19px; line-height: 1.75; white-space: pre-wrap; }
.jg .jg-dialog.narr .jg-text { color: #d3cabb; }
.jg .jg-dialog .jg-next { position: absolute; right: 18px; bottom: 10px; color: var(--g-gold); animation: jg-bob 1s infinite; }
@keyframes jg-bob { 50% { transform: translateY(3px); } }
.jg .jg-choices { position: absolute; left: 50%; bottom: calc(3.5% + var(--dlg, 20%) + 30px); transform: translateX(-50%); display: flex; flex-direction: column; gap: 9px; z-index: 8; width: min(600px, 86%); }
.jg .jg-choice { background: linear-gradient(90deg, rgba(30,20,14,.94), rgba(52,35,20,.94), rgba(30,20,14,.94)); border: 1px solid rgba(201,164,92,.65); color: var(--g-text);
  padding: 11px 18px; font-family: 'Nanum Myeongjo', serif; font-size: 17px; cursor: pointer; text-align: center; border-radius: 3px; }
.jg .jg-choice:hover { border-color: var(--g-gold2); box-shadow: 0 0 18px rgba(201,164,92,.35); }
.jg .jg-choice.custom { border-style: dashed; }
.jg .jg-choice small { display: block; font-family: 'Noto Sans KR', sans-serif; font-size: 12px; color: var(--g-dim); margin-top: 4px; }
.jg .jg-ctools { display: flex; gap: 8px; justify-content: center; margin-top: 2px; }
.jg .jg-ctools button { background: rgba(0,0,0,.65); border: 1px dashed rgba(201,164,92,.65); color: var(--g-gold2); padding: 6px 14px; border-radius: 999px; cursor: pointer;
  font-size: 12.5px; white-space: nowrap; }
.jg .jg-ctools button:hover { background: rgba(201,164,92,.15); }
.jg .jg-ctools input { flex: 1; min-width: 0; background: rgba(0,0,0,.75); border: 1px solid var(--g-gold); padding: 7px 10px; border-radius: 4px;
  font-family: 'Nanum Myeongjo', serif; font-size: 14px; }
.jg .jg-notice { position: absolute; top: 86px; left: 50%; transform: translateX(-50%); z-index: 31; background: rgba(20,14,10,.96); border: 1px solid var(--g-gold);
  color: var(--g-gold2); padding: 10px 16px; border-radius: 4px; font-size: 13px; max-width: 80%; text-align: center; line-height: 1.6; pointer-events: none;
  animation: jg-noticefade 4.5s forwards; }
@keyframes jg-noticefade { 0% { opacity: 0; } 10% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; } }
.jg.nohint .jg-eff { display: none !important; }
.jg .jg-eff { color: #b9d9b0; }

/* 버튼 */
.jg .jg-btn { background: rgba(255,255,255,.04); border: 1px solid var(--g-line); color: var(--g-text); border-radius: 4px; padding: 10px 12px; cursor: pointer;
  text-align: left; font-size: 14px; }
.jg .jg-btn:hover:not(:disabled) { border-color: var(--g-gold2); background: rgba(201,164,92,.1); }
.jg .jg-btn:disabled { opacity: .4; cursor: not-allowed; }
.jg .jg-btn.on { border-color: var(--g-gold2); background: rgba(201,164,92,.16); }
.jg .jg-btn.gold { background: linear-gradient(#5a3f1e, #2c1e10); color: var(--g-gold2); border-color: var(--g-gold); text-align: center; }
.jg .jg-btn.small { padding: 5px 10px; font-size: 12px; }
.jg .jg-btn small { display: block; color: var(--g-dim); font-size: 12px; margin-top: 2px; }
.jg .jg-btn.row { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; }
.jg .jg-btn.row em { font-style: normal; color: var(--g-gold); white-space: nowrap; font-size: 13px; }
.jg .jg-gline { display: flex; gap: 6px; align-items: stretch; }
.jg .jg-gline > .jg-btn.row { flex: 1; min-width: 0; }
.jg .jg-btn.qty { flex: none; padding: 6px 10px; color: var(--g-gold); font-size: 13px; text-align: center; white-space: nowrap; }
.jg .jg-lock { color: #e39a8a; }
.jg .jg-gain { color: #e8cf8f; }
.jg .jg-lose { color: #e39a8a; }

/* 하루 판 */
.jg .jg-panel { position: absolute; right: 90px; top: 62px; max-height: calc(100% - 116px); width: min(500px, 50%); background: rgba(12,9,11,.93); border: 1px solid var(--g-line);
  border-radius: 4px; padding: 16px; z-index: 6; overflow: auto; }
.jg .jg-panel.day { bottom: auto; max-height: calc(100% - 116px); width: min(380px, 36%); }   /* 행동창은 좁게 — 그림을 가리지 않게(2026-11-01 유저) */
.jg .jg-stage:has(> .jg-panel.day:not([hidden])) .jg-sprite { left: calc((100% - 90px - min(380px, 36%)) / 2); }   /* 서 있는 그림은 남는 자리 가운데 */
.jg .jg-panel.day .jg-grid .jg-btn small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jg .jg-dp-head { display: flex; justify-content: space-between; align-items: center; font-family: 'Nanum Myeongjo', serif; font-size: 18px; color: var(--g-gold2); margin-bottom: 6px; }
.jg .jg-moodline { font-size: 12px; color: var(--g-dim); margin-bottom: 10px; line-height: 1.5; }
.jg .jg-moodline b { color: #e8cf8f; font-weight: 500; }
.jg .jg-moodline.bad b { color: #f0a090; }
/* 설명 창 — 규칙 설명은 이름 옆 ?(data-tip), 기분은 data-moodtip. 마우스를 올리면, 터치는 누르면 */
.jg [data-moodtip], .jg [data-tip] { cursor: help; }
.jg button[data-moodtip] { cursor: pointer; }
.jg [data-moodtip]:focus, .jg [data-tip]:focus { outline: none; }
.jg .jg-tipq { display: inline-block; width: 14px; height: 14px; margin-left: 4px; border: 1px solid rgba(201,164,92,.55); border-radius: 50%;
  font: normal 10px/12px sans-serif; text-align: center; color: var(--g-gold); vertical-align: 1px; }
.jg [data-tip]:hover .jg-tipq, .jg [data-tip]:focus .jg-tipq, .jg [data-moodtip]:hover .jg-tipq, .jg [data-moodtip]:focus .jg-tipq { color: var(--g-gold2); border-color: var(--g-gold2); }
.jg .jg-tip { position: absolute; z-index: 40; width: max-content; max-width: min(340px, calc(100% - 16px)); padding: 10px 12px; border: 1px solid var(--g-gold); border-radius: 4px;
  background: rgba(14,10,7,.97); box-shadow: 0 8px 24px rgba(0,0,0,.6); font-size: 12px; line-height: 1.55; color: var(--g-text); pointer-events: none; }
.jg .jg-tip.mood { width: min(320px, calc(100% - 16px)); }
.jg .jg-tip-text { white-space: normal; font-weight: normal; font-family: inherit; }
.jg .jg-mt-head { font-size: 13px; margin-bottom: 6px; }
.jg .jg-mt-head b { color: #8fd19e; font-size: 16px; }
.jg .jg-mt-bar { position: relative; height: 8px; border: 1px solid var(--g-line); border-radius: 2px; background: rgba(255,255,255,.05); margin-bottom: 6px; }
.jg .jg-mt-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: #8fd19e; }
.jg .jg-mt-bar u { position: absolute; top: -2px; bottom: -2px; width: 1px; background: rgba(236,228,214,.45); }
.jg .jg-mt-note { color: var(--g-dim); margin-bottom: 6px; }
.jg .jg-mt-bands > div { display: grid; grid-template-columns: 34px 62px 1fr; gap: 6px; padding: 2px 4px; border-radius: 2px; color: var(--g-dim); }
.jg .jg-mt-bands > div.on { background: rgba(70,50,26,.7); color: var(--g-text); }
.jg .jg-mt-bands b { font-weight: 500; color: inherit; }
.jg .jg-mt-bands small { font-size: 11px; }
.jg .jg-result { background: rgba(255,255,255,.04); border-left: 3px solid var(--g-gold); padding: 10px 12px; font-family: 'Nanum Myeongjo', serif; line-height: 1.7;
  margin-bottom: 12px; font-size: 15px; }
.jg .jg-result i { display: block; font-style: normal; font-family: 'Noto Sans KR', sans-serif; color: #9fd3a8; font-size: 12px; margin-top: 4px; }
.jg .jg-result i.bad { color: #f0a090; }
.jg .jg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.jg .jg-grid .jg-btn { padding: 15px 12px; }   /* 칸을 더 길게(2026-11-01 유저) */
.jg .jg-grid .jg-btn b { font-family: 'Nanum Myeongjo', serif; font-size: 15px; }
.jg .jg-grid .jg-btn.wide { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: center; gap: 10px; padding: 16px 10px; border-color: rgba(201,164,92,.55); }
.jg .jg-grid .jg-btn.wide small { margin: 0; }
.jg .jg-sub { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.jg .jg-subhead { font-size: 12px; color: var(--g-dim); margin: 4px 0 0; line-height: 1.5; }
.jg .jg-mbody.jg-sub { margin-top: 0; }
.jg .jg-mbox.mid { width: min(640px, 94%); }
.jg .jg-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.jg .jg-calday { min-height: 78px; border: 1px solid var(--g-line); border-radius: 3px; padding: 5px 6px; background: rgba(255,255,255,.02); font-size: 11px; display: flex; flex-direction: column; gap: 3px; }
.jg .jg-calday b { font-weight: 500; color: var(--g-dim); font-size: 12px; }
.jg .jg-calday.today { border-color: var(--g-gold2); background: rgba(201,164,92,.12); }
.jg .jg-calday.today b { color: var(--g-gold2); }
.jg .jg-calday.dim { opacity: .35; }
.jg .jg-calday.none { visibility: hidden; }
.jg .jg-calday span { line-height: 1.35; color: #cfc6b8; padding: 1px 4px; border-radius: 2px; background: rgba(255,255,255,.06); }
.jg .jg-calday span.bill { color: #f0b0a6; background: rgba(200,80,80,.16); }
.jg .jg-calday span.event { color: #e8cf8f; background: rgba(201,164,92,.16); }
.jg .jg-calday span.quest { color: #a9c8ee; background: rgba(90,140,200,.16); }
.jg .jg-teaser { border: 1px dashed rgba(201,164,92,.45); padding: 10px 12px; border-radius: 4px; font-size: 13px; color: #d8cfbf; margin: 8px 0 12px; line-height: 1.6; }
.jg .jg-list { display: flex; flex-direction: column; gap: 6px; }

.jg .jg-isles { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.jg .jg-more summary { cursor: pointer; margin: -4px 0 6px; list-style: none; }
/* 외출 지역 탭 — 아직 못 가는 지역(🔒)은 흐리게, 누르면 잠김 안내만(2026-11-01) */
.jg .jg-areas { flex-wrap: wrap; }
.jg .jg-areas .jg-btn.shut { color: var(--g-dim); border-style: dashed; }
.jg .jg-shut { border: 1px dashed rgba(201,164,92,.35); border-radius: 4px; padding: 22px 14px; text-align: center; color: var(--g-dim); font-size: 14px; }
.jg .jg-shut small { display: block; margin-top: 6px; font-size: 12px; }

.jg .jg-btn.danger { border-color: rgba(220,110,100,.8); color: #f0a090; }   /* 저장 삭제 — 한 번 더 누르면 */

/* 갤러리(2026-10-20) — 인물 · 배경 · 웹툰, 본 것만 열림 */
.jg .jg-gal { display: flex; flex-direction: column; gap: 12px; height: 100%; }   /* 크게 보기(.jg-gal-view)는 .jg-screen 전체를 덮는다 */
.jg .jg-gal-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.jg .jg-gal-head h2 { font-family: 'Nanum Myeongjo', serif; color: var(--g-gold2); font-size: 26px; margin: 0; }
.jg .jg-gal-tabs { display: flex; gap: 6px; }
.jg .jg-gal-head .back { margin-left: auto; }
.jg .jg-gal-body { flex: 1; min-height: 0; overflow: auto; }
.jg .jg-gal-body.her { display: flex; flex-direction: column; overflow: hidden; }   /* 인물: 카드 줄 + 남은 높이 전부 보기 칸 */
.jg .jg-gal-lock { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 100%; min-height: 90px; color: rgba(201,164,92,.5);
  font-family: 'Nanum Myeongjo', serif; font-size: 34px; }
.jg .jg-gal-lock small { font-family: 'Noto Sans KR', sans-serif; font-size: 12px; color: var(--g-dim); text-align: center; padding: 0 8px; }
.jg .jg-gal-cards { display: flex; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.jg .jg-gal-card { width: 112px; height: 150px; position: relative; overflow: hidden; border: 1px solid var(--g-line); border-radius: 6px; background: rgba(20,15,13,.9);
  padding: 0; cursor: pointer; display: block; }
.jg .jg-gal-card.locked { cursor: default; background: rgba(10,8,8,.9); }
.jg .jg-gal-card.on { border-color: var(--g-gold2); box-shadow: 0 0 12px rgba(201,164,92,.35); }
.jg .jg-gal-card img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; }
.jg .jg-gal-card b { position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 6px; background: linear-gradient(transparent, rgba(0,0,0,.85)); color: var(--g-gold2);
  font-family: 'Nanum Myeongjo', serif; font-size: 14px; text-align: left; }
.jg .jg-gal-sil { height: 100%; display: flex; align-items: flex-end; justify-content: center; opacity: .5; }
.jg .jg-gal-sil svg { height: 90%; }
.jg .jg-gal-viewer { display: flex; gap: 16px; align-items: stretch; flex: 1; min-height: 0; }
.jg .jg-gal-stage { flex: 0 0 auto; height: 100%; aspect-ratio: 832 / 1000; display: flex; justify-content: center; align-items: flex-end; overflow: hidden;
  border: 1px solid var(--g-line); border-radius: 6px; background: radial-gradient(ellipse at 50% 30%, #2a2120, #0c0909 70%); }
.jg .jg-gal-stage .jg-spimg { height: 96%; }
.jg .jg-gal-sil.big { height: 90%; }
.jg .jg-gal-side { flex: 1; min-width: 220px; }
.jg .jg-gal-side h3 { font-family: 'Nanum Myeongjo', serif; color: var(--g-gold2); font-size: 22px; margin: 0 0 4px; }
.jg .jg-gal-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.jg .jg-gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.jg .jg-gal-grid.toon { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.jg .jg-gal-tile { position: relative; border: 1px solid var(--g-line); border-radius: 6px; overflow: hidden; background: rgba(10,8,8,.9); padding: 0; cursor: pointer;
  aspect-ratio: 16 / 10; display: block; }
.jg .jg-gal-tile.toon { aspect-ratio: 832 / 1216; }
.jg .jg-gal-tile.locked { cursor: default; }
.jg .jg-gal-tile.wide { aspect-ratio: auto; height: 110px; }
.jg .jg-gal-tile span { position: absolute; inset: 0; }
.jg .jg-gal-tile b { position: absolute; left: 0; right: 0; bottom: 0; padding: 5px 8px; background: linear-gradient(transparent, rgba(0,0,0,.85)); color: #efe6d2;
  font-size: 12px; font-weight: 500; text-align: left; }
.jg .jg-gal-tile:hover:not(.locked) { border-color: var(--g-gold2); }
.jg .jg-gal-group { margin-bottom: 14px; }
.jg .jg-gal-view { position: absolute; inset: 0; z-index: 5; background: rgba(5,4,5,.95); display: flex; align-items: center; justify-content: center; }
.jg .jg-gal-view img { max-width: 92%; max-height: 88%; object-fit: contain; }
.jg .jg-gal-view .cap { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; color: var(--g-dim); font-size: 12px; }
.jg .jg-gal-view .prev, .jg .jg-gal-view .next { position: absolute; top: 50%; transform: translateY(-50%); font-size: 20px; padding: 14px 16px; }
.jg .jg-gal-view .prev { left: 14px; }
.jg .jg-gal-view .next { right: 14px; }
.jg .jg-gal-view .close { position: absolute; top: 12px; right: 14px; }

/* 밤의 노예 시장(2026-10-22 유저 — 여자에 대한 내용을 카드로 이쁘게) */
.jg .jg-slv { display: flex; flex-direction: column; gap: 12px; }
.jg .jg-slv-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.jg .jg-slv-head h2 { font-family: 'Nanum Myeongjo', serif; color: var(--g-gold2); font-size: 26px; margin: 0; }
.jg .jg-slv-spark { margin-left: auto; color: var(--g-gold2); font-family: 'Nanum Myeongjo', serif; font-size: 18px; }
.jg .jg-slv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 14px; }
.jg .jg-slv-card { display: grid; grid-template-columns: 40% 1fr; border: 1px solid var(--g-line); border-radius: 8px; overflow: hidden;   /* 게임 화면은 세로가 짧다 — 그림 왼쪽 · 글 오른쪽 */
  background: linear-gradient(180deg, rgba(34,24,20,.96), rgba(12,9,11,.97)); box-shadow: 0 6px 18px rgba(0,0,0,.5); transition: transform .15s, border-color .15s, box-shadow .15s; }
.jg .jg-slv-card:hover { transform: translateY(-3px); border-color: var(--g-gold2); box-shadow: 0 10px 26px rgba(0,0,0,.6), 0 0 14px rgba(201,164,92,.25); }
.jg .jg-slv-pic { position: relative; min-height: 250px; overflow: hidden; background: radial-gradient(ellipse at 50% 30%, #2a2120, #0c0909 70%); }
.jg .jg-slv-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 4%; }
.jg .jg-slv-pic::after { content: ""; position: absolute; inset: 0 0 0 auto; width: 18%; background: linear-gradient(90deg, transparent, rgba(20,15,13,.9)); pointer-events: none; }
.jg .jg-slv-sil { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; opacity: .5; }
.jg .jg-slv-sil svg { height: 92%; }
.jg .jg-slv-price { position: absolute; left: 8px; top: 8px; z-index: 1; padding: 3px 10px; border-radius: 12px; background: rgba(12,9,11,.85); border: 1px solid var(--g-gold);
  color: var(--g-gold2); font-size: 13px; }
.jg .jg-slv-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.jg .jg-slv-body h3 { margin: 0; font-family: 'Nanum Myeongjo', serif; color: var(--g-gold2); font-size: 20px; display: flex; align-items: baseline; gap: 8px; }
.jg .jg-slv-body h3 small { font-family: 'Noto Sans KR', sans-serif; font-size: 12px; color: #e8cf8f; }
.jg .jg-slv-sub { margin: 0; font-size: 12px; color: var(--g-dim); }
.jg .jg-slv-pitch { margin: 0; font-family: 'Nanum Myeongjo', serif; font-size: 13px; line-height: 1.6; color: #e8dfcf; }
.jg .jg-slv-fig { font-size: 12px; color: #d9c7a4; }
.jg .jg-slv-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.jg .jg-slv-chips span { font-size: 11px; padding: 2px 7px; border-radius: 10px; border: 1px solid rgba(201,164,92,.35); color: #e8cf8f; background: rgba(201,164,92,.08); }
.jg .jg-slv-skills { font-size: 12px; color: var(--g-dim); }
.jg .jg-slv-body .jg-btn { margin-top: auto; width: 100%; }

/* 나레이션 판 · 화면 */
.jg .jg-plate { position: absolute; inset: 0; z-index: 7; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: #050405;
  text-align: center; padding: 40px; }
.jg .jg-plate h3 { font-family: 'Nanum Myeongjo', serif; color: var(--g-gold2); font-size: 26px; margin: 0; }
.jg .jg-plate p { font-family: 'Nanum Myeongjo', serif; color: #d6cdbf; margin: 0; line-height: 1.8; font-size: 16px; max-width: 680px; white-space: pre-line; }
.jg .jg-plate .cap { border: 1px solid rgba(255,255,255,.3); padding: 4px 10px; font-size: 12px; color: #bbb; }
.jg .jg-screen { position: absolute; inset: 0; z-index: 12; overflow: auto; padding: 64px 92px 28px 32px;
  background: radial-gradient(ellipse at 50% 30%, rgba(120,130,125,.16), transparent 60%), #060506; }
.jg .jg-title { max-width: 720px; margin: 40px auto 0; text-align: center; }   /* VN 끝 화면 */
/* 처음 화면(2026-10-30) — 표지 그림(intro.cover)이 천천히 다가오고, 왼쪽 어둠 위에 큰 제목 · 세로 메뉴. 저장 목록은 오른쪽 판(.jg-tsaves) */
.jg .jg-tscr { position: absolute; inset: 0; overflow: hidden; container-type: inline-size; background: #060506; }
.jg .jg-titleart { position: absolute; inset: -2%; background: center 30% / cover no-repeat; filter: brightness(.7) saturate(.85); pointer-events: none;
  animation: jg-tzoom 40s ease-in-out infinite alternate; }
@keyframes jg-tzoom { from { transform: scale(1); } to { transform: scale(1.08) translate(-1.5%, 1%); } }
.jg .jg-tscr::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(6,5,6,.94) 0%, rgba(6,5,6,.78) 28%, rgba(6,5,6,.25) 58%, rgba(6,5,6,.1) 100%),
    linear-gradient(0deg, rgba(6,5,6,.85), transparent 35%), radial-gradient(ellipse at 70% 40%, transparent 40%, rgba(0,0,0,.45)); }
.jg .jg-tfog { position: absolute; inset: -20%; z-index: 1; pointer-events: none; filter: blur(10px);
  background: radial-gradient(ellipse at 30% 75%, rgba(210,215,210,.12), transparent 42%), radial-gradient(ellipse at 75% 65%, rgba(210,215,210,.09), transparent 46%);
  animation: jg-drift 30s ease-in-out infinite alternate; }
.jg .jg-tmain { position: absolute; z-index: 2; left: 7cqw; top: 0; bottom: 0; width: min(46cqw, 560px); display: flex; flex-direction: column; justify-content: center; gap: 4.4cqw; }
.jg .jg-tlogo { margin: 0; display: flex; flex-direction: column; gap: .5cqw; font-family: 'Nanum Myeongjo', serif; font-weight: 800; animation: jg-tin 1.2s ease-out both; }
.jg .jg-tlogo small { display: flex; align-items: center; gap: 1.2cqw; font-size: clamp(13px, 1.45cqw, 22px); font-weight: 700; letter-spacing: .55em; color: #d9c58f; }
.jg .jg-tlogo small::after { content: ""; flex: 0 0 6cqw; height: 1px; background: linear-gradient(90deg, var(--g-gold), transparent); }
.jg .jg-tlogo span { font-size: clamp(46px, 7.4cqw, 112px); line-height: 1.05; letter-spacing: .04em; white-space: nowrap;
  background: linear-gradient(180deg, #fbf0c9 0%, #e8cf8f 45%, #a8803e 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 22px rgba(0,0,0,.85)); }
.jg .jg-tmenu { display: flex; flex-direction: column; align-items: flex-start; gap: .3cqw; margin-left: -2.2cqw; }   /* 글자 줄 = 제목 줄, ◆는 왼쪽 여백에 */
.jg .jg-tmenu button { position: relative; padding: .7cqw 2.4cqw .7cqw 2.2cqw; border: 0; background: none; cursor: pointer; text-align: left;
  font-family: 'Nanum Myeongjo', serif; font-weight: 700; font-size: clamp(16px, 1.6cqw, 24px); letter-spacing: .14em; color: #d6ccb9;
  text-shadow: 0 2px 8px rgba(0,0,0,.9); transition: color .2s, transform .2s; animation: jg-tin .7s ease-out backwards; }   /* backwards — 끝난 뒤 hover 이동을 막지 않게 */
.jg .jg-tmenu button::before { content: ""; position: absolute; left: .3cqw; top: calc(.7cqw + .68em); width: .55em; height: .55em; transform: translate(-6px, -50%) rotate(45deg);
  background: var(--g-gold2); box-shadow: 0 0 10px rgba(232,207,143,.8); opacity: 0; transition: opacity .2s, transform .2s; }
.jg .jg-tmenu button::after { content: ""; position: absolute; left: 2.2cqw; right: 0; bottom: .3cqw; height: 1px; background: linear-gradient(90deg, var(--g-gold), transparent);
  transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.jg .jg-tmenu button:hover, .jg .jg-tmenu button:focus-visible, .jg .jg-tmenu button.on { color: var(--g-gold2); transform: translateX(6px); outline: none; }
.jg .jg-tmenu button:hover::before, .jg .jg-tmenu button:focus-visible::before, .jg .jg-tmenu button.on::before { opacity: 1; transform: translate(0, -50%) rotate(45deg); }
.jg .jg-tmenu button:hover::after, .jg .jg-tmenu button:focus-visible::after, .jg .jg-tmenu button.on::after { transform: scaleX(1); }
.jg .jg-tmenu .cont { font-size: clamp(20px, 2.2cqw, 32px); color: var(--g-gold2); margin-bottom: .6cqw; }
.jg .jg-tmenu .cont small { display: block; margin-top: .3cqw; font-family: 'Noto Sans KR', sans-serif; font-weight: 400; font-size: clamp(11px, .95cqw, 14px); letter-spacing: .04em; color: var(--g-dim); }
.jg .jg-tmenu .themes { margin-top: 1.2cqw; font-size: clamp(13px, 1.15cqw, 17px); color: var(--g-dim); }
.jg .jg-tmenu button:nth-child(1) { animation-delay: .35s; } .jg .jg-tmenu button:nth-child(2) { animation-delay: .42s; } .jg .jg-tmenu button:nth-child(3) { animation-delay: .49s; }
.jg .jg-tmenu button:nth-child(4) { animation-delay: .56s; } .jg .jg-tmenu button:nth-child(5) { animation-delay: .63s; } .jg .jg-tmenu button:nth-child(6) { animation-delay: .7s; }
@keyframes jg-tin { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
/* 불러오기 판 — 오른쪽에서 밀려 나온다 */
.jg .jg-tsaves { position: absolute; z-index: 3; top: 0; right: 0; bottom: 0; width: min(440px, 42cqw); display: flex; flex-direction: column;
  background: rgba(9,7,8,.9); border-left: 1px solid var(--g-line); box-shadow: -20px 0 50px rgba(0,0,0,.6); backdrop-filter: blur(6px); animation: jg-tslide .3s ease-out; }
@keyframes jg-tslide { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
.jg .jg-tsaves-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 22px 14px; border-bottom: 1px solid rgba(201,164,92,.25); }
.jg .jg-tsaves-head h3 { margin: 0; font-family: 'Nanum Myeongjo', serif; font-size: 20px; letter-spacing: .3em; color: var(--g-gold2); }
.jg .jg-tsaves-head .close { border: 0; background: none; cursor: pointer; font-size: 18px; color: var(--g-dim); padding: 4px 8px; }
.jg .jg-tsaves-head .close:hover { color: var(--g-gold2); }
.jg .jg-tslots { flex: 1; overflow: auto; padding: 8px 0; }
.jg .jg-tslot-row { display: flex; align-items: center; border-bottom: 1px solid rgba(201,164,92,.12); }
.jg .jg-tslot { flex: 1; min-width: 0; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: baseline;
  padding: 12px 10px 12px 22px; border: 0; border-left: 3px solid transparent; background: none; cursor: pointer; text-align: left; transition: background .2s, border-color .2s; }
.jg .jg-tslot .no { grid-row: span 2; align-self: center; font-family: 'Nanum Myeongjo', serif; font-size: 20px; color: rgba(201,164,92,.55); }
.jg .jg-tslot .what { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.jg .jg-tslot .what b { font-weight: 500; font-size: 15px; color: var(--g-text); }
.jg .jg-tslot .what em { font-style: normal; font-size: 13px; color: var(--g-gold); }
.jg .jg-tslot small { font-size: 11.5px; color: var(--g-dim); }
.jg .jg-tslot:hover, .jg .jg-tslot:focus-visible { background: rgba(201,164,92,.1); border-left-color: var(--g-gold2); outline: none; }
.jg .jg-tslot:hover .no, .jg .jg-tslot:focus-visible .no { color: var(--g-gold2); }
.jg .jg-tdel { flex: none; margin-right: 14px; padding: 4px 9px; border: 1px solid transparent; border-radius: 3px; background: none; cursor: pointer; font-size: 12px; color: var(--g-dim); }
.jg .jg-tdel:hover { border-color: var(--g-line); color: var(--g-text); }
.jg .jg-tdel.danger { border-color: rgba(220,110,100,.8); color: #f0a090; }
/* 좁은 화면(폰) — 제목 · 메뉴를 가운데로, 불러오기 판은 화면 전체 */
@container (max-width: 700px) {
  .jg .jg-tscr::before { background: linear-gradient(0deg, rgba(6,5,6,.95) 0%, rgba(6,5,6,.7) 55%, rgba(6,5,6,.25) 100%); }
  .jg .jg-tmain { left: 16px; right: 16px; width: auto; align-items: center; text-align: center; gap: 30px; }
  .jg .jg-tlogo { align-items: center; }
  .jg .jg-tlogo small { letter-spacing: .4em; }
  .jg .jg-tlogo small::after { display: none; }
  .jg .jg-tlogo span { font-size: clamp(40px, 13cqw, 64px); }
  .jg .jg-tmenu { align-items: center; gap: 2px; margin-left: 0; }
  .jg .jg-tmenu button { padding: 8px 18px; text-align: center; }
  .jg .jg-tmenu button::before { display: none; }
  .jg .jg-tmenu button::after { left: 18px; right: 18px; transform-origin: center; }
  .jg .jg-tmenu button:hover, .jg .jg-tmenu button:focus-visible, .jg .jg-tmenu button.on { transform: none; }
  .jg .jg-tmenu .cont { margin-bottom: 4px; }
  .jg .jg-tmenu .themes { margin-top: 10px; }
  .jg .jg-tsaves { width: 100%; border-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .jg .jg-titleart, .jg .jg-tfog, .jg .jg-tlogo, .jg .jg-tmenu button, .jg .jg-tsaves, .jg .jg-mq-body > * { animation: none; } }
/* 세계 선택(2026-10-29) — 테마마다 표지 그림 카드, 카드 전체가 버튼 */
.jg .jg-pick { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; }
.jg .jg-pick-head { margin: 0; display: flex; align-items: center; gap: 16px; font-family: 'Nanum Myeongjo', serif; font-weight: 700; font-size: 15px;
  letter-spacing: .5em; text-indent: .5em; color: var(--g-gold2); }
.jg .jg-pick-head::before, .jg .jg-pick-head::after { content: ""; width: 90px; height: 1px; background: linear-gradient(90deg, transparent, var(--g-gold)); }
.jg .jg-pick-head::after { transform: scaleX(-1); }
.jg .jg-worlds { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.jg .jg-worlds .jg-word { margin: 0; font-size: 13px; }
.jg .jg-wcard { position: relative; width: 270px; aspect-ratio: 3 / 4; padding: 0; border: 1px solid var(--g-line); border-radius: 10px; overflow: hidden; cursor: pointer;
  text-align: left; word-break: keep-all; background: radial-gradient(ellipse at 50% 30%, #2a2120, #0c0909 70%); box-shadow: 0 18px 40px rgba(0,0,0,.65);
  transition: transform .25s, box-shadow .25s, border-color .25s; }
.jg .jg-wcard .art { position: absolute; inset: 0; background: center 30% / cover no-repeat; transition: transform .6s; }
.jg .jg-wcard::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(5,4,5,0) 34%, rgba(5,4,5,.72) 60%, rgba(5,4,5,.97)); }
.jg .jg-wcard .body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 18px 18px 56px; display: flex; flex-direction: column; gap: 6px; }
.jg .jg-wcard b { font-family: 'Nanum Myeongjo', serif; font-size: 22px; line-height: 1.3; color: var(--g-gold2); text-shadow: 0 2px 8px rgba(0,0,0,.8); }
.jg .jg-wcard em { font-style: normal; font-family: 'Nanum Myeongjo', serif; font-size: 13px; line-height: 1.6; color: #d8cfbf; }
.jg .jg-wcard small { font-size: 11.5px; color: var(--g-dim); }
.jg .jg-wcard .last { align-self: flex-start; padding: 2px 8px; border-radius: 999px; background: var(--g-gold2); color: #120d09; font-size: 10.5px; font-weight: 700; }
.jg .jg-wcard .go { position: absolute; left: 18px; right: 18px; bottom: 12px; z-index: 1; padding-top: 10px; border-top: 1px solid rgba(201,164,92,.35);
  text-align: center; font-size: 13px; letter-spacing: .3em; text-indent: .3em; color: var(--g-gold); transition: color .25s; }
.jg .jg-wcard:hover, .jg .jg-wcard:focus-visible { transform: translateY(-6px); border-color: var(--g-gold2); outline: none;
  box-shadow: 0 26px 50px rgba(0,0,0,.7), 0 0 24px rgba(201,164,92,.28); }
.jg .jg-wcard:hover .art, .jg .jg-wcard:focus-visible .art { transform: scale(1.06); }
.jg .jg-wcard:hover .go, .jg .jg-wcard:focus-visible .go { color: var(--g-gold2); }
.jg .jg-title h2 { font-family: 'Nanum Myeongjo', serif; color: var(--g-gold2); font-size: 44px; margin: 0 0 6px; letter-spacing: .06em; }
.jg .jg-title .sub { color: var(--g-dim); font-size: 13px; margin-bottom: 28px; }
.jg .jg-title .jg-btn { margin: 6px; padding: 12px 30px; font-size: 15px; }
.jg .jg-world { max-width: 760px; margin: auto; text-align: center; }   /* 글이 짧으면 세로 가운데, 넘치면 위부터 */
.jg .jg-screen:has(> .jg-world) { display: flex; flex-direction: column; }
.jg .jg-world h2 { font-family: 'Nanum Myeongjo', serif; color: var(--g-gold2); font-size: 34px; margin: 0 0 6px; letter-spacing: .04em; }
.jg .jg-world .sub { color: var(--g-dim); font-size: 12px; margin-bottom: 22px; }
.jg .jg-world p { font-family: 'Nanum Myeongjo', serif; color: #d6cdbf; line-height: 1.95; font-size: 16.5px; margin: 0 0 14px; white-space: pre-line; }
.jg .jg-world .jg-btn { margin-top: 14px; padding: 12px 28px; font-size: 15px; }
/* 「나」 만들기(2026-10-30) — 질문 하나씩, 표지 그림을 어둡게 깐 가운데 칸. 능력치는 보이지 않는다 */
.jg .jg-mq { position: absolute; inset: 0; overflow: hidden; container-type: inline-size; background: #060506; }
.jg .jg-mq .jg-titleart { filter: brightness(.32) saturate(.7) blur(2px); }
.jg .jg-mq::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse at 50% 45%, rgba(6,5,6,.35), rgba(6,5,6,.9) 75%); }
.jg .jg-mq-body { position: absolute; inset: 0; z-index: 2; overflow: auto; padding: 48px max(16px, calc((100% - 820px) / 2)) 32px;
  display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.jg .jg-mq-body > * { animation: jg-tin .45s ease-out backwards; }
.jg .jg-mq-body > :first-child { margin-top: auto; }   /* 넘치지 않으면 가운데, 넘치면 위부터(잘리지 않게) */
.jg .jg-mq-body > :last-child { margin-bottom: auto; }
.jg .jg-mq-prog { display: flex; gap: 6px; }
.jg .jg-mq-prog i { width: 22px; height: 3px; border-radius: 2px; background: rgba(201,164,92,.22); transition: background .3s; }
.jg .jg-mq-prog i.on { background: rgba(201,164,92,.7); }
.jg .jg-mq-prog i.now { background: var(--g-gold2); box-shadow: 0 0 8px rgba(232,207,143,.6); }
.jg .jg-mq-ask { margin: 0; font-family: 'Nanum Myeongjo', serif; font-weight: 700; font-size: clamp(22px, 2.6cqw, 34px); line-height: 1.5; color: #efe4c8; word-break: keep-all;
  text-shadow: 0 2px 12px rgba(0,0,0,.9); }
.jg .jg-mq-pick { margin: -10px 0 0; font-size: 13px; color: var(--g-gold); letter-spacing: .05em; }
.jg .jg-mq-opts { width: min(100%, 460px); display: grid; gap: 8px; }
.jg .jg-mq-opts.two { width: 100%; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.jg .jg-mq-opt { padding: 12px 18px; border: 1px solid rgba(201,164,92,.3); border-radius: 6px; background: rgba(14,10,10,.78); cursor: pointer; text-align: left;
  display: flex; flex-direction: column; gap: 3px; transition: border-color .2s, background .2s, transform .2s; }
.jg .jg-mq-opt b { font-family: 'Nanum Myeongjo', serif; font-size: 17px; font-weight: 700; color: var(--g-text); }
.jg .jg-mq-opt small { font-size: 12.5px; line-height: 1.5; color: var(--g-dim); word-break: keep-all; }
.jg .jg-mq-opt:hover, .jg .jg-mq-opt:focus-visible { border-color: var(--g-gold); background: rgba(40,28,18,.85); transform: translateX(3px); outline: none; }
.jg .jg-mq-opt.on { border-color: var(--g-gold2); background: linear-gradient(90deg, rgba(201,164,92,.28), rgba(201,164,92,.08)); box-shadow: 0 0 16px rgba(201,164,92,.25); }
.jg .jg-mq-opt.on b { color: var(--g-gold2); }
.jg .jg-mq-back { border: 0; background: none; cursor: pointer; padding: 6px 10px; font-size: 13px; color: var(--g-dim); }
.jg .jg-mq-back:hover { color: var(--g-gold2); }
.jg .jg-mq-foot { display: flex; align-items: center; justify-content: center; gap: 18px; }
.jg .jg-mq-foot .jg-btn { padding: 11px 30px; font-size: 15px; }
.jg .jg-mq-name { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.jg .jg-mq-name input { width: min(320px, 80vw); padding: 10px 4px; border: 0; border-bottom: 1px solid var(--g-gold); background: transparent; outline: none; text-align: center;
  font-family: 'Nanum Myeongjo', serif; font-size: 26px; color: var(--g-gold2); }
.jg .jg-mq-name input::placeholder { color: rgba(201,164,92,.35); }
.jg .jg-mq-name small { font-size: 11.5px; color: var(--g-dim); }
.jg .jg-mq-done { width: min(100%, 560px); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.jg .jg-mq-kick { font-family: 'Nanum Myeongjo', serif; font-size: 14px; letter-spacing: .4em; text-indent: .4em; color: var(--g-gold); }
.jg .jg-mq-done h2 { margin: 0; font-family: 'Nanum Myeongjo', serif; font-size: clamp(34px, 4.4cqw, 52px); color: var(--g-gold2); text-shadow: 0 4px 18px rgba(0,0,0,.9); }
.jg .jg-mq-blurb { margin: 0 0 8px; font-family: 'Nanum Myeongjo', serif; font-size: 15px; line-height: 1.8; color: #d6cdbf; word-break: keep-all; }
.jg .jg-mq-done dl { width: 100%; margin: 0; padding: 14px 18px; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; text-align: left; font-size: 14px; line-height: 1.6;
  border-top: 1px solid rgba(201,164,92,.3); border-bottom: 1px solid rgba(201,164,92,.3); }
.jg .jg-mq-done dt { font-family: 'Nanum Myeongjo', serif; color: var(--g-gold); }
.jg .jg-mq-done dd { margin: 0; color: #e2d9c8; }
.jg .jg-mq-done dd.more { grid-column: 2; }
.jg b.up { color: #8fd19e; font-weight: 600; }
.jg b.down { color: #e0605c; font-weight: 600; }
.jg .jg-endcols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; width: 100%; max-width: 980px; margin: 18px auto; text-align: left; }
.jg .jg-endcols > div { background: #100c0e; border: 1px solid rgba(201,164,92,.3); border-radius: 4px; padding: 12px 14px; font-size: 14px; line-height: 1.6; }
.jg .jg-endcols ol { margin: 0; padding-left: 20px; }

/* 알림 · 창 */
.jg .jg-toasts { position: absolute; left: 50%; top: 20%; transform: translateX(-50%); z-index: 30; display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; }
.jg .jg-toast { font-weight: 700; font-size: 15px; padding: 4px 14px; border-radius: 999px; background: rgba(0,0,0,.72); border: 1px solid currentColor; animation: jg-toast 2.3s forwards; }
@keyframes jg-toast { 0% { opacity: 0; transform: translate(0, 10px); } 12% { opacity: 1; transform: none; } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(0, -14px); } }
.jg .jg-modal { position: absolute; inset: 0; background: rgba(0,0,0,.62); z-index: 20; display: flex; align-items: center; justify-content: center; }
.jg .jg-mbox { width: min(900px, 94%); max-height: 90%; overflow: auto; background: linear-gradient(#17110f, #0e0a0b); border: 1px solid var(--g-gold); border-radius: 4px;
  box-shadow: 0 30px 80px rgba(0,0,0,.7); }
.jg .jg-mtabs { display: flex; border-bottom: 1px solid rgba(201,164,92,.4); position: sticky; top: 0; background: #151010; z-index: 1; }
.jg .jg-mtabs button { background: none; border: 0; border-radius: 0; color: var(--g-dim); padding: 12px 18px; cursor: pointer; font-size: 14px; }
.jg .jg-mtabs button.on { color: var(--g-gold2); box-shadow: inset 0 -2px 0 var(--g-gold); }
.jg .jg-mtabs .close { margin-left: auto; }
.jg .jg-mtitle { align-self: center; padding: 0 14px 0 18px; font-family: 'Nanum Myeongjo', serif; color: var(--g-gold2); font-size: 15px; font-weight: 700; white-space: nowrap; }
.jg .jg-mtitle + [data-ctab] { border-left: 1px solid rgba(201,164,92,.25); }
.jg .jg-mhelp { margin-left: auto; align-self: center; padding: 0 2px 0 8px; }
.jg .jg-mhelp .jg-tipq { width: 20px; height: 20px; font-size: 13px; line-height: 18px; margin: 0; }
.jg .jg-mhelp + .close { margin-left: 0; }
.jg .jg-mbody { padding: 16px 18px; }
.jg .jg-mbox.narrow { width: min(540px, 94%); }
.jg .jg-endday { display: flex; flex-direction: column; gap: 8px; }
.jg .jg-endq { font-family: 'Nanum Myeongjo', serif; color: var(--g-gold2); font-size: 17px; font-weight: 700; margin: 2px 0 6px; text-align: center; }
.jg .jg-endday .jg-word { margin: 0 0 4px; text-align: center; }
/* 흐름도 「게임 화면으로 보기」(game.mjs previewScene) — 장면만, 위 막대 · 옆 메뉴 · 선택지 새로 받기는 숨긴다 */
.jg.preview :is(.jg-hud, .jg-side, .jg-ctools, .jg-foot, .jg-bglabel, .jg-splabel) { display: none !important; }   /* 배경 이름표 · 표정표(작업용 표시)도 — 게임 화면 그대로 */
/* 「하루를 마친다」 — 행동창 맨 아래에 붙어 있다(휴대폰처럼 창 안을 굴려야 할 때도 늘 보이게). 아래 그림자 = 창 안쪽 여백 띠를 창 색으로 덮는다 */
.jg .jg-endrow { position: sticky; bottom: 0; z-index: 1; box-sizing: border-box; margin-top: 10px; background: #1a1311 !important; box-shadow: 0 -8px 12px -6px rgba(0,0,0,.7), 0 16px 0 0 rgb(12,9,11); }
.jg .jg-endrow > span { display: flex; flex-direction: column; min-width: 0; }
.jg .jg-endrow :is(b, small) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jg .jg-endrow em { flex: none; font-size: 14px; }
.jg .jg-panel.day .jg-endrow.due { border-color: var(--g-gold); outline: 2px solid rgba(201,164,92,0); animation: jg-due 1.6s ease-in-out infinite alternate; }
@keyframes jg-due { from { outline-color: rgba(201,164,92,0); } to { outline-color: rgba(201,164,92,.45); } }
/* 조교 — 마음 오각형(2026-11-28 유저). 꼭짓점 이름 단추를 누르면 그 마음의 조교가 아래에 펼쳐진다. 색 = 마음 막대 색(COLOR) */
.jg .jg-penta { position: relative; width: min(330px, 100%); aspect-ratio: 300 / 250; margin: 0 auto 2px; }
.jg .jg-penta svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.jg .jg-penta .grid :is(polygon, line) { fill: none; stroke: rgba(201,164,92,.16); stroke-width: 1; }
.jg .jg-penta .grid polygon.out { stroke: rgba(201,164,92,.45); }
.jg .jg-penta .val { fill: rgba(201,164,92,.2); stroke: var(--g-gold); stroke-width: 2; stroke-linejoin: round; }
.jg .jg-penta [data-mind] { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 60px; padding: 4px 8px;
  background: rgba(12,9,11,.88); border: 1px solid rgba(255,255,255,.14); border-radius: 4px; color: var(--g-text); font: inherit; cursor: pointer; }
.jg .jg-penta [data-mind] b { color: var(--mc); font-size: 15px; line-height: 1.2; }
.jg .jg-penta [data-mind] small { color: var(--g-dim); font-size: 12px; line-height: 1.2; }
.jg .jg-penta [data-mind]:hover, .jg .jg-penta [data-mind].on { border-color: var(--mc); box-shadow: inset 0 0 0 1px var(--mc); }
.jg .jg-penta [data-mind].on { background: rgba(30,22,20,.95); }
.jg .jg-pentahint { text-align: center; margin-top: 6px; }
.jg .jg-sec { font-family: 'Nanum Myeongjo', serif; color: var(--g-gold2); margin: 14px 0 6px; font-size: 15px; font-weight: 700; }
.jg .jg-sgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0 18px; }
.jg .jg-srow { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 14px; gap: 8px; }
.jg .jg-srow.me { color: var(--g-gold2); }
.jg .jg-judge small { display: block; font-size: 12.5px; opacity: .82; margin-top: 2px; line-height: 1.45; }
.jg .jg-score { font-size: 19px; font-weight: 700; color: var(--g-gold2); min-width: 28px; text-align: right; }
.jg .jg-rk { display: inline-block; min-width: 34px; text-align: center; font-weight: 700; font-size: 12px; padding: 2px 6px; border-radius: 3px; color: #120d0d; }
.jg .jg-word { color: var(--g-dim); font-size: 12px; margin-right: 8px; }
.jg .jg-expbar { display: inline-flex; gap: 2px; margin-right: 8px; vertical-align: middle; }
.jg .jg-expbar i { width: 10px; height: 6px; border-radius: 1px; background: rgba(255,255,255,.12); }
.jg .jg-expbar i.on { background: #9fd3a8; }
.jg .jg-mebar { display: inline-block; width: 46px; height: 6px; border-radius: 2px; background: rgba(255,255,255,.12); margin-right: 5px; vertical-align: middle; overflow: hidden; }
.jg .jg-mebar i { display: block; height: 100%; background: #e6c27a; }
.jg .jg-auras { display: flex; flex-direction: column; gap: 6px; }
.jg .jg-aura { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.jg .jg-aura .an { width: 36px; }
.jg .jg-aura .bar { position: relative; width: 170px; height: 10px; border-radius: 2px; background: rgba(255,255,255,.08); overflow: hidden; }
.jg .jg-aura .bar i { position: absolute; left: 0; top: 0; bottom: 0; }
.jg .jg-aura .bar s { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(0,0,0,.6); }
.jg .jg-aura .av { color: var(--g-dim); font-size: 12px; }
.jg .jg-chips span { display: inline-block; border: 1px solid rgba(201,164,92,.4); padding: 3px 9px; border-radius: 999px; font-size: 12px; margin: 0 6px 6px 0; }
.jg .jg-chips span.bad { border-color: rgba(220,110,100,.6); color: #f0b0a6; }
.jg .jg-chips .jg-tipq, .jg .jg-slv-chips .jg-tipq { width: 12px; height: 12px; margin-left: 3px; font-size: 9px; line-height: 10px; }
.jg .jg-head { display: flex; gap: 16px; align-items: flex-start; }
.jg .jg-portrait { width: 110px; height: 150px; border: 1px solid var(--g-line); border-radius: 4px; overflow: hidden; position: relative; flex: none; background: #0c090a; }
.jg .jg-portrait svg { width: 100%; height: auto; margin-top: 6px; }
.jg .jg-portrait small { position: absolute; bottom: 4px; left: 0; right: 0; text-align: center; font-size: 10px; color: var(--g-dim); }
.jg .jg-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.jg .jg-slot { border: 1px dashed rgba(201,164,92,.4); border-radius: 4px; padding: 8px; min-height: 58px; font-size: 12px; color: var(--g-dim); }
.jg .jg-slot b { display: block; color: var(--g-text); font-size: 13px; margin-top: 4px; font-weight: 500; }
.jg .jg-slot small { display: block; margin-top: 3px; font-size: 11px; }
.jg .jg-slot small.jg-left { color: var(--g-gold); }
.jg .jg-slot small.jg-left.soon { color: #f0a090; }
.jg button.jg-slot.off { background: transparent; text-align: left; font-family: inherit; cursor: pointer; border-style: solid; }
.jg button.jg-slot.off:hover { border-color: var(--g-gold, #c9a45c); }
.jg button.jg-slot.off.on { border-color: var(--g-gold2); background: rgba(201,164,92,.1); }
.jg .jg-up { display: inline-block; width: 15px; height: 15px; margin-left: 5px; border-radius: 50%; background: #e8cf8f; color: #1a1208; font: 700 11px/15px sans-serif; font-style: normal; text-align: center; vertical-align: 1px; }
.jg .jg-picks { display: flex; flex-direction: column; gap: 6px; }
.jg .jg-picks .jg-word { margin: 2px 0; }
.jg .jg-btabs { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.jg button[data-tip] { cursor: pointer; }
.jg .jg-bag { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.jg .jg-item { border: 1px solid var(--g-line); border-radius: 4px; padding: 10px; background: rgba(255,255,255,.03); cursor: pointer; font-size: 13px; position: relative; min-height: 72px; }
.jg .jg-item b { display: block; font-weight: 500; margin-bottom: 4px; padding-right: 22px; }
.jg .jg-item small { color: var(--g-dim); font-size: 11px; }
.jg .jg-item .q { position: absolute; right: 7px; top: 5px; color: var(--g-gold); font-size: 12px; }
.jg .jg-item.sel { border-color: var(--g-gold2); box-shadow: 0 0 12px rgba(201,164,92,.35); }
.jg .jg-idetail { margin-top: 12px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.12); border-radius: 4px; font-size: 14px; line-height: 1.6; }
.jg .jg-idetail p { margin: 6px 0 10px; color: #d3cabb; }
.jg .jg-log div { border-bottom: 1px solid rgba(255,255,255,.06); padding: 6px 0; color: #cfc6b8; font-size: 13px; line-height: 1.5; }
.jg .jg-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; font-size: 12px; color: var(--g-dim); }
.jg .jg-foot label { display: flex; gap: 6px; align-items: center; cursor: pointer; }

/* VN — 2 스토리 「스토리보드」(2026-10-19, vn.mjs). 1 게임과 같은 무대, 옆 막대 · 상태창 없음 */
.jg.vn .jg-stage { min-height: 420px; width: min(100%, calc((100vh - 180px) * 16 / 9)); }
.jg.vn .jg-bg.blur { filter: blur(22px) brightness(.4); transform: scale(1.1); }
.jg.vn .vn-cg { position: absolute; inset: 0; z-index: 1; background: center / contain no-repeat; pointer-events: none; }
.jg.vn .vn-stand { height: 92%; pointer-events: none; }
.jg.vn .vn-stand img.solo { height: 100%; width: auto; filter: drop-shadow(0 0 22px rgba(0,0,0,.7)); }
/* 1번 VN 배치(10-20 유저 — 니나 예시): 세로 배경은 가운데 통째로, 말하는 인물은 왼쪽 크게, 대화 창 · 선택지는 오른쪽 */
.jg.vn .vn-stand { left: 2%; transform: none; height: 97%; }
/* 대화 창 비율(10-20 유저 「이상한 비율이라 몰입이 안 된다」 — 니나 예시처럼): 오른쪽 끝 · 바닥에 붙이지 않고 띄우고, 글자는 무대 폭에 맞춰 크게,
   말하는 인물이 있으면 인물 쪽으로 말꼬리. 인물이 없는 줄(나레이션)은 가운데 */
.jg.vn .jg-stage { container-type: inline-size; }
.jg.vn .jg-dialog { left: 16%; right: 16%; bottom: 6%; min-height: 23%; border-radius: 14px; padding: 2.4cqw 2.8cqw 2cqw; }
.jg.vn .jg-dialog .jg-name { top: -1.3cqw; left: 2.4cqw; font-size: clamp(13px, 1.15cqw, 21px); padding: .35cqw 1.4cqw; border-radius: 8px; }
.jg.vn .jg-stage.has-stand .jg-dialog { left: 30%; right: 15%; }
.jg.vn .jg-stage.has-stand .jg-dialog::before { content: ""; position: absolute; left: -11px; top: 30%; width: 20px; height: 20px; transform: rotate(45deg);
  background: rgba(13,9,11,.92); border-left: 1px solid rgba(201,164,92,.6); border-bottom: 1px solid rgba(201,164,92,.6); }
.jg.vn .jg-stage.has-stand .jg-dialog.narr::before { display: none; }   /* 나레이션(이름 없음)은 꼬리 없이 */
.jg.vn .jg-choices { top: 38%; bottom: auto; transform: translate(-50%, -50%); }
.jg.vn .jg-stage.has-stand .jg-choices { left: 57.5%; width: min(600px, 50%); }
.jg.vn .jg-screen { padding: 56px 32px 28px; }
.jg.vn .jg-title h2 { font-size: 34px; }
.jg.vn .jg-title .jg-word { margin: 8px 0; font-size: 13px; }
.jg.vn .jg-dialog .jg-text { font-size: clamp(16px, 1.6cqw, 28px); line-height: 1.7; }
.jg.vn .jg-choice { font-size: clamp(15px, 1.3cqw, 23px); }
.jg.vn .vn-tools { display: flex; gap: 6px; }
.jg.vn .vn-logbox { margin-top: 8px; padding: 10px 14px; border: 1px solid var(--g-line); border-radius: 4px; background: #0d0a0c; max-height: 260px; overflow: auto; font-size: 13px; line-height: 1.6; }
.jg.vn .vn-logbox ol { margin: 0; padding-left: 20px; }
.jg.vn .vn-logbox .vn-at { color: var(--g-dim); }
.jg.vn .vn-logbox b { color: var(--g-gold2); font-weight: 500; }
/* ── 휴대폰 가로(.jg.mobile — 공개판 player.mjs fitStage가 붙인다). 왼쪽 46% = 그림, 오른쪽 = 글 · 창. 무대가 0.8배 안팎으로 줄어드는 만큼 글자를 키운다 ── */
.jg.mobile .jg-hud { height: 46px; gap: 6px; padding: 0 76px 0 12px; font-size: 15px; }
.jg.mobile .jg-hud b { font-size: 19px; }
.jg.mobile .jg-chip { padding: 3px 9px; }
.jg.mobile .jg-menubtn { top: 4px; height: 38px; padding: 0 16px; font-size: 22px; }
.jg.mobile .jg-side { left: 12px; right: auto; top: auto; bottom: 12px; flex-direction: row; }   /* 상태 · 소지품 · 기록 = 왼쪽 아래 한 줄(그림의 다리 쪽) */
.jg.mobile .jg-side button { width: 72px; height: 54px; font-size: 13px; }
.jg.mobile .jg-sprite, .jg.mobile .jg-stage.panel .jg-sprite, .jg.mobile .jg-stage:has(> .jg-panel.day:not([hidden])) .jg-sprite { left: 23%; top: 8%; height: 150%; }
.jg.mobile .jg-dialog, .jg.mobile .jg-stage.cg .jg-dialog { left: 46%; right: 12px; bottom: 12px; min-height: 0; padding: 26px 20px 16px;
  border: 1px solid rgba(201,164,92,.6); border-radius: 6px; box-shadow: none; background: rgba(10,8,10,.94); }
.jg.mobile .jg-dialog .jg-name, .jg.mobile .jg-stage.cg .jg-dialog .jg-name { left: 14px; }
.jg.mobile .jg-dialog .jg-text { line-height: 1.6; }
.jg.mobile .jg-choices, .jg.mobile .jg-stage.cg .jg-choices { left: 46%; right: 12px; width: auto; transform: none; gap: 8px;
  bottom: calc(12px + var(--dlg, 0px) + 18px); max-height: calc(100% - 88px - var(--dlg, 0px)); overflow: hidden auto; }   /* 대화창 바로 위, 많으면 안에서 굴린다 */
.jg.mobile .jg-choice { text-align: left; font-size: 18px; padding: 10px 16px; }
.jg.mobile .jg-ctools { justify-content: flex-start; }
.jg.mobile .jg-panel, .jg.mobile .jg-panel.day { box-sizing: border-box; left: 46%; right: 12px; width: auto; top: calc(58px + var(--bub, 0px)); bottom: auto; max-height: calc(100% - 70px - var(--bub, 0px)); padding: 14px; }
.jg.mobile .jg-panel .jg-btn { font-size: 16px; }
.jg.mobile .jg-panel .jg-btn small { font-size: 13px; }
.jg.mobile .jg-dp-head { font-size: 20px; }
/* 말풍선 — 머리 옆 대신 행동창 위 띠, 꼬리는 그녀 쪽(game.mjs showBubble이 무대에 붙이고 높이를 --bub로 넘긴다) */
.jg.mobile .jg-stage > .jg-bubble, .jg.mobile .jg-stage:has(> .jg-panel:not([hidden])) > .jg-bubble { left: 46%; top: 54px; z-index: 7; max-width: calc(54% - 44px); padding: 10px 16px; font-size: 17px; }
.jg.mobile .jg-stage > .jg-bubble::after { left: -12px; top: 14px; bottom: auto; border: 9px solid transparent; border-right: 13px solid rgba(252,248,240,.96); border-left: 0; transform: none; }
/* 선택지가 뜨면 대사칸은 내리고 선택지가 그 자리에(그 줄은 먼저 읽고 누르면 선택지 — game.mjs 장면 step) */
.jg.mobile .jg-stage:has(> .jg-choices:not(:empty)) .jg-dialog { display: none; }
.jg.mobile .jg-stage:has(> .jg-choices:not(:empty)) .jg-choices { bottom: 12px; max-height: calc(100% - 70px); }
/* 컷신 — 세로 그림을 가운데 세로로 다 보이게(양옆은 같은 그림을 흐리게), 대사 · 선택지는 그림 위 아래쪽 가운데에 겹쳐서. 위 막대는 ☰만 */
.jg.mobile .jg-stage.cg:not(.hide-ui) .jg-cg, .jg.mobile .jg-stage.cg:not(.hide-ui):has(> .jg-dialog:not([hidden])) .jg-cg { bottom: 0; }
.jg.mobile .jg-stage.cg .jg-dialog, .jg.mobile .jg-stage.cg .jg-choices { left: max(12px, calc(50% - 340px)); right: max(12px, calc(50% - 340px)); }
.jg.mobile .jg-stage.cg .jg-dialog { background: rgba(10,8,10,.86); }
.jg.mobile .jg-stage.cg .jg-hud { left: 0; background: none; }
.jg.mobile .jg-stage.cg .jg-hud > :not(.jg-menubtn) { display: none; }
/* 「나」 만들기 — 휴대폰은 한 화면에(여백 · 글자를 줄이고 보기는 두 줄로) */
.jg.mobile .jg-mq-body { padding: 14px 24px 10px; gap: 10px; }
.jg.mobile .jg-mq-ask { font-size: 22px; line-height: 1.35; }
.jg.mobile .jg-mq-pick { margin: -4px 0 0; }
.jg.mobile .jg-mq-opts { width: min(100%, 780px); grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.jg.mobile .jg-mq-opts.two { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.jg.mobile .jg-mq-opt { padding: 8px 14px; gap: 1px; }
.jg.mobile .jg-mq-opt b { font-size: 16px; }
.jg.mobile .jg-mq-opt small { font-size: 13.5px; line-height: 1.4; }
.jg.mobile .jg-mq-foot .jg-btn { padding: 8px 26px; }
.jg.mobile .jg-mq-done { width: min(100%, 780px); gap: 4px; }
.jg.mobile .jg-mq-kick { font-size: 12px; }
.jg.mobile .jg-mq-done h2 { font-size: 30px; }
.jg.mobile .jg-mq-blurb { margin: 0 0 4px; font-size: 14px; line-height: 1.55; }
.jg.mobile .jg-mq-done dl { padding: 8px 14px; gap: 2px 14px; font-size: 13px; line-height: 1.45; }
.jg.mobile .jg-penta [data-mind] { min-width: 64px; min-height: 44px; justify-content: center; }   /* 휴대폰 — 누르기 쉬운 크기 */
.jg.mobile .jg-mbox :is(.jg-btn small, .jg-eff, .jg-lock, .jg-result i, .jg-choice small) { font-size: 13px; }   /* 휴대폰(배율 0.75까지 줄어든다) — 줄 설명 · 효과 · 잠김 글이 9px로 줄지 않게(11-28 점검) */
/* 옷장(2026-11-30 유저 — 옷이 선반의 마네킹으로 걸리고, 고르면 설명 카드 · 오른쪽에 입혀 보기. 밝고 어린 느낌 없이 — 어두운 나무 · 놋쇠 · 가스등) */
.jg .jg-mbox.wardrobe { width: min(1180px, 96%); height: 90%; display: flex; flex-direction: column; overflow: hidden; }
.jg .jg-mbox.wardrobe .jg-mbody { flex: 1; min-height: 0; padding: 14px 16px; display: flex; flex-direction: column; }
.jg .jg-wd { flex: 1; min-height: 0; display: flex; gap: 14px; }
.jg .jg-wd-left { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.jg .jg-wd-shelf { flex: 1; min-height: 0; overflow: auto; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(150px, 1fr); gap: 18px 10px; padding: 16px 14px 18px;
  border: 1px solid #6e5428; border-radius: 3px;
  background: linear-gradient(rgba(0,0,0,.25), rgba(0,0,0,.55)), repeating-linear-gradient(90deg, #2a1c14 0 3px, #22170f 3px 11px, #2d1e15 11px 17px, #251910 17px 26px);
  box-shadow: inset 0 0 0 7px #2b1c12, inset 0 0 0 8px rgba(138,109,59,.45), inset 0 0 60px rgba(0,0,0,.85); }
.jg .jg-wd-item { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; min-height: 0; padding: 0; background: none; border: 0; cursor: pointer; }
.jg .jg-wd-pic { flex: 1; min-height: 0; max-height: 170px; display: flex; align-items: flex-end; justify-content: center; filter: drop-shadow(0 8px 6px rgba(0,0,0,.75)); transition: filter .2s; }
.jg .jg-wd-pic :is(svg, img) { height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.jg .jg-wd-plate { display: block; margin-top: 2px; padding: 6px 6px 5px; font-family: 'Nanum Myeongjo', serif; font-size: 13px; font-weight: 700; color: #d9c7a0; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: linear-gradient(#4a3120, #2b1b11); border-top: 2px solid #6e4e30; box-shadow: 0 5px 8px rgba(0,0,0,.65); }
.jg .jg-wd-item:hover .jg-wd-plate { color: #f0e2bd; }
.jg .jg-wd-item.empty { cursor: default; }   /* 빈 옷걸이 자리 */
.jg .jg-wd-item.empty .jg-wd-plate { opacity: .45; }
.jg .jg-wd-item.sel .jg-wd-plate { background: linear-gradient(#c9a45c, #7d5f2f); color: #1a120c; border-top-color: #e8cf8f; }
.jg .jg-wd-item.sel .jg-wd-pic { filter: drop-shadow(0 8px 6px rgba(0,0,0,.75)) drop-shadow(0 0 12px rgba(255,176,96,.45)); }
.jg .jg-wd-worn { position: absolute; top: 2px; left: 2px; padding: 2px 7px; font-size: 11px; color: #f3dccc; background: rgba(110,28,28,.9); border: 1px solid rgba(220,140,120,.55); border-radius: 2px; }
.jg .jg-wd-q { position: absolute; top: 2px; right: 4px; font-size: 12px; color: var(--g-gold2); }
.jg .jg-wd-card { flex: 0 0 auto; padding: 12px 14px; background: linear-gradient(#1f1713, #140e0c); border: 1px solid var(--g-line); border-left: 3px solid var(--g-gold); border-radius: 3px; }
.jg .jg-wd-cardhead { display: flex; align-items: baseline; gap: 10px; }
.jg .jg-wd-cardhead b { font-family: 'Nanum Myeongjo', serif; font-size: 18px; color: var(--g-gold2); }
.jg .jg-wd-card p { margin: 6px 0; font-family: 'Nanum Myeongjo', serif; font-size: 14px; line-height: 1.7; color: #d8cfbf; word-break: keep-all; }
.jg .jg-wd-card .jg-eff, .jg .jg-wd-card .jg-lock { font-size: 13px; }
.jg .jg-wd-act { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.jg .jg-wd-act .jg-word:last-child { margin-left: auto; }
.jg .jg-wd-stage { flex: 0 0 auto; width: clamp(240px, 31%, 380px); position: relative; display: flex; align-items: flex-end; justify-content: center; overflow: hidden;
  border: 1px solid var(--g-line); border-radius: 3px;
  background: radial-gradient(ellipse 60% 42% at 50% 0%, rgba(255,176,96,.22), transparent 70%), radial-gradient(ellipse 46% 7% at 50% 97%, rgba(0,0,0,.75), transparent),
    linear-gradient(#1c1617, #0b0909); }
.jg .jg-wd-stage .jg-spimg { height: 94%; }
.jg .jg-wd-stage > svg { height: 88%; }
.jg .jg-wd-cap { position: absolute; top: 10px; left: 0; right: 0; text-align: center; font-family: 'Nanum Myeongjo', serif; font-size: 13px; letter-spacing: .08em; color: var(--g-gold2);
  text-shadow: 0 2px 6px rgba(0,0,0,.9); }
.jg.mobile .jg-wd-shelf { grid-template-columns: repeat(3, 1fr); }
.jg.mobile .jg-wd-shelf { grid-auto-rows: minmax(128px, 1fr); }
.jg.mobile .jg-wd-stage { width: 34%; }
/* 식탁(2026-11-30 유저 — 다른 게임의 식단 화면처럼, 밝고 어린 느낌 없이): 왼쪽 쇠 쟁반에 접시, 오른쪽 카드에 설명 · 먹일 사람 */
.jg .jg-mbox.dining { width: min(1080px, 96%); height: 90%; display: flex; flex-direction: column; overflow: hidden; }   /* 높이 고정 — 결과 글이 쌓여도 쟁반 · 카드 안에서만 넘긴다 */
.jg .jg-mbox.dining .jg-mbody { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 6px; }
.jg .jg-mbox.dining .jg-result { flex: 0 0 auto; padding: 6px 10px; line-height: 1.5; }
.jg .jg-mbox.dining .home { flex: 0 0 auto; margin-top: 6px !important; }
.jg .jg-ml { flex: 1; min-height: 0; display: flex; gap: 14px; align-items: stretch; }
.jg .jg-ml-left { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 10px; }
.jg .jg-ml-who { display: flex; flex-wrap: wrap; gap: 6px; }
.jg .jg-ml-who > :is(span, button) { padding: 4px 10px; font-family: 'Nanum Myeongjo', serif; font-size: 14px; border: 1px solid var(--g-line); border-radius: 2px; background: rgba(255,255,255,.03); }
.jg .jg-ml-who small { font-family: 'Noto Sans KR', sans-serif; font-size: 11px; margin-left: 4px; }
.jg .jg-ml-who .hungry { border-color: rgba(220,110,100,.6); }
.jg .jg-ml-who .hungry small { color: #f0a090; }
.jg .jg-ml-who .fed small { color: #b9d9b0; }
.jg .jg-ml-tray { flex: 1; min-height: 0; overflow: auto; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(110px, 1fr); gap: 16px 12px; padding: 20px 18px; border-radius: 18px; border: 1px solid #7a6a52;
  background: radial-gradient(ellipse at 50% 35%, #34302b, #1d1a17 75%);
  box-shadow: inset 0 0 0 6px #2a2622, inset 0 0 0 7px rgba(168,135,74,.5), inset 0 0 40px rgba(0,0,0,.8), 0 10px 24px rgba(0,0,0,.6); }
.jg .jg-ml-dish { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 0; padding: 8px 4px 6px; background: none; border: 1px solid transparent; border-radius: 6px; cursor: pointer; }
.jg .jg-ml-dish:hover { border-color: rgba(201,164,92,.3); }
.jg .jg-ml-dish.sel { border-color: var(--g-gold); background: radial-gradient(ellipse at 50% 40%, rgba(255,176,96,.16), transparent 70%); }
.jg .jg-ml-dish.empty { cursor: default; opacity: .35; }
.jg .jg-ml-plate { flex: 1; min-height: 0; max-height: 120px; width: 100%; display: flex; align-items: flex-end; justify-content: center; filter: drop-shadow(0 6px 5px rgba(0,0,0,.7)); }
.jg .jg-ml-plate :is(svg, img) { height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.jg .jg-ml-dish.empty .jg-ml-plate { flex: 0 0 26px; width: 70%; border-radius: 50%; border: 1px dashed rgba(168,135,74,.5); }
.jg .jg-ml-tag { padding: 2px 10px; font-family: 'Nanum Myeongjo', serif; font-size: 13px; color: #d9c7a0; background: linear-gradient(#4a3120, #2b1b11); border: 1px solid #6e4e30; border-radius: 2px;
  max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jg .jg-ml-tag { flex-shrink: 0; }
.jg .jg-ml-dish.sel .jg-ml-tag { background: linear-gradient(#c9a45c, #7d5f2f); color: #1a120c; border-color: #e8cf8f; }
.jg .jg-ml-tag small { font-family: 'Noto Sans KR', sans-serif; font-size: 11px; opacity: .85; }
.jg .jg-ml-dish.empty .jg-ml-tag { visibility: hidden; }
.jg .jg-ml-big.dim { opacity: .3; margin: auto 0; }
.jg .jg-ml-card { flex: 0 0 auto; width: clamp(240px, 36%, 360px); min-height: 0; overflow: auto; display: flex; justify-content: safe center; flex-direction: column; padding: 14px 16px; border-radius: 3px; background: linear-gradient(#211a15, #14100d);
  border: 1px solid var(--g-line); box-shadow: inset 0 0 0 4px #1b1511, inset 0 0 0 5px rgba(201,164,92,.35); }
.jg .jg-ml-big { height: 120px; display: flex; justify-content: center; align-items: flex-end; filter: drop-shadow(0 8px 8px rgba(0,0,0,.75)) drop-shadow(0 0 14px rgba(255,176,96,.18)); }
.jg .jg-ml-big :is(svg, img) { height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.jg .jg-ml-name { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin: 10px 0 4px; padding-top: 8px; border-top: 1px solid rgba(201,164,92,.3); }
.jg .jg-ml-name b { font-family: 'Nanum Myeongjo', serif; font-size: 18px; color: var(--g-gold2); }
.jg .jg-ml-card p { margin: 4px 0; font-family: 'Nanum Myeongjo', serif; font-size: 14px; line-height: 1.7; color: #d8cfbf; word-break: keep-all; }
.jg .jg-ml-card .jg-eff { font-size: 13px; }
.jg .jg-ml-feed { display: flex; flex-direction: column; gap: 6px; }
.jg .jg-ml-feed small { font-size: 11px; color: var(--g-dim); }
.jg.mobile .jg-ml-tray { padding: 14px 12px; gap: 10px 8px; }
.jg.mobile .jg-ml-tray { grid-auto-rows: minmax(96px, 1fr); }   /* 접시 54 + 이름판 — 두 줄이 돼도 이름판이 눌리지 않게 */
.jg.mobile .jg-ml-plate { flex: 0 0 54px; }   /* 휴대폰 — 결과 글이 쌓여도 접시는 줄지 않고 쟁반이 넘어간다 */
.jg.mobile .jg-ml-dish.empty .jg-ml-plate { flex-basis: 20px; width: 50%; }
.jg.mobile .jg-ml-card { justify-content: flex-start; }
.jg.mobile .jg-ml-big { display: none; }   /* 휴대폰 — 큰 접시는 쟁반에 있으니 빼고, 먹일 사람 버튼을 이름 바로 아래로 */
.jg.mobile .jg-ml-card > :is(p, .jg-eff) { order: 2; }
.jg.mobile .jg-ml-name { margin-top: 0; padding-top: 0; border-top: 0; }
/* 상점 · 식당 창(2026-11-30 유저 — 옷장 · 식사 창과 같은 틀): 가게 배경 위에 창, 왼쪽 선반(먹을거리 가게 · 식당은 쇠 쟁반), 오른쪽 카드에 설명 · 값 · 사기 */
.jg .jg-screen:has(> .jg-shop) { display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.5); }
.jg .jg-shop .jg-mtabs { align-items: center; }
.jg .jg-shop-spark { margin-left: auto; padding: 0 12px; font-family: 'Nanum Myeongjo', serif; font-size: 16px; color: var(--g-gold2); white-space: nowrap; }
.jg .jg-shop .jg-mtabs .home { color: var(--g-gold2); white-space: nowrap; }
.jg .jg-shop .jg-wd-shelf { grid-auto-rows: minmax(120px, 1fr); }
.jg .jg-shop .jg-wd-pic { max-height: 130px; padding: 8px 12px 0; }
.jg .jg-wd-plate small { display: block; margin-top: 1px; font-family: 'Noto Sans KR', sans-serif; font-size: 11px; font-weight: 400; color: var(--g-gold2); }
.jg .jg-wd-item.sel .jg-wd-plate small { color: #3a2810; }
.jg .jg-wd-item.dim .jg-wd-pic, .jg .jg-ml-dish.dim .jg-ml-plate { opacity: .45; }   /* 살 수 없는 물건(잠김 · 골드 모자람) */
.jg .jg-wd-worn.sp { background: rgba(92,66,26,.92); border-color: rgba(232,207,143,.6); color: #f0e2bd; }
.jg .jg-shop-kind { text-align: center; font-size: 12px; margin-bottom: 4px; }
.jg .jg-shop-buy { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.jg .jg-ml-who > button { font-family: 'Nanum Myeongjo', serif; font-size: 14px; color: #d9c7a0; cursor: pointer; }
.jg .jg-ml-who > button.on { border-color: var(--g-gold); color: var(--g-gold2); background: rgba(201,164,92,.12); }
.jg .jg-ml-who > button:disabled { cursor: default; opacity: .5; }
.jg.mobile .jg-shop-spark { font-size: 14px; padding: 0 8px; }
/* 외출 창 묶음(2026-11-30 유저 — 처음 하는 사람도 어디로 갈지 알게, 중요한 곳을 위로) */
.jg .jg-ohead { margin: 8px 0 4px; padding: 7px 12px; font-size: 13px; color: #d8cfbf; background: rgba(201,164,92,.08); border-left: 3px solid var(--g-gold); }
.jg .jg-ohead b { color: var(--g-gold2); font-size: 15px; }
.jg .jg-osec { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 14px 0 6px; padding-bottom: 4px; border-bottom: 1px solid rgba(201,164,92,.3); }
.jg .jg-osec b { font-family: 'Nanum Myeongjo', serif; font-size: 15px; color: var(--g-gold2); }
.jg .jg-osec span { font-size: 12px; color: var(--g-dim); word-break: keep-all; }
.jg .jg-hot { margin-left: 6px; padding: 1px 7px; font-family: 'Noto Sans KR', sans-serif; font-size: 11px; font-weight: 400; color: #1a120c; background: linear-gradient(#e8cf8f, #c9a45c); border-radius: 2px; vertical-align: 1px; }
.jg .jg-btn.row.hot { border-color: var(--g-gold); box-shadow: 0 0 10px rgba(255,176,96,.18); }
/* 노예 분류 표(2026-11-30 유저 — 아이템 등급처럼): 스토리 = 유니크(금), 일반 = 레어(푸른) */
.jg .jg-kind { font-size: .9em; font-weight: 700; }
.jg .jg-kind.unique { color: #e8c46a; }
.jg .jg-kind.rare { color: #8fb6e8; }
/* 집 중개소 — 펼친 책(2026-11-30 유저): 왼쪽 위 구역 탭 · 왼쪽 면 집 목록 · 오른쪽 면 방 · 혜택 */
.jg .jg-screen:has(> .jg-book) { display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.55); }
.jg .jg-book { position: relative; display: flex; width: min(1000px, 96%); height: min(620px, 90%); padding: 14px; border-radius: 6px;
  background: linear-gradient(#5a3a24, #3b2416); box-shadow: 0 18px 50px rgba(0,0,0,.7), inset 0 0 0 2px #6e4a2e; }
.jg .jg-book-page { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 22px 26px; color: #3a2a1e; font-family: 'Nanum Myeongjo', serif; overflow: auto;
  background: linear-gradient(90deg, #efe2c4, #f6ecd5 40%, #f3e7cc); }
.jg .jg-book-page.left { border-radius: 4px 0 0 4px; box-shadow: inset -18px 0 22px -14px rgba(70,40,15,.45); padding-top: 10px; }
.jg .jg-book-page.right { border-radius: 0 4px 4px 0; box-shadow: inset 18px 0 22px -14px rgba(70,40,15,.45); }
.jg .jg-book-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 12px; }
.jg .jg-book-tabs button { border: 1px solid #b89a6a; background: #e6d3ab; color: #6a4f33; font-family: inherit; font-size: 13px; padding: 4px 10px; border-radius: 3px 3px 0 0; cursor: pointer; }
.jg .jg-book-tabs button.on { background: #8a2f22; border-color: #8a2f22; color: #f6ecd5; font-weight: 700; }
.jg .jg-book-head { font-size: 22px; font-weight: 800; color: #5a2a18; border-bottom: 1px solid #c9ae80; padding-bottom: 6px; margin-bottom: 8px; display: flex; align-items: baseline; gap: 10px; }
.jg .jg-book-head small { font-size: 12px; font-weight: 400; color: #8a7055; font-family: 'Noto Sans KR', sans-serif; }
.jg .jg-book-items { display: flex; flex-direction: column; gap: 2px; overflow: auto; }
.jg .jg-book-item { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 8px; text-align: left; background: none; border: 0; border-bottom: 1px dashed #d4bc92;
  padding: 8px 6px; color: #3a2a1e; font-family: inherit; cursor: pointer; }
.jg .jg-book-item b { font-size: 16px; }
.jg .jg-book-item em { font-style: normal; font-size: 11px; color: #f6ecd5; background: #6b8a3a; padding: 1px 6px; border-radius: 8px; font-family: 'Noto Sans KR', sans-serif; }
.jg .jg-book-item small { grid-column: 1 / -1; font-size: 12px; color: #7d6347; font-family: 'Noto Sans KR', sans-serif; }
.jg .jg-book-item:hover { background: rgba(138,47,34,.07); }
.jg .jg-book-item.sel { background: rgba(138,47,34,.13); box-shadow: inset 3px 0 0 #8a2f22; }
.jg .jg-book-page.right h3 { margin: 0 0 6px; font-size: 24px; color: #5a2a18; }
.jg .jg-book-desc { margin: 0 0 10px; line-height: 1.7; font-size: 14px; }
.jg .jg-book-stats { display: flex; flex-wrap: wrap; gap: 6px 16px; font-family: 'Noto Sans KR', sans-serif; font-size: 13px; color: #6a4f33; margin-bottom: 12px; }
.jg .jg-book-stats b { color: #3a2a1e; font-size: 15px; }
.jg .jg-book-sec { font-size: 14px; font-weight: 800; color: #8a2f22; border-bottom: 1px solid #c9ae80; padding-bottom: 3px; margin-bottom: 6px; }
.jg .jg-book-rooms { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.jg .jg-book-rooms li { display: grid; grid-template-columns: 7em 1fr; gap: 8px; font-size: 13px; }
.jg .jg-book-rooms li b { color: #5a2a18; }
.jg .jg-book-rooms li span { font-family: 'Noto Sans KR', sans-serif; color: #5d4630; }
.jg .jg-book-none { margin: 2px 0 0; font-size: 12px; color: #8a7055; font-family: 'Noto Sans KR', sans-serif; }
.jg .jg-book-msg { margin-top: 8px; font-family: 'Noto Sans KR', sans-serif; font-size: 12px; }
.jg .jg-book-msg i { display: block; font-style: normal; color: #4f6e2a; }
.jg .jg-book-foot { margin-top: auto; padding-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.jg .jg-book-foot .jg-btn { width: 100%; }
.jg .jg-book-lock { text-align: center; font-family: 'Noto Sans KR', sans-serif; font-size: 13px; color: #8a7055; padding: 8px; border: 1px dashed #c9ae80; border-radius: 3px; }
.jg.mobile .jg-book { flex-direction: column; height: 94%; overflow: auto; }
.jg.mobile .jg-book-page { flex: 0 0 auto; overflow: visible; }
.jg.mobile .jg-book-page.left, .jg.mobile .jg-book-page.right { border-radius: 4px; box-shadow: none; }
.jg .jg-book-foot .jg-btn.home { background: #e6d3ab; border: 1px solid #b89a6a; color: #5a2a18; }
.jg .jg-book-foot .jg-btn.home:hover { background: #dcc59a; }
