/* ═══════════ 바깥 화면 디자인 — 달빛신당의 나전칠기 (2026-11-24) ═══════════
   재료: 검은 옻칠 · 자개 · 놋쇠 장석 · 한지 · 금줄. 그림 assets/ui/* (tools/gen_ui.py). style.css 뒤에 불러온다.
   수련(꿈속, body.dream)은 수묵 화풍이 우선이라 아래 일부만 따른다. */
:root {
  --lac: #17110F; --lac2: #241815; --brass: #D8B25C; --brass2: #8A6A2E; --pearl: #9FE0D8; --pearl2: #D9B8EC; --verm: #C6382B; --paper: #EFE3C8; --inkbr: #2B1B12;
  --disp: 'Nanum Brush Script', 'Nanum Myeongjo', serif; --serif: 'Hahmlet', 'Nanum Myeongjo', 'Galmuri11', serif; /* 2026-12-01: 나눔명조 → 함렛(굵은 글자가 또렷, OFL) */
}
.ic { display: inline-block; width: 1.65em; height: 1.65em; vertical-align: -.44em; background: center / contain no-repeat; image-rendering: auto; filter: drop-shadow(0 1px 1px #000A); font-style: normal; margin: 0 .1em; }
h2 .ic { width: 1.3em; height: 1.3em; vertical-align: -.22em; }

/* ── 바탕: 화면마다 그림 ── */
body { background-color: #0E0A0C; }
body[data-scr]::before { content: ''; position: fixed; inset: 0; z-index: -1; background: center / cover no-repeat; transition: opacity .4s; }
body[data-scr="title"]::before { background-image: url(assets/ui/bg_title.webp?v=1); }
body[data-scr="jobs"]::before { background-image: linear-gradient(#0A0810AA, #0A0810D0), url(assets/ui/bg_title.webp?v=1); }
body[data-scr="reward"]::before { background-image: linear-gradient(#0A060444, #0A060488), url(assets/ui/bg_reward.webp?v=1); }
body[data-scr="side"]::before, body[data-scr="dex"]::before { background-image: linear-gradient(#0A060433, #0A060499), url(assets/ui/bg_side.webp?v=1); }
body[data-scr="arms"]::before { background-image: linear-gradient(#0A060433, #0A060499), url(assets/ui/bg_arms.webp?v=1); }
body[data-scr="train"]::before { background-image: linear-gradient(#12121266, #121212AA), url(assets/ui/bg_train.webp?v=1); }

/* ── 단추 ── */
button { border-radius: 3px; }
body:not(.dream) button.big, body:not(.dream) .plate { border: 0; border-style: solid; border-color: transparent; border-width: 12px 34px; border-image: url(assets/ui/btn.webp?v=1) 24 76 24 76 fill / 12px 34px / 5px 3px stretch; background: none; color: #FFF1CF; text-shadow: 0 2px 0 #4A0C06, 0 0 8px #0007; box-shadow: none; padding: 1px 6px; min-height: 46px; image-rendering: auto; transition: filter .12s, transform .08s; }
body:not(.dream) button.big:hover:not(:disabled) { border-image-source: url(assets/ui/btn_h.webp?v=1); filter: brightness(1.12); transform: translateY(-2px); box-shadow: none; }
body:not(.dream) button.big:active:not(:disabled) { transform: translateY(2px) scale(.985); box-shadow: none; }
body:not(.dream) button.big.alt { border-image-source: url(assets/ui/btn2.webp?v=1); color: #E6FBF6; text-shadow: 0 2px 0 #000; }
body:not(.dream) button.ghost { background: linear-gradient(#2A1D18, #15100E); color: var(--paper); box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--brass2), inset 0 1px 0 #ffffff22, inset 0 0 12px #9FE0D81c; text-shadow: 0 1px 0 #000; }
body:not(.dream) button.ghost:hover:not(:disabled) { box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--brass), inset 0 1px 0 #ffffff33, inset 0 0 18px #9FE0D855, 0 0 14px #9FE0D844; color: #FFF6DE; }
body:not(.dream) button.chip { background: linear-gradient(#2E211B, #17110F); color: #E2D4B4; box-shadow: 0 0 0 1px #000, 0 0 0 2px #5A4526; border-radius: 12px; padding: 5px 13px; }
body:not(.dream) button.chip.on { background: linear-gradient(#F0D48A, #B88A34); color: #2B1708; box-shadow: 0 0 0 1px #2B1708, 0 0 0 2px #FFE9AE, 0 0 14px #E8C77A66; }
button:focus-visible { outline: 2px solid var(--pearl); outline-offset: 3px; }
.i-btn { background: radial-gradient(circle at 35% 30%, #E9FFFB, #7FC2BA 60%, #3A7A76) !important; box-shadow: 0 0 0 2px #17110F, 0 0 0 3px var(--brass2) !important; color: #10302E !important; }

/* 놋쇠 동그라미 단추 (🏠 등) */
.reward-hub .tr-head > button, .train-screen .tr-head > button.ghost, .jobs-home, .dex-head > button { border-radius: 50%; width: 52px; height: 52px; padding: 0; display: inline-grid; place-items: center; background: url(assets/ui/medal.webp?v=1) center / 100% 100% no-repeat !important; box-shadow: none !important; font-size: 17px; }
.dex-head > button:not(#sound-toggle) { font-size: 0; position: relative; } .dex-head > button:not(#sound-toggle)::before { content: ''; position: absolute; inset: 0; margin: auto; width: 24px; height: 24px; background: var(--home-svg) center / contain no-repeat; }

/* ── 판 (창) ── */
body:is(.dream, :not(.dream)) .modal .panel { background: var(--lac); box-shadow: none; border: 30px solid transparent; border-image: url(assets/ui/panel.webp?v=1) 98 fill / 36px / 5px round; padding: 8px 10px; border-radius: 0; color: var(--paper); }
body:is(.dream, :not(.dream)) .modal { background: #05030399; }
.modal .panel h2, .modal .panel h3 { font-family: var(--disp); font-size: 1.9em; color: #FFE9B8; font-weight: 400; letter-spacing: .02em; }

/* ── 머리 · 탭 ── */
.tr-head, .dex-head { padding: 4px 2px 6px; }
.tr-head h2, .dex-head h2, .hone-screen h2, .jobs-screen > h2 { font: 400 clamp(34px, 4.6vw, 52px)/1 var(--disp) !important; color: #FFE9B8; text-shadow: 0 3px 0 #1A0C06, 0 0 22px #E8A04A66; }
.tr-bonus, .tr-lv { background: linear-gradient(#2A1D18EE, #120D0BEE); box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--brass2); padding: 6px 14px; border-radius: 16px; color: #FFE9B8; }
body:not(.dream) .shop-tabs { border-bottom: 0; gap: 8px; margin: 6px 0 14px; }
body:not(.dream) .shop-tab { min-height: 50px; background: none; border: solid transparent; border-width: 10px 26px; border-image: url(assets/ui/tab.webp?v=1) 24 64 24 64 fill / 10px 26px / 5px 2px stretch; box-shadow: none; color: #CDBB98; text-shadow: 0 1px 0 #000; padding: 0; font-size: 17px; border-radius: 0; }
body:not(.dream) .shop-tab:hover { filter: brightness(1.25); }
body:not(.dream) .shop-tab.on { border-image-source: url(assets/ui/tab_on.webp?v=1); color: #FFF8E2; text-shadow: 0 2px 0 #4A1E04, 0 0 8px #3A1404, 0 0 3px #3A1404; box-shadow: none; background: none; font-weight: 700; }
.tab-dot { width: 11px !important; height: 11px !important; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FFB0A0, #D8281C) !important; box-shadow: 0 0 0 2px #2A0A06, 0 0 10px #FF4A30; }

/* ── 제목 ── */
body[data-scr="title"] #app { max-width: none; padding: 0; }
.title-screen { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 10px; padding: 0 0 3vh !important; }
.title-screen .moon { display: none; }
.title-logo { position: absolute; left: 50%; top: 5vh; width: min(620px, 74vw); transform: translateX(-50%); filter: drop-shadow(0 8px 18px #000A); animation: logo-in .9s cubic-bezier(.2,1.1,.3,1) both; }
@keyframes logo-in { from { opacity: 0; transform: translateX(-50%) translateY(-18px) scale(.96); } }
.title-screen h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.title-screen .sub { position: absolute; left: 0; right: 0; top: calc(5vh + min(310px, 36vw)); margin: 0; color: #E6DDF2; text-shadow: 0 1px 4px #000; }
.title-sprites { margin: 0 0 -2px; gap: clamp(8px, 3vw, 46px); align-items: flex-end; flex-wrap: nowrap; max-width: 100vw; }
.title-sprites canvas, .title-sprites canvas:first-child { width: clamp(52px, 8.6vw, 118px); filter: drop-shadow(0 8px 8px #000B); }
.title-menu { display: grid; grid-template-columns: repeat(3, minmax(170px, 260px)); gap: 14px; padding: 0 16px; }
.title-menu .mode-btn { min-width: 0; min-height: 72px !important; font: 400 clamp(40px, 4.6vw, 56px)/1 var(--disp) !important; letter-spacing: .08em; }
body:not(.dream) .title-menu .mode-btn.fun, body:not(.dream) .title-menu .mode-btn.side { background: none; box-shadow: none; border-image-source: url(assets/ui/btn2.webp?v=1); color: #E6FBF6; text-shadow: 0 2px 0 #000; }
body:not(.dream) .title-menu .mode-btn.fun:hover, body:not(.dream) .title-menu .mode-btn.side:hover { border-image-source: url(assets/ui/btn2_h.webp?v=1); }
.title-menu small { font: 13px 'Galmuri11', sans-serif; opacity: .9; display: block; margin-top: 2px; }
.title-sub { display: flex; gap: 22px; justify-content: center; align-items: flex-start; }
.ring-btn { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; background: none !important; box-shadow: none !important; color: #F4E7C8 !important; text-shadow: 0 1px 3px #000; padding: 0; font-size: 14px; }
.ring-btn > span { width: 68px; height: 68px; display: grid; place-items: center; background: url(assets/ui/medal.webp?v=1) center / 100% 100% no-repeat; } .ring-btn > span .ic { width: 34px; height: 34px; }
.ring-btn:hover > span { filter: brightness(1.2) drop-shadow(0 0 10px #E8C77A); } .ring-btn small { color: #D8C8A0; font-size: 12px; }
.ring-btn .rw-badge { right: -2px; top: -2px; }
.title-top { position: absolute; left: 18px; top: 14px; display: flex; gap: 10px; } .title-top .merit { margin: 0; background: #0D0908CC; box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--brass2); padding: 7px 14px; border-radius: 18px; color: #FFE9B8; }

/* ── 출석: 금줄에 매단 소원지 ── */
.reward-hub { max-width: 1060px; }
.att { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.att-rope { position: relative; display: grid; grid-template-columns: repeat(var(--n, 10), 1fr); width: 100%; padding: 40px 1% 0; }
.att-rope::before { content: ''; position: absolute; left: -2%; right: -2%; top: 0; height: 52px; background: url(assets/ui/rope.webp?v=2) center / 100% 100% no-repeat; pointer-events: none; z-index: 2; filter: drop-shadow(0 4px 3px #0008); }
.tagc { position: relative; justify-self: center; width: min(82px, 8.6vw); height: min(108px, 11.4vw); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 14px 4px 8px; background: url(assets/ui/tag.webp?v=2) center / 100% 100% no-repeat; color: var(--inkbr); font-size: 15px; transform-origin: 50% -22px; transform: rotate(var(--r, 0deg)); filter: drop-shadow(0 4px 4px #000A); box-shadow: none; line-height: 1.1; }
.tagc::before { content: ''; position: absolute; left: calc(50% - 2px); top: -24px; width: 4px; height: 30px; background: repeating-linear-gradient(160deg, #D8B878 0 3px, #8A6A34 3px 5px); border-radius: 2px; }
.tagc.gold { background-image: url(assets/ui/tag_gold.webp?v=2); }
.tagc b { font: 400 19px/1 var(--disp); color: #8A4A1C; position: absolute; top: 9%; left: 13%; }
.tagc em { font-style: normal; font-weight: 800; } .tagc button, button.tagc { border: 0; } .tagc span { display: flex; flex-direction: column; align-items: center; font-weight: 700; } .tagc .ic { width: 26px; height: 26px; }
.tagc.gold .ic { width: 30px; height: 30px; }
.tagc.on::after { content: ''; position: absolute; left: 50%; top: 58%; width: 78%; aspect-ratio: 1; transform: translate(-50%, -50%) rotate(var(--sr, -10deg)); background: url(assets/ui/seal.webp?v=1) center / contain no-repeat; mix-blend-mode: multiply; opacity: .92; }
.tagc.on span { opacity: .3; }
.tagc.today { animation: tag-sway 1.7s ease-in-out infinite; filter: drop-shadow(0 0 12px #FFD54A) drop-shadow(0 4px 4px #000A); cursor: pointer; }
@keyframes tag-sway { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
.tagc.stamping::after { content: ''; position: absolute; left: 50%; top: 58%; width: 78%; aspect-ratio: 1; background: url(assets/ui/seal.webp?v=1) center / contain no-repeat; mix-blend-mode: multiply; animation: stamp .5s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes stamp { 0% { transform: translate(-50%, -50%) scale(3.2) rotate(18deg); opacity: 0; } 55% { transform: translate(-50%, -50%) scale(.86) rotate(-10deg); opacity: 1; } 100% { transform: translate(-50%, -50%) scale(1) rotate(-10deg); opacity: .92; } }
.att-btn { margin: 12px auto 0; font-size: 20px !important; } .att-done { color: #BFF0C8; background: #0D0908B0; padding: 6px 18px; border-radius: 16px; margin-top: 10px; }

/* ── 임무: 옻칠 현판 ── */
.qs { gap: 10px; }
.qs-row { grid-template-columns: 58px minmax(120px, 1.1fr) minmax(50px, 2fr) 62px auto minmax(132px, max-content); /* 2026-11-29: 받기 단추 글이 길면(일본어 受け取る) 바를 줄여서라도 단추 안에 */ padding: 10px 18px 10px 12px; background: linear-gradient(#2B1E18F2, #15100EF2); box-shadow: 0 0 0 1px #000, 0 0 0 2px #6A5128, inset 0 1px 0 #ffffff1f, inset 0 0 26px #9FE0D814; border-radius: 4px; }
.qs-row.ok { box-shadow: 0 0 0 1px #000, 0 0 0 2px #F0D48A, 0 0 22px #E8C77A66, inset 0 0 26px #E8C77A22; }
.qs-ic { width: 52px; height: 52px; display: grid; place-items: center; background: url(assets/ui/medal.webp?v=1) center / 100% 100% no-repeat; } .qs-ic .ic { width: 26px; height: 26px; margin: 0; }
.qs-row > b { font: 700 18px/1.2 var(--serif); color: #FFF1CF; }
.qs-bar { height: 14px; background: #0A0706; box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--brass2); border-radius: 8px; overflow: hidden; } .qs-bar i { background: linear-gradient(90deg, #1F8A7A, #9FE0D8 60%, #FFF6C8); box-shadow: 0 0 10px #9FE0D8; border-radius: 8px; }
.qs-left { color: #E2D4B4; text-shadow: 0 1px 3px #000; }
.qs-claim.ghost { opacity: .55; } .qs-claim .ic { width: 26px; height: 26px; }

/* ── 보물 ── */
.sg-feat { background: linear-gradient(120deg, #2E2150F0, #15100EF0) !important; box-shadow: 0 0 0 1px #000, 0 0 0 2px #B89AE0, inset 0 0 30px #B89AE033 !important; border-radius: 4px; }
.sg-feat.t5 { background: radial-gradient(circle at 16% 50%, #7A4A10, #241508 62%) !important; box-shadow: 0 0 0 1px #000, 0 0 0 3px #F0D48A, 0 0 26px #FFD54A55, inset 0 0 36px #FFD54A22 !important; }
.sg-feat b { font: 400 30px/1.1 var(--disp); color: #FFE9B8; }

/* ── 카드 (도감 · 무기고 · 수련장) ── */
body:not(.dream) .dex-card { background: linear-gradient(#2B1F1AF2, #14100EF2); box-shadow: 0 0 0 1px #000, 0 0 0 2px #5A4526, inset 0 1px 0 #ffffff1c; border-radius: 4px; transition: transform .12s, box-shadow .12s; }
body:not(.dream) .dex-card:hover:not(:disabled) { transform: translateY(-4px); box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--brass), 0 0 22px #9FE0D855, inset 0 0 18px #9FE0D822; }
body:not(.dream) .dex-card b { font: 700 14px/1.2 var(--serif); color: #FFF1CF; } body:not(.dream) .dex-card small { color: #CDBB98; }
body:not(.dream) .wp-card.t2 { box-shadow: 0 0 0 1px #000, 0 0 0 2px #7A5AB0; } body:not(.dream) .wp-card.t3 { box-shadow: 0 0 0 1px #000, 0 0 0 2px #C05A4A; } body:not(.dream) .wp-card.t4 { box-shadow: 0 0 0 1px #000, 0 0 0 2px #5FAE6A; } body:not(.dream) .wp-card.t5 { background: radial-gradient(circle at 50% 30%, #5A3A0C, #1A1008 75%); box-shadow: 0 0 0 1px #000, 0 0 0 3px #F0D48A, 0 0 18px #FFD54A44; }
.wp-card .wp-icon { filter: drop-shadow(0 4px 6px #000); }
.dex-count { font: 400 34px/1 var(--disp) !important; color: #FFE9B8 !important; }

/* ── 상담사 고르기 ── */
.jobs-screen { padding-top: 8px; } .jobs { gap: 16px; }
body:not(.dream) .job { background: linear-gradient(#241815F5, #110C0AF5); box-shadow: 0 0 0 1px #000, 0 0 0 3px var(--jc), 0 0 0 5px #17110F, 0 0 0 6px var(--brass2), 0 14px 26px #0009; border-radius: 4px; transition: transform .16s; }
body:not(.dream) .job:not(.locked):hover { transform: translateY(-8px); box-shadow: 0 0 0 1px #000, 0 0 0 3px var(--jc), 0 0 0 5px #17110F, 0 0 0 6px var(--brass), 0 0 34px var(--jc); }
.job h3 { font: 400 32px/1 var(--disp) !important; color: #FFE9B8; } .job-lv { font: 13px 'Galmuri11', sans-serif; vertical-align: middle; } .job h3 small { font: 13px 'Galmuri11', sans-serif; color: #CDBB98; margin-top: 4px; }
.job-tags span { border-radius: 10px; }

/* ── 외전 ── */
.side-card { box-shadow: 0 0 0 1px #000, 0 0 0 3px var(--brass2), 0 12px 28px #000A !important; border-radius: 4px; min-height: 270px; transition: transform .16s; } .side-card:hover:not(:disabled) { transform: translateY(-5px); box-shadow: 0 0 0 1px #000, 0 0 0 3px var(--brass), 0 0 30px #E8A04A66 !important; }
.side-card b { font: 400 44px/1 var(--disp) !important; color: #FFE9B8; } .side-card .side-ic .ic { width: 34px; height: 34px; }

/* ── 동료 · 힘 기르기 · 획득 ── */
.pt-card { background: linear-gradient(#2B1F1A, #14100E); box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--jc, #5A4526); border-radius: 4px; } .pt-card b { font: 400 26px/1 var(--disp); color: #FFE9B8; } .pt-card b small { font: 13px 'Galmuri11', sans-serif; }
.hone-card .hc-ic .ic { width: 56px; height: 56px; }
.map-tools button, .loot-btns button.ghost { border-radius: 4px; }
body:not(.dream) .loot-card { background: radial-gradient(circle at 50% 24%, #3A2614, #120C0A 72%); border: 26px solid transparent; border-image: url(assets/ui/panel.webp?v=1) 98 fill / 32px / 5px round; box-shadow: none; padding: 6px 12px 10px; } .loot-name { font-family: var(--disp) !important; font-size: 40px !important; font-weight: 400; }
.topbar { background: linear-gradient(#241815F2, #110C0AF2); box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--brass2), inset 0 1px 0 #ffffff1c; border-radius: 4px; }

/* ── 좁은 화면 ── */
@media (max-width: 760px) { .qs-row { grid-template-columns: 44px 1fr auto; row-gap: 4px; } .qs-row .qs-bar { grid-column: 1 / -1; } .title-menu { grid-template-columns: repeat(3, 1fr); gap: 6px; } }
@media (max-height: 520px) {
  body:not(.dream) button.big { min-height: 34px; border-width: 7px 22px; border-image-width: 7px 22px; } body:not(.dream) .shop-tab { min-height: 36px; border-width: 6px 18px; border-image-width: 6px 18px; font-size: 14px; }
  .title-logo { width: min(360px, 44vw); top: 2vh; } .title-screen .sub { display: none; } .title-sprites canvas, .title-sprites canvas:first-child { width: 54px; } .title-menu .mode-btn { min-height: 46px !important; font-size: 36px !important; } .ring-btn > span { width: 46px; height: 46px; } .ring-btn > span .ic { width: 24px; height: 24px; } .title-screen { gap: 5px; padding-bottom: 6px !important; }
  .tagc { width: 50px; height: 50px; padding: 6px 2px 2px; font-size: 10px; } .tagc .ic, .tagc.gold .ic { width: 15px; height: 15px; } .reward-hub { gap: 2px; } .att-btn { margin-top: 6px; font-size: 16px !important; min-height: 30px !important; } .tagc .ic, .tagc.gold .ic { width: 17px; height: 17px; } .tagc b { font-size: 12px; } .att-rope { padding-top: 19px; } .att-rope::before { height: 28px; } .tagc::before { top: -14px; height: 18px; }
  .qs-row { padding: 4px 10px; } .qs-ic { width: 34px; height: 34px; } .tr-head h2, .dex-head h2, .jobs-screen > h2 { font-size: 28px !important; } .reward-hub .tr-head > button, .train-screen .tr-head > button.ghost, .jobs-home, .dex-head > button { width: 40px; height: 40px; }
  .side-card { min-height: 150px; } .side-card b { font-size: 28px !important; } .job h3 { font-size: 22px !important; }
}
@media (prefers-reduced-motion: reduce) { .tagc.today, .title-logo, .tagc.stamping::after { animation: none; } }

/* ── 다듬기 ── */
body:not(.dream) .job > button { border: solid transparent; border-width: 12px 30px; border-image: url(assets/ui/btn.webp?v=1) 24 76 24 76 fill / 12px 30px / 4px 2px stretch; background: none; box-shadow: none; color: #FFF1CF; text-shadow: 0 2px 0 #4A0C06; font: 400 28px/1 var(--disp); padding: 0; min-height: 50px; }
body:not(.dream) .job > button:hover:not(:disabled) { border-image-source: url(assets/ui/btn_h.webp?v=1); } body:not(.dream) .job.locked > button { border-image-source: url(assets/ui/btn2.webp?v=1); font: 16px 'Galmuri11', sans-serif; opacity: .85; }
.job .job-tags { flex: 1; align-content: flex-start; align-items: flex-start; }
.job-tags span { background: #0D0908; box-shadow: 0 0 0 1px #5A4526; }
#sound-toggle, #speed-toggle, #dev-toggle { background: linear-gradient(#2A1D18, #15100E) !important; color: var(--paper) !important; box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--brass2), inset 0 1px 0 #ffffff22 !important; border-radius: 4px; }
.armory .wp-card.locked .wp-icon { filter: brightness(0) drop-shadow(0 0 1px #E8C77A) drop-shadow(0 0 5px #C9A24B66); opacity: .8; }
.side-card small { max-width: 56%; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; line-height: 1.5; } .side-foes canvas { height: 108px; }
.dex-card.unseen .dex-q, .dex-q { color: #8A6A34 !important; font-family: var(--disp); }
/* 수련장 · 힘 기르기: 한지와 먹 */
body.dream[data-scr="train"]::before { background-image: linear-gradient(#F4EFE400, #F4EFE422), url(assets/ui/bg_train.webp?v=1); }
body.dream[data-scr="train"] { color: #2A241C; background: #E9E3D6; }
body.dream[data-scr="train"] .tr-head h2, body.dream[data-scr="train"] .hone-screen h2 { color: #17130E !important; text-shadow: 0 0 12px #FFF8; }
body.dream[data-scr="train"] .tr-bonus, body.dream[data-scr="train"] .tr-lv, body.dream[data-scr="train"] .hone-goal { background: #F7F1E4E6; color: #2A241C; box-shadow: 0 0 0 2px #2A241C; border-radius: 16px; padding: 6px 14px; }
body.dream[data-scr="train"] .shop-tabs { border-bottom: 3px solid #2A241C; padding: 4px 3px 0; } /* 탭 테두리(그림자 선)가 양 끝에서 잘리지 않게 */
body.dream[data-scr="train"] .shop-tab { background: #F7F1E4CC; color: #3A332A; box-shadow: 0 0 0 2px #2A241C; text-shadow: none; min-height: 48px; } body.dream[data-scr="train"] .shop-tab.on { background: #1E1A15; color: #FFF8E8; box-shadow: 0 0 0 2px #1E1A15, 0 -4px 0 0 #B0262E; }
body.dream[data-scr="train"] :is(.dex-card, .hone-card, .tr-job) { background: linear-gradient(#FBF6EAF5, #EFE6D2F5); color: #2A241C; box-shadow: 0 0 0 2px #2A241C, 0 6px 14px #0004; border-radius: 3px; transition: transform .12s; } body.dream[data-scr="train"] :is(.dex-card, .hone-card):hover:not(:disabled) { transform: translateY(-4px); box-shadow: 0 0 0 2px #B0262E, 0 10px 20px #0005; }
body.dream[data-scr="train"] :is(.dex-card, .hone-card) b { color: #1E1A15; font: 700 15px/1.2 var(--serif); } body.dream[data-scr="train"] .dex-card small { color: #7A2A22; } body.dream[data-scr="train"] .hone-card small { color: #7A2A22; font-weight: 700; } body.dream[data-scr="train"] .hone-card b { font-size: 20px; }
body.dream[data-scr="train"] .tr-job.on { box-shadow: 0 0 0 3px #B0262E, 0 0 14px #B0262E66; } body.dream[data-scr="train"] .chip { background: #F7F1E4; color: #2A241C; box-shadow: 0 0 0 2px #2A241C; border-radius: 12px; } body.dream[data-scr="train"] .chip.on { background: #1E1A15; color: #FFF8E8; } body.dream[data-scr="train"] .dex-no { filter: none; } body.dream[data-scr="train"] .note, body.dream[data-scr="train"] .tr-spin { color: #2A241C; }
body.dream[data-scr="train"] .topbar { color: var(--paper); }

/* ── 게임 안쪽 (지도 · 장터 · 족자 대결): 남색을 옻칠 빛으로 ── */
body:not(.dream):not([data-scr]) { background: radial-gradient(ellipse at 50% -10%, #43303A 0%, #1C1416 46%, #100B0C 100%) fixed, #100B0C; }
body:not(.dream) .stat-pill, body:not(.dream) .loot-stats .ls, body:not(.dream) .ob-sum > span, body:not(.dream) .bi-chip { background: #0E0908E0; box-shadow: 0 0 0 1px #000, 0 0 0 2px #6A5128; border-radius: 4px; }
body:not(.dream) .loot-stats .ls.up { box-shadow: 0 0 0 1px #000, 0 0 0 2px #5FAE6A; } body:not(.dream) .loot-stats .ls.down { box-shadow: 0 0 0 1px #000, 0 0 0 2px #C8503C; } body:not(.dream) .bi-chip.weak { box-shadow: 0 0 0 1px #000, 0 0 0 2px #7FE0A0; }
body:not(.dream) .topbar .node { background: #0E0908; box-shadow: 0 0 0 1px #000, 0 0 0 2px #5A4526; border-radius: 3px; color: #8A7A5A; } body:not(.dream) .topbar .node.done { background: #3A2614; color: #FFE9B8; } body:not(.dream) .topbar .node.now { background: linear-gradient(#FFE9AE, #C89A3A); color: #2B1708; box-shadow: 0 0 0 1px #2B1708, 0 0 12px #E8C77A; }
body:not(.dream) .map-screen > h2, body:not(.dream) .reward-screen > h2, body:not(.dream) .wonguk-screen > h2, body:not(.dream) .act-clear h1 { font: 400 clamp(32px, 4vw, 48px)/1.1 var(--disp) !important; color: #FFE9B8; text-shadow: 0 3px 0 #1A0C06; }
body:not(.dream) .map-preview { box-shadow: 0 0 0 2px #17110F, 0 0 0 4px var(--brass), 0 0 0 6px #17110F, 0 14px 30px #000A !important; border-radius: 3px; }
body:not(.dream) .battle .stage { box-shadow: 0 0 0 2px #17110F, 0 0 0 4px var(--brass2), 0 10px 26px #0009; }
body:not(.dream) .battle .line { background: linear-gradient(#2A1D18, #15100E); box-shadow: 0 0 0 1px #000, 0 0 0 2px #6A5128, inset 0 0 34px #9FE0D812; border-radius: 4px; }
body:not(.dream) .battle .slot { background: #0B0706AA; border-radius: 3px; box-shadow: inset 0 0 0 1px #6A512880; } body:not(.dream) .battle .slot-empty { color: #6A5128; font: 400 30px/1 var(--disp); }
body:not(.dream) .rules > span { background: #0E0908; border-radius: 12px; }
body:not(.dream) .run-hud { background: linear-gradient(#241815F2, #110C0AF2); box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--brass2); border-radius: 4px; }
body:not(.dream) .run-view { box-shadow: 0 0 0 2px #17110F, 0 0 0 4px var(--brass2); }
body:not(.dream) .special { border-radius: 4px; box-shadow: 0 0 0 1px #000, 0 0 0 2px #6A5128; }
body:not(.dream) .perk, body:not(.dream) .node-card { background: linear-gradient(#2B1F1AF2, #14100EF2); color: var(--paper); box-shadow: 0 0 0 1px #000, 0 0 0 2px #6A5128; border-radius: 4px; } body:not(.dream) .perk:hover, body:not(.dream) .node-card:hover { box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--brass), 0 0 20px #9FE0D844; }
body:not(.dream) .perk b { font: 700 17px/1.2 var(--serif); color: #FFF1CF; } body:not(.dream) .perk small { color: #CDBB98; }
body:not(.dream) .job-pixel, body:not(.dream) .tr-job { background: linear-gradient(#2B1F1A, #14100E); box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--brass2); border-radius: 3px; } body:not(.dream) .tr-job.on { box-shadow: 0 0 0 1px #000, 0 0 0 3px #F0D48A, 0 0 16px #E8C77A66; }
body:not(.dream) .ob-w, body:not(.dream) .ob-detail, body:not(.dream) .ob-orb { background: #0E0908; box-shadow: 0 0 0 1px #000, 0 0 0 2px #5A4526; border-radius: 4px; } body:not(.dream) .ob-w.sel { box-shadow: 0 0 0 1px #000, 0 0 0 3px #F0D48A; }
.map-screen > div > p, .map-screen p { margin: 10px 0; } .map-screen .req-chips { margin-right: 10px; }
body.dream[data-scr="train"] .tr-head h2, body.dream[data-scr="train"] .hone-screen h2 { background: #F7F1E4E0; padding: 4px 18px 6px; border-radius: 22px; box-shadow: 0 0 0 2px #2A241C; }

/* 족자 대결 무대의 앞뒤: 오행 안내도는 맨 뒤, 상담사 · 동료 · 적은 늘 그 앞에서 움직이고 친다 */
.battle .stage > .center-info { z-index: 1; } .battle .stage > .allies { z-index: 2; } .battle .stage > .fighter { z-index: 3; }
/* 꿈속(먹빛 종이) 화면은 몸통 글자가 짙은 먹색이라, 검은 바탕의 창까지 먹색으로 물들어 안 보였다 → 창은 늘 밝은 글자 */
body.dream .modal, body.dream .loot, body.dream .act-intro, body.dream .boss-intro, body.dream .run-finish, body.dream .wp-detail { color: #F3EBDD; }
body.dream[data-scr="train"] .modal .note, body.dream[data-scr="train"] .modal .pt-perk { color: #D8CDB4; }

/* ▶ 재생 세모 (js/icons.js): 글 한가운데에 맞춘다 */
.ic-tri { display: inline-block; width: .66em; height: .76em; margin: 0 .12em; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); vertical-align: middle; position: relative; top: -.02em; font-style: normal; }

/* ── 운명의 여덟 글자 (사주 화면): 별하늘 아래 윤도 위에 목패 여덟 장, 그 앞에 다섯 기운의 촛불 ── */
body[data-scr="saju"]::before { background-image: radial-gradient(ellipse at 50% 40%, #0000 40%, #05040A99 100%), url(assets/ui/bg_saju.webp?v=1); }
.saju-screen { max-width: 980px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.saju-screen > h2 { font: 400 clamp(30px, 5.4vh, 52px)/1.05 var(--disp); color: #FFE9B8; text-shadow: 0 3px 0 #1A0C06, 0 0 26px #F2C14E55; margin: 4px 0 0; }
.sj-board { position: relative; padding: 2vh 0 1vh; }
.sj-ring { position: absolute; left: 50%; top: 50%; width: min(84vh, 720px); height: min(84vh, 720px); margin: calc(min(84vh, 720px) / -2) 0 0 calc(min(84vh, 720px) / -2); opacity: .5; animation: sjRing 160s linear infinite; pointer-events: none; -webkit-mask: radial-gradient(circle, #000 46%, transparent 71%); mask: radial-gradient(circle, #000 46%, transparent 71%); }
@keyframes sjRing { to { transform: rotate(360deg); } }
.sj-pillars { --t: clamp(58px, 12.4vh, 104px); position: relative; display: flex; gap: calc(var(--t) * .2); justify-content: center; }
.sj-pillar { position: relative; display: flex; flex-direction: column; gap: calc(var(--t) * .07); align-items: center; }
.sj-pillar::before { content: ''; position: absolute; left: 12%; right: 12%; top: 14px; bottom: calc(var(--t) * .5); border: solid #C9A24B; border-width: 0 2px; opacity: .55; filter: drop-shadow(0 0 3px #000); } /* 목패를 꿴 금실 */
.sj-pillar small { position: relative; font: 700 14px/1 var(--serif); color: #2B1708; background: linear-gradient(#F3DC9A, #B98A34); box-shadow: 0 0 0 1px #2B1708, 0 0 0 2px #E9C877, 0 3px 6px #000A; padding: 5px 13px; border-radius: 3px 3px 10px 10px; z-index: 1; }
.sj-pillar.me small { background: linear-gradient(#FFB0A0, #B0262E); color: #FFF3DC; box-shadow: 0 0 0 1px #2B0A08, 0 0 0 2px #FFD54A, 0 0 14px #FF6A4A; }
.sj-pillar .tile { position: relative; width: var(--t); height: var(--t); display: grid; place-items: center; background: center / 100% 100% no-repeat; font: 800 calc(var(--t) * .56)/1 'Nanum Myeongjo', 'Batang', serif; filter: drop-shadow(0 6px 8px #000B); }
.sj-pillar .tile .ch { position: relative; top: -.02em; }
.tile[data-el="wood"] { background-image: url(assets/ui/saju_tile_wood.webp?v=1) !important; color: #EAFFDF; text-shadow: 0 2px 0 #0C2A16, 0 0 14px #7CFF9A88; }
.tile[data-el="fire"] { background-image: url(assets/ui/saju_tile_fire.webp?v=1) !important; color: #FFF0D0; text-shadow: 0 2px 0 #4A0808, 0 0 14px #FF9A4A99; }
.tile[data-el="earth"] { background-image: url(assets/ui/saju_tile_earth.webp?v=1) !important; color: #3A2206; text-shadow: 0 1px 0 #FFE9B0AA, 0 0 10px #FFE08A66; }
.tile[data-el="metal"] { background-image: url(assets/ui/saju_tile_metal.webp?v=1) !important; color: #23262E; text-shadow: 0 1px 0 #FFFFFFCC; }
.tile[data-el="water"] { background-image: url(assets/ui/saju_tile_water.webp?v=1) !important; color: #E6F3FF; text-shadow: 0 2px 0 #06122E, 0 0 14px #6AB8FF99; }
.sj-pillar .el-icon.corner { position: absolute; right: 2%; bottom: 2%; width: 24%; height: 24%; background: #100C0ACC; border-radius: 50%; padding: 3px; box-shadow: 0 0 0 1px #E9C877, 0 2px 4px #000; }
.sj-pillar .tile.spinning .ch { animation: reel .07s steps(2) infinite; filter: blur(1px); }
.sj-pillar .tile.spinning { filter: drop-shadow(0 6px 8px #000B) brightness(.8); }
.sj-pillar .tile.landed { animation: sjLand .42s cubic-bezier(.2,1.5,.4,1); }
.sj-pillar .tile.landed::after { content: ''; position: absolute; inset: -14%; border-radius: 14px; box-shadow: 0 0 0 3px #FFF2C0, 0 0 30px 8px #FFD54A; animation: sjFlash .5s ease-out both; pointer-events: none; }
.sj-pillar.me .tile:nth-of-type(1)::before { content: '나'; position: absolute; left: -6%; top: -8%; z-index: 2; font: 700 12px/18px 'Galmuri11', sans-serif; width: 20px; height: 20px; border-radius: 50%; background: #B0262E; color: #FFF3DC; text-shadow: none; box-shadow: 0 0 0 1px #FFD54A; }
@keyframes sjLand { 0% { transform: translateY(-26px) scale(1.25); filter: brightness(2.4); } 100% { transform: none; filter: drop-shadow(0 6px 8px #000B); } }
@keyframes sjFlash { from { opacity: 1; transform: scale(.8); } to { opacity: 0; transform: scale(1.12); } }
/* 촛불 제단 */
.sj-altar { position: relative; margin-top: 1.2vh; width: min(94vw, 760px); }
.sj-legend { display: flex; justify-content: center; gap: 22px; color: #D9CDB4; } .sj-legend > span { display: inline-flex; align-items: center; gap: 6px; } .sj-legend b { color: #FFE08A; } .sj-legend .y b { color: #FF9A8A; }
.sj-candles { --c: clamp(64px, 12.6vh, 108px); display: flex; justify-content: space-around; padding: calc(var(--c) * .62) 18px 8px; border-radius: 6px; background: linear-gradient(transparent 0 62%, #1C110ED9 62%, #0D0807E6); box-shadow: inset 0 -3px 0 #8A6A2E; border-image: none; }
.sj-el { width: 19%; display: flex; flex-direction: column; align-items: center; }
.sj-fire { position: relative; height: var(--c); }
.sj-candle { height: 100%; display: block; filter: drop-shadow(0 5px 6px #000C); }
.sj-flame { position: absolute; left: 50%; bottom: 90%; height: calc(var(--c) * (.26 + .115 * min(var(--n), 5))); transform-origin: 50% 100%; translate: -50% 0; scale: 0; opacity: 0; transition: scale .45s cubic-bezier(.2,1.8,.4,1), opacity .2s; animation: sjFlick 1.1s ease-in-out infinite alternate; filter: drop-shadow(0 0 14px var(--gl)) drop-shadow(0 0 4px #FFF8); }
.sj-el.on .sj-flame { scale: 1; opacity: 1; } .sj-el:nth-child(2) .sj-flame { animation-duration: .8s; } .sj-el:nth-child(3) .sj-flame { animation-duration: 1.3s; } .sj-el:nth-child(4) .sj-flame { animation-duration: .95s; }
@keyframes sjFlick { 0% { transform: rotate(-2.5deg) scale(1, .96); } 40% { transform: rotate(1.5deg) scale(.95, 1.05); } 100% { transform: rotate(3deg) scale(1.03, .98); } }
.sj-el.wood { --gl: #5AE08A; } .sj-el.fire { --gl: #FF6A3A; } .sj-el.earth { --gl: #FFC84A; } .sj-el.metal { --gl: #E6F0FF; } .sj-el.water { --gl: #5AB0FF; }
.sj-el.yong .sj-candle { filter: brightness(.55) saturate(.5) drop-shadow(0 5px 6px #000C); }
.sj-halo { position: absolute; left: 50%; bottom: 62%; width: calc(var(--c) * .86); aspect-ratio: 1; translate: -50% 0; border-radius: 50%; opacity: 0; transition: opacity .5s; border: 2px dashed var(--gl); box-shadow: 0 0 18px var(--gl), inset 0 0 18px var(--gl); animation: sjRing 9s linear infinite; }
.sj-el.yong.on .sj-halo { opacity: .9; }
.sj-tag { margin-top: 6px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; background: #0D0807E0; border-radius: 14px; box-shadow: 0 0 0 1px #000, 0 0 0 2px #5A4526; font: 700 15px/1.2 'Galmuri11', sans-serif; color: #FFE9B8; opacity: 0; translate: 0 8px; transition: opacity .3s, translate .3s; }
.sj-el.on .sj-tag { opacity: 1; translate: none; } .sj-tag .el-icon { width: 20px; height: 20px; } .sj-tag em { font-style: normal; color: #FFD54A; }
.sj-el.yong .sj-tag { background: linear-gradient(#7A1418, #3E0A0C); box-shadow: 0 0 0 1px #000, 0 0 0 2px #FFD54A, 0 0 14px #FF5A4A88; color: #FFE9E0; }
.saju-screen > .row { margin-top: 1.6vh; gap: 14px; } .saju-screen button.big { font-size: 18px; }
@media (max-height: 520px) { .saju-screen > h2 { font-size: 24px; margin: 0; } .sj-pillars { --t: 52px; gap: 8px; } .sj-pillar small { font-size: 10px; padding: 2px 8px; } .sj-candles { --c: 46px; padding-top: 30px; } .sj-tag { font-size: 11px; padding: 2px 7px; margin-top: 2px; } .sj-legend { font-size: 11px; } .sj-altar { margin-top: 2px; } }
@media (max-width: 560px) { .sj-tag { flex-direction: column; border-radius: 8px; font-size: 12px; padding: 4px 6px; } }
@media (prefers-reduced-motion: reduce) { .sj-ring, .sj-flame, .sj-halo { animation: none; } }
.saju-screen > h2, .saju-screen > .row, .sj-altar { position: relative; z-index: 2; } .sj-legend { font-size: 14px; } .sj-flame { height: calc(var(--c) * (.24 + .17 * min(var(--n), 5))) !important; }
.sj-candles { position: relative; } .sj-ring { z-index: 0; } .sj-pillars { z-index: 1; }
.saju-screen > h2 { text-shadow: 0 3px 0 #1A0C06, 0 0 10px #0A0810, 0 0 26px #F2C14E66; }
.sj-ring { opacity: .42; }
.sj-legend { position: relative; z-index: 1; } .sj-legend > span { background: #0A0810B8; padding: 2px 10px; border-radius: 14px; }
@media (max-height: 520px) { .sj-legend { font-size: 11px; gap: 10px; } .sj-candles { --c: 40px; padding-top: 22px; } .sj-pillars { --t: 46px; } .sj-board { padding: 2px 0; } .saju-screen > .row { margin-top: 4px; } .saju-screen button.big { font-size: 14px; } .sj-pillar.me .tile:nth-of-type(1)::before { width: 16px; height: 16px; font-size: 10px; line-height: 15px; } }

/* 사주 화면: 세로 가운데 · 큰 화면에서 크게 */
.saju-screen { min-height: calc(100vh - 46px); min-height: calc(100dvh - 46px); justify-content: center; max-width: 1200px; padding-top: 2vh; box-sizing: border-box; }
@media (min-height: 521px) { .sj-pillars { --t: clamp(62px, 13vh, 152px); } .sj-candles { --c: clamp(64px, 12.6vh, 142px); } .sj-altar { width: min(94vw, max(720px, 96vh)); } .sj-ring { width: min(96vh, 980px); height: min(96vh, 980px); margin: calc(min(96vh, 980px) / -2) 0 0 calc(min(96vh, 980px) / -2); } .sj-tag { font-size: clamp(14px, 1.9vh, 19px); } .sj-legend { font-size: clamp(13px, 1.7vh, 17px); } .sj-pillar small { font-size: clamp(13px, 1.8vh, 18px); } .saju-screen button.big { font-size: clamp(16px, 2.1vh, 21px); } }
.sj-pillar.none .tile { background: #14100ECC; box-shadow: inset 0 0 0 2px #5A4526; border-radius: 8px; color: #7A6A4A; }
.saju-screen > .row { flex-wrap: wrap; justify-content: center; }
/* 내 생일로 판단하기 (js/saju.js) */
.sb-modal .panel { max-width: 560px !important; width: 94vw; text-align: left; }
.sb-head { display: flex; gap: 14px; align-items: center; } .sb-head img { width: 78px; height: 96px; object-fit: cover; object-position: top; box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--brass2); } .sb-head h3 { margin: 0 0 4px; font: 400 32px/1 var(--disp); color: #FFE9B8; } .sb-head p { margin: 0; font-size: 14px; color: #D9CDB4; line-height: 1.5; }
.sb-form { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.sb-row { display: flex; align-items: center; gap: 12px; padding: 8px 12px; background: #0D0908A8; box-shadow: 0 0 0 1px #5A4526; border-radius: 4px; } .sb-row > label { flex: 0 0 104px; font: 700 15px/1.2 var(--serif); color: #F3DC9A; } .sb-row > label small { display: block; font: 400 11px/1.3 'Galmuri11', sans-serif; color: #A8977A; }
.sb-f { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: #E8DCC0; font-size: 15px; flex: 1; }
.sb-modal input.sb-num, .sb-modal input.sb-place { font: 700 18px/1 'Galmuri11', sans-serif; color: #2B1708; background: #F7EBD0; border: 0; box-shadow: inset 0 2px 4px #0004, 0 0 0 2px #8A6A2E; border-radius: 3px; padding: 9px 8px; text-align: center; width: 46px; outline: none; } .sb-modal input.n4 { width: 74px; } .sb-modal input.sb-place { width: 100%; text-align: left; }
.sb-modal input:focus-visible { box-shadow: inset 0 2px 4px #0004, 0 0 0 3px #FFD54A; } .sb-modal input:disabled { opacity: .35; }
.sb-chk { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; font-size: 14px; } .sb-chk input { width: 18px; height: 18px; accent-color: #C6382B; }
.sb-sex { min-height: 38px; padding: 6px 22px; background: #2A1D18; color: #E8DCC0; box-shadow: 0 0 0 2px #5A4526; border: 0; font-size: 15px; } .sb-sex.on { background: linear-gradient(#F3DC9A, #B98A34); color: #2B1708; box-shadow: 0 0 0 2px #FFE9AE, 0 0 12px #E8C77A66; font-weight: 700; }
.sb-priv { margin: 0; font-size: 13px; color: #B8C9C4; line-height: 1.6; } .sb-priv .sb-chk { color: #E8DCC0; margin-left: 4px; }
.sb-err { margin: 0; min-height: 20px; font-size: 14px; color: #FF9A8A; } .sb-form .row { justify-content: center; gap: 12px; margin: 0; }
/* 달빛신당 풀이 족자 */
.sr-scroll { width: min(94vw, 640px); max-height: 92vh; display: flex; flex-direction: column; position: relative; padding: 22px 0; animation: srOpen .5s cubic-bezier(.2,.9,.3,1); }
.sr-scroll::before, .sr-scroll::after { content: ''; flex: none; height: 18px; margin: 0 -14px; border-radius: 9px; background: linear-gradient(#8A5A2E, #4A2A12 60%, #2B1708); box-shadow: 0 4px 8px #000A, inset 0 2px 0 #E8C77A66, inset 0 0 0 1px #1A0C06; } .sr-scroll::after { order: 1; }
.sr-scroll > .row { order: 2; justify-content: center; gap: 12px; margin: 14px 0 0; }
.sr-body { overflow: auto; background: linear-gradient(90deg, #E4D2A8, #F7ECCF 8%, #FBF3DC 50%, #F7ECCF 92%, #E4D2A8); color: #2B2016; padding: 18px 24px; text-align: left; }
.sr-top { display: flex; gap: 16px; align-items: center; padding-bottom: 12px; border-bottom: 2px solid #B0262E; } .sr-top img { width: 92px; height: 116px; object-fit: cover; object-position: top; box-shadow: 0 0 0 2px #8A6A2E; } .sr-top small { color: #8A2A22; font-size: 13px; } .sr-top b { display: block; font: 800 28px/1.2 var(--serif); color: #1E150C; } .sr-top p { margin: 2px 0 8px; font: 700 17px/1.4 var(--serif); color: #4A3520; }
.sr-keys { display: flex; gap: 6px; flex-wrap: wrap; } .sr-keys i { font-style: normal; font-size: 13px; padding: 3px 10px; border-radius: 12px; background: #8A2A22; color: #FFF3DC; }
.sr-body section { margin-top: 12px; } .sr-body h4 { margin: 0 0 4px; font: 800 17px/1.2 var(--serif); color: #8A2A22; } .sr-body p { margin: 4px 0; font-size: 15px; line-height: 1.65; } .sr-body section b { color: #5A1A12; } .sr-sub { color: #6A563A; font-size: 14px !important; } .sr-note { color: #7A6A50; font-size: 12px !important; line-height: 1.5 !important; } .sr-body section + .sr-note { margin-top: 12px; padding-top: 8px; border-top: 1px dashed #B8A070; }
a.sr-link { display: inline-flex; align-items: center; min-height: 40px; padding: 4px 16px; text-decoration: none; background: linear-gradient(#2A1D18, #15100E); color: var(--paper); box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--brass2); border-radius: 3px; font-size: 15px; } a.sr-link:hover { filter: brightness(1.25); }
@keyframes srOpen { from { transform: scaleY(.08); opacity: 0; } }
@media (max-height: 520px) { .sb-head img { width: 44px; height: 52px; } .sb-head h3 { font-size: 22px; } .sb-form { gap: 5px; margin-top: 6px; } .sb-row { padding: 3px 8px; } .sb-modal input.sb-num, .sb-modal input.sb-place { padding: 5px; font-size: 15px; } .sb-sex { min-height: 28px; padding: 2px 14px; } .sb-err { min-height: 14px; font-size: 12px; } .saju-screen { min-height: calc(100vh - 8px); padding-top: 0; } }
.sb-modal input::placeholder { color: #B9A684; font-weight: 400; opacity: 1; }
.sr-body { scrollbar-width: thin; scrollbar-color: #B08A4A #F0E2BC; }

/* ── 내 사주 설명듣기: 달빛신당 풀이 방 (js/reading.js) ── */
.modal.rd { z-index: 94; padding: 0; background: none; display: block; overflow: hidden; } .sr-modal, .sb-modal { z-index: 96 !important; }
.rd-sky { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 45%, #0000 35%, #05040ACC 100%), url(assets/ui/bg_saju.webp?v=1) center / cover; }
.rd-stage { position: absolute; inset: 0; } .rd-close { position: absolute; right: 16px; top: 14px; z-index: 3; min-width: 44px; min-height: 44px; font-size: 18px; }
.rd .sj-pillars { --t: clamp(40px, 8.4vh, 84px); gap: calc(var(--t) * .18); } .rd .sj-pillar small { font-size: 12px; padding: 4px 10px; }
.rd-pick { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.4vh; padding: 12px 16px; box-sizing: border-box; overflow: auto; }
.rd-pick h2 { margin: 0; font: 400 clamp(30px, 5.4vh, 52px)/1 var(--disp); color: #FFE9B8; text-shadow: 0 3px 0 #1A0C06, 0 0 24px #F2C14E66; }
.rd-cards { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.rd-card { width: clamp(104px, 15vw, 190px); padding: 0 0 10px; background: linear-gradient(#241815F5, #110C0AF5); color: #FFF1CF; border: 0; box-shadow: 0 0 0 1px #000, 0 0 0 3px var(--jc), 0 0 0 5px #17110F, 0 0 0 6px var(--brass2), 0 12px 22px #000A; border-radius: 4px; display: flex; flex-direction: column; align-items: center; gap: 4px; transition: transform .14s, box-shadow .14s; }
.rd-card:hover, .rd-card:focus-visible { transform: translateY(-8px); box-shadow: 0 0 0 1px #000, 0 0 0 3px var(--jc), 0 0 0 5px #17110F, 0 0 0 6px var(--brass), 0 0 30px var(--jc); }
.rd-card img { width: 100%; height: clamp(110px, 27vh, 250px); object-fit: cover; object-position: top; } .rd-card b { font: 400 28px/1 var(--disp); margin-top: 6px; } .rd-card small { font-size: 13px; color: #E0CFA4; padding: 0 4px; }
.rd-foot { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; } .rd-note { margin: 0; font-size: 12px; color: #A8A0B8; text-shadow: 0 1px 2px #000; }
.rd-talk { position: absolute; inset: 0; }
.rd-face { position: absolute; left: max(2vw, calc(50% - 640px)); bottom: 0; height: min(88vh, 900px); filter: drop-shadow(0 0 30px #000C); -webkit-mask: linear-gradient(#000 62%, #0000 96%); mask: linear-gradient(#000 62%, #0000 96%); animation: rdIn .6s cubic-bezier(.2,.9,.3,1); }
@keyframes rdIn { from { opacity: 0; transform: translateX(-40px); } }
.rd-top { position: absolute; right: max(3vw, calc(50% - 600px)); top: 8vh; } .rd-talk .sj-pillars { --t: clamp(46px, 10.5vh, 108px); }
.rd-chart .tile { transition: filter .3s, transform .3s; } .rd-chart.dim .tile:not(.lit) { filter: brightness(.42) saturate(.5); } .rd-chart .tile.lit { transform: scale(1.1); filter: drop-shadow(0 0 16px #FFD54A) brightness(1.15); z-index: 2; }
.rd-box { position: absolute; left: 50%; translate: -50% 0; bottom: 76px; width: min(94vw, 1120px); min-height: 17vh; box-sizing: border-box; padding: 34px 44px 26px; background: linear-gradient(#1C120EF2, #0C0706F7); box-shadow: 0 0 0 1px #000, 0 0 0 3px var(--brass2), 0 0 0 4px #000, 0 14px 40px #000C; border-radius: 6px; cursor: pointer; }
.rd-name { position: absolute; left: 28px; top: -22px; padding: 4px 22px 6px; font: 400 32px/1.1 var(--disp); color: #FFF3DC; background: linear-gradient(var(--jc), color-mix(in srgb, var(--jc), #000 45%)); box-shadow: 0 0 0 1px #000, 0 0 0 3px var(--brass); border-radius: 4px; display: flex; align-items: center; gap: 12px; text-shadow: 0 2px 0 #0008; } .rd-name small { font: 13px 'Galmuri11', sans-serif; color: #FFE9B8; }
.rd-text { margin: 0; font: 400 clamp(17px, 2.5vh, 24px)/1.75 var(--serif); color: #FBF1DC; text-align: left; } .rd-more { position: absolute; right: 22px; bottom: 10px; font-style: normal; color: #E8C77A; animation: rdMore 1s infinite alternate; } @keyframes rdMore { to { transform: translateY(5px); opacity: .5; } }
.rd-ctl { position: absolute; left: 50%; translate: -50% 0; bottom: 14px; display: flex; gap: 10px; align-items: center; flex-wrap: nowrap; white-space: nowrap; } .rd-ctl .ghost { min-height: 42px; } .rd-count { color: #E8DCC0; min-width: 54px; text-align: center; font-size: 14px; }
.ring-btn.reading-open > span .ic { width: 36px; height: 36px; }
@media (max-width: 760px) { .rd-face { left: -6vw; height: 66vh; opacity: .85; } .rd-ctl { flex-wrap: wrap; justify-content: center; width: 96vw; } .rd-box { bottom: 112px; padding: 30px 18px 18px; } .rd-cards { gap: 8px; } .rd-card { width: 30vw; } }
@media (max-height: 520px) { .rd-top { top: 8px; } .rd-talk .sj-pillars { --t: 34px; } .rd .sj-pillar small { font-size: 9px; padding: 1px 6px; } .rd-face { height: 92vh; } .rd-box { bottom: 50px; min-height: 0; padding: 22px 20px 10px; } .rd-name { top: -16px; font-size: 20px; padding: 2px 12px; } .rd-text { font-size: 15px; line-height: 1.5; } .rd-ctl { bottom: 4px; gap: 6px; } .rd-ctl .ghost, .rd-ctl .big { min-height: 32px !important; font-size: 12px !important; } .rd-pick { gap: 6px; justify-content: flex-start; } .rd-pick .sj-pillars { display: none; } .rd-card img { height: 92px; } .rd-card b { font-size: 18px; } .rd-card { padding-bottom: 4px; } }

/* 글자 풀이 (js/saju.js) */
.tile.can-read { cursor: help; } .tile.can-read:hover, .tile.can-read:focus-visible { filter: brightness(1.18) drop-shadow(0 0 12px #FFD54A99); outline: none; }
.tile .kr { position: absolute; left: 9%; bottom: 9%; font: 700 max(12px, calc(var(--t) * .17))/1 'Galmuri11', sans-serif; font-style: normal; color: #FFF1CF; background: #100C0AC8; padding: .18em .34em; border-radius: 4px; text-shadow: none; box-shadow: 0 0 0 1px #E9C87788; } .tile.spinning .kr { visibility: hidden; }
.sj-pillar small .i-btn { width: 18px !important; height: 18px !important; min-width: 18px; margin: -4px -6px -4px 5px !important; font-size: 10px !important; line-height: 18px; vertical-align: middle; }
.sj-guide { position: relative; z-index: 2; margin: 1vh 0 0; font-size: clamp(13px, 1.6vh, 16px); color: #CFC5E0; text-shadow: 0 1px 3px #000, 0 0 8px #000; } .sj-guide a { color: #FFE08A; font-weight: 700; text-underline-offset: 3px; }
.sj-more { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed #8A6A2E; font-size: 14px; color: #E8DCC0; text-align: center; }
.rd-face { -webkit-mask: linear-gradient(#000 62%, #0000 96%), linear-gradient(90deg, #0000, #000 12%, #000 86%, #0000); -webkit-mask-composite: source-in; mask: linear-gradient(#000 62%, #0000 96%), linear-gradient(90deg, #0000, #000 12%, #000 86%, #0000); mask-composite: intersect; }
.tile .kr { font-size: max(10px, calc(var(--t) * .17)); left: 7%; bottom: 7%; } .sj-more .sr-link { gap: 4px; }
@media (max-height: 520px) { .rd-top { right: 84px; } .rd-talk .sj-pillars { --t: 42px; } .rd .tile .kr { font-size: 9px; padding: 0 2px; } .sj-guide { margin: 2px 0 0; font-size: 11px; } .saju-screen > .row { gap: 6px; } }
@media (min-width: 761px) and (min-height: 521px) { .rd-top { right: max(84px, calc(50% - 600px)); } }

/* 상담사 족자 (음성 없이 글로) */
.rd-read { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(260px, 420px) minmax(0, 760px); justify-content: center; align-items: center; column-gap: 34px; padding: 18px 24px 72px; box-sizing: border-box; }
.rd-left { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.4vh; }
.rd-read .rd-face { position: static; height: min(48vh, 520px); max-width: 100%; object-fit: cover; object-position: top; -webkit-mask: linear-gradient(#000 80%, #0000 100%); mask: linear-gradient(#000 80%, #0000 100%); -webkit-mask-composite: source-over; mask-composite: add; }
.rd-read .sj-pillars { --t: clamp(44px, 9.4vh, 92px); }
.rd-scroll { width: 100%; max-height: 100%; min-height: 0; } .rd-body { padding: 22px 34px 24px; outline: none; }
.rd-title { display: flex; align-items: center; gap: 14px; padding-bottom: 10px; margin-bottom: 8px; border-bottom: 2px solid var(--jc); } .rd-title b { font: 400 44px/1 var(--disp); color: #1E150C; } .rd-title span { font: 700 17px/1.2 var(--serif); color: #6A3A22; flex: 1; }
.rd-seal { font: 700 17px/1.15 var(--serif); font-style: normal; writing-mode: vertical-rl; padding: 6px 5px; color: #FFF3DC; background: #B0262E; border-radius: 4px; box-shadow: inset 0 0 0 2px #FFF3DC66; transform: rotate(-4deg); }
.rd-body .rd-hi { color: #6A563A; font-size: 14px; line-height: 1.6; } .rd-body .rd-p, .rd-body .rd-last { font: 400 clamp(16px, 2.1vh, 20px)/1.8 var(--serif); color: #2B2016; margin: 10px 0; opacity: 0; animation: rdInk .6s ease-out both; } @keyframes rdInk { from { opacity: 0; filter: blur(5px); transform: translateY(6px); } to { opacity: 1; filter: none; transform: none; } }
.rd-body .rd-p.spot { cursor: help; border-radius: 4px; padding: 2px 8px; margin-left: -8px; margin-right: -8px; transition: background .2s; } .rd-body .rd-p.spot:hover, .rd-body .rd-p.spot:focus-visible { background: #E8C77A55; outline: none; } .rd-body .rd-p.spot::before { content: '◆ '; color: #B0262E; font-size: .7em; vertical-align: .15em; }
.rd-body .rd-last { font-weight: 700; color: #5A1A12; padding-top: 10px; border-top: 1px dashed #B8A070; }
.rd-body .sj-more { color: #5A4528; border-color: #B8A070; } .rd-body .sj-more a.sr-link { color: var(--paper); }
@media (max-width: 760px) { .rd-read { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); padding: 56px 12px 66px; } .rd-left { height: auto; } .rd-read .rd-face { display: none; } }
@media (max-height: 520px) { .rd-read { grid-template-columns: 220px minmax(0, 1fr); column-gap: 18px; padding: 8px 60px 46px 12px; } .rd-read .rd-face { height: 44vh; } .rd-read .sj-pillars { --t: 38px; } .rd-scroll { padding: 4px 0; } .rd-body { padding: 10px 18px; } .rd-title b { font-size: 26px; } .rd-seal { font-size: 12px; padding: 3px; } .rd-body .rd-p, .rd-body .rd-last { font-size: 14px; line-height: 1.6; margin: 5px 0; } }
@media (min-width: 761px) and (max-width: 1280px) { .rd-read { padding-right: 78px; column-gap: 20px; } }

/* 큰 기술 이름: 붓글씨가 두 번에 나눠 찍힌다 (js/heroatk.js cutin) */
.fx-cutin .ci-band { height: 190px; } .fx-cutin .ci-band img { height: 190px; }
.fx-cutin .ci-band b { display: flex; align-items: center; gap: .32em; font: 400 clamp(58px, 8vw, 104px)/1 var(--disp) !important; letter-spacing: 0; animation: none !important; }
.fx-cutin .ci-band b span { display: inline-block; opacity: 0; text-shadow: 4px 5px 0 #000, 0 0 26px var(--cc), 0 0 60px var(--cc); animation: ciSlam .26s cubic-bezier(.1,.9,.2,1) both; }
.fx-cutin .ci-band b .ci-w0 { animation-delay: var(--d0, .1s); } .fx-cutin .ci-band b .ci-w1 { animation-delay: var(--d1, .52s); font-size: 1.18em; color: #FFF6D8; }
@keyframes ciSlam { 0% { opacity: 0; transform: scale(3.4) rotate(-9deg); filter: blur(7px); } 70% { opacity: 1; transform: scale(.92) rotate(1deg); filter: none; } 100% { opacity: 1; transform: none; } }
.fx-cutin.slam .ci-band::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 62% 50%, #FFFFFFE0, var(--cc) 30%, transparent 70%); animation: ciFlash .45s ease-out both; mix-blend-mode: screen; } @keyframes ciFlash { to { opacity: 0; transform: scaleX(1.7); } }
@media (max-height: 520px) { .fx-cutin .ci-band, .fx-cutin .ci-band img { height: 120px; } .fx-cutin .ci-band b { font-size: 48px !important; } }
.fx-cutin .ci-band { background: repeating-linear-gradient(-68deg, #FFFFFF12 0 2px, transparent 2px 22px), linear-gradient(#0B0709 0, color-mix(in srgb, var(--cc), #0B0709 52%) 30%, color-mix(in srgb, var(--cc), #0B0709 62%) 70%, #0B0709 100%); box-shadow: 0 -3px 0 var(--cc), 0 3px 0 var(--cc), 0 0 0 5px #000, 0 0 60px var(--cc); }
.fx-cutin .ci-band b span { -webkit-text-stroke: 1.5px #0008; }

/* 내 사주 풀이 보기: 내 생일로 판단한 다음 출발 단추 아래에 */
.saju-screen > .sj-read { position: relative; z-index: 2; margin-top: 1.2vh; min-height: 46px; padding: 8px 26px; font-size: clamp(15px, 1.9vh, 19px); color: #FFE9B8; box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--brass), 0 0 18px #F2C14E55 !important; border-radius: 24px !important; } .saju-screen > .sj-read .ic { width: 1.9em; height: 1.9em; }
.saju-screen > .sj-read:not(:disabled) { animation: sjRead 2.4s ease-in-out infinite alternate; } @keyframes sjRead { to { box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--brass), 0 0 30px #F2C14EAA; } }
@media (max-height: 520px) { .saju-screen > .sj-read { min-height: 28px; padding: 2px 16px; margin-top: 2px; font-size: 12px; } }

/* ── 🏆 승리 보고 (js/victory.js) ── */
.vic { position: fixed; inset: 0; z-index: 60; overflow: hidden; background: radial-gradient(ellipse at 50% 42%, #5A2A10 0, #1E0E0A 55%, #0A0506 100%); color: #FFF3DC; cursor: pointer; animation: vcIn .4s ease-out; } @keyframes vcIn { from { opacity: 0; } } .vic.out { opacity: 0; transition: opacity .3s; pointer-events: none; }
body:has(.vic) .modal.levelup, body:has(.vic) .modal.loot { z-index: 92; }
.vc-rays { position: absolute; left: 50%; top: 42%; width: 220vmax; height: 220vmax; margin: -110vmax 0 0 -110vmax; background: repeating-conic-gradient(#FFD98A1F 0 6deg, transparent 6deg 15deg); animation: sjRing 70s linear infinite; -webkit-mask: radial-gradient(circle, #000, transparent 62%); mask: radial-gradient(circle, #000, transparent 62%); }
.vc-coins { position: absolute; inset: 0; pointer-events: none; overflow: hidden; } .vc-coins .yp { position: absolute; top: -40px; scale: var(--s); animation: vcCoin 2.4s linear both; } @keyframes vcCoin { to { transform: translateY(112vh) rotate(720deg); } }
.vc-stage { position: absolute; inset: 0; display: grid; place-items: center; }
.vc-title { position: absolute; inset: 0; } .vc-hero { position: absolute; left: max(3vw, calc(50% - 640px)); bottom: 5vh; height: min(84vh, 840px); width: min(44vw, 620px); animation: vcHero .7s cubic-bezier(.2,1.5,.4,1) both; } @keyframes vcHero { 0% { opacity: 0; transform: translateX(-90px) scale(.7); } 60% { opacity: 1; transform: translateY(-34px) scale(1.04); } 100% { transform: none; } }
.vc-hero img { position: absolute; left: 50%; bottom: 0; translate: -50% 0; height: 100%; max-width: 100%; object-fit: contain; object-position: bottom; image-rendering: pixelated; filter: drop-shadow(0 0 2px #FFE9A8) drop-shadow(0 0 26px #FF9A3A99) drop-shadow(0 14px 10px #0009); animation: vcBob 1.9s .8s infinite alternate ease-in-out; } @keyframes vcBob { to { transform: translateY(-10px); } }
.vc-halo { position: absolute; left: 50%; bottom: -3vh; width: 90%; height: 12vh; translate: -50% 0; background: radial-gradient(ellipse, #FFD98A99, #FF8A2A44 45%, transparent 70%); }
.vc-foe { position: absolute; right: max(5vw, calc(50% - 560px)); bottom: 12vh; animation: vcFoe 2.4s .7s ease-in both; } .vc-foe canvas { height: 30vh; width: auto; image-rendering: pixelated; filter: grayscale(1) brightness(1.5); } @keyframes vcFoe { 0% { opacity: .9; transform: none; } 30% { transform: rotate(10deg) translateY(6px); } 100% { opacity: 0; transform: rotate(34deg) translateY(50px); filter: blur(7px) brightness(3); } }
.vc-word { position: absolute; left: 36%; right: 4vw; top: 20vh; text-align: center; } .vc-word small { font-size: 18px; color: #E8C77A; } .vc-word b { display: flex; justify-content: center; gap: .04em; font: 400 clamp(110px, 25vh, 270px)/1 var(--disp); color: #FFE9A8; text-shadow: 0 6px 0 #5A1A0A, 0 0 50px #FF9A3A, 0 0 100px #FFD54A88; } .vc-word b span { animation: ciSlam .34s cubic-bezier(.1,.9,.2,1) both; } .vc-word b span:nth-child(2) { animation-delay: .26s; } .vc-word b span:nth-child(3) { animation-delay: .52s; }
.vc-word em { display: block; font: 700 clamp(22px, 4vh, 38px)/1.3 var(--serif); font-style: normal; color: #FFF6DC; text-shadow: 0 2px 6px #000; animation: rdInk .6s .7s both; } .vc-word q { display: inline-block; margin-top: 14px; padding: 8px 22px; font: 400 clamp(18px, 2.8vh, 26px)/1.4 var(--serif); color: #2B2016; background: linear-gradient(90deg, #E4D2A8, #FBF3DC 12%, #FBF3DC 88%, #E4D2A8); border-radius: 4px; quotes: '"' '"'; animation: rdInk .6s 1.1s both; }
.vc-card { position: relative; width: min(92vw, 520px); padding: 22px 30px 18px; text-align: center; background: var(--lac); border: 30px solid transparent; border-image: url(assets/ui/panel.webp?v=1) 98 fill / 36px / 5px round; animation: vcCard .42s cubic-bezier(.2,1.5,.4,1) both; } @keyframes vcCard { from { opacity: 0; transform: scale(.55) translateY(60px) rotate(-4deg); } }
.vc-from { font-size: 16px; color: #E8C77A; letter-spacing: .08em; } .vc-art { position: relative; height: 150px; display: grid; place-items: center; margin: 4px 0; } .vc-art img { position: relative; height: 136px; max-height: 150px; max-width: 240px; object-fit: contain; image-rendering: pixelated; } .vc-card.k-level .vc-art { height: 200px; } .vc-card.k-level .vc-art img { height: 200px; max-height: 200px; filter: drop-shadow(0 0 14px #8FC4FFAA); }
.vc-art .vc-ic { position: relative; font-style: normal; font-size: 72px; } .vc-art .vc-ic .ic { width: 112px; height: 112px; margin: 0; } .vc-art .yp { position: relative; width: 96px !important; height: 96px !important; background-size: contain !important; } .vc-art .vc-el, .vc-art .el-icon { position: relative; width: 104px !important; height: 104px !important; }
.vc-glow { position: absolute; left: 50%; top: 50%; width: 300px; height: 300px; margin: -150px; background: repeating-conic-gradient(#FFE08A55 0 9deg, transparent 9deg 22deg); -webkit-mask: radial-gradient(circle, #000 10%, transparent 64%); mask: radial-gradient(circle, #000 10%, transparent 64%); animation: sjRing 14s linear infinite; } .k-level .vc-glow { background: repeating-conic-gradient(#8FC4FF66 0 9deg, transparent 9deg 22deg); } .k-skill .vc-glow { background: repeating-conic-gradient(#C79AFF66 0 9deg, transparent 9deg 22deg); }
.vc-card h2 { margin: 2px 0 6px; font: 400 44px/1.1 var(--disp); color: #FFE9B8; text-shadow: 0 3px 0 #1A0C06; } .vc-amt b { font: 800 40px/1 var(--serif); color: #FFD54A; text-shadow: 0 2px 0 #4A2A08, 0 0 20px #FFD54A66; }
.vc-row { display: flex; justify-content: center; align-items: center; gap: 12px; font: 700 20px/1.7 var(--serif); } .vc-row span { color: #D9CDB4; min-width: 96px; text-align: right; } .vc-row i { font-style: normal; color: #A8977A; } .vc-row i.ar { color: #E8C77A; } .vc-row b { color: #8CFF9A; min-width: 60px; text-align: left; font-size: 24px; }
.vc-bar { position: relative; height: 22px; margin: 10px 18px; background: #0B0608; box-shadow: 0 0 0 2px var(--brass2); border-radius: 12px; overflow: hidden; } .vc-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #4A9AE0, #BFE6FF); transition: width .9s cubic-bezier(.2,.8,.3,1); } .vc-bar span { position: relative; font: 700 14px/22px 'Galmuri11', sans-serif; color: #fff; text-shadow: 0 1px 2px #000; }
.vc-card p { margin: 8px 0 0; font-size: 15px; color: #D9CDB4; line-height: 1.5; } .vc-next { margin-top: 12px; display: flex; justify-content: center; gap: 12px; font-size: 14px; color: #E8C77A; animation: rdMore 1s infinite alternate; }
.vc-list { position: absolute; left: 22px; top: 50%; translate: 0 -50%; width: 220px; display: none; flex-direction: column; gap: 8px; z-index: 2; max-height: 88vh; overflow: hidden; } .vc-list.on { display: flex; } .vc-list > b { font: 400 30px/1 var(--disp); color: #FFE9B8; text-shadow: 0 2px 0 #000; } .vc-got { display: flex; align-items: center; gap: 10px; padding: 6px 12px; background: #0D0807D0; box-shadow: 0 0 0 1px #5A4526; border-radius: 4px; font-size: 14px; animation: rdIn .4s; } .vc-got img { width: 32px; height: 32px; object-fit: contain; } .vc-got .vc-ic { font-style: normal; font-size: 24px; width: 32px; text-align: center; } .vc-got .yp { width: 26px !important; height: 26px !important; margin: 0 3px; background-size: contain !important; } .vc-got .el-icon { width: 28px !important; height: 28px !important; }
.vc-sum { text-align: center; max-width: 900px; padding: 0 20px; } .vc-sum h2 { font: 400 clamp(38px, 7vh, 62px)/1.1 var(--disp); color: #FFE9B8; margin: 0 0 18px; text-shadow: 0 3px 0 #1A0C06; } .vc-grid { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 22px; max-height: 62vh; overflow: auto; padding: 6px; }
.vc-cell { width: 150px; padding: 14px 8px 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; background: linear-gradient(#2B1F1AF2, #14100EF2); box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--brass2); border-radius: 4px; animation: vcCard .4s cubic-bezier(.2,1.4,.4,1) both; } .vc-cell img { height: 60px; max-width: 110px; object-fit: contain; } .vc-cell .vc-ic { font-style: normal; font-size: 44px; } .vc-cell .vc-ic .ic { width: 60px; height: 60px; } .vc-cell .yp { width: 54px !important; height: 54px !important; background-size: contain !important; } .vc-cell .el-icon { width: 58px !important; height: 58px !important; } .vc-cell b { font: 700 17px/1.2 var(--serif); color: #FFE9B8; } .vc-cell small { white-space: pre-line; font-size: 13px; color: #D9CDB4; line-height: 1.4; }
.perk .pi .ic { width: 56px; height: 56px; }
@media (max-width: 900px) { .vc-list { display: none !important; } .vc-word { left: 30%; } }
@media (max-height: 520px) { .vc-card { padding: 4px 14px; border-width: 18px; border-image-width: 20px; } .vc-art { height: 84px; } .vc-card.k-level .vc-art { height: 84px; } .vc-art img, .vc-card.k-level .vc-art img { max-height: 84px; height: 84px; width: auto; } .vc-art .vc-ic .ic, .vc-art .yp, .vc-art .el-icon { width: 66px !important; height: 66px !important; } .vc-card h2 { font-size: 28px; margin: 0; } .vc-amt b { font-size: 26px; } .vc-row { font-size: 15px; line-height: 1.4; } .vc-row b { font-size: 17px; } .vc-card p { font-size: 12px; margin-top: 2px; } .vc-next { margin-top: 4px; } .vc-grid { gap: 8px; margin-bottom: 8px; } .vc-cell { width: 110px; padding: 6px; } .vc-cell img, .vc-cell .vc-ic .ic { height: 38px; } .vc-sum h2 { margin-bottom: 6px; } }
.vc-got .vc-ic .ic { width: 32px !important; height: 32px !important; margin: 0; }

/* ── 🏮 사주 화면 안내 (js/sajuguide.js) ── */
.sg { position: fixed; inset: 0; z-index: 70; cursor: pointer; overflow: hidden; animation: vcIn .3s; } .sg.out { opacity: 0; transition: opacity .25s; pointer-events: none; }
.sg-hole { position: absolute; border-radius: 12px; box-shadow: 0 0 0 200vmax #05030BC7, 0 0 0 3px #FFD98A, 0 0 34px 8px #FFC84A99, inset 0 0 24px #FFD98A66; transition: left .35s, top .35s, width .35s, height .35s; animation: sgPulse 1.1s infinite alternate; pointer-events: none; } @keyframes sgPulse { to { box-shadow: 0 0 0 200vmax #05030BC7, 0 0 0 4px #FFF0C0, 0 0 54px 14px #FFC84ACC, inset 0 0 34px #FFD98A99; } }
.sg-hole.none { left: 50%; top: 50%; width: 0; height: 0; border: 0; box-shadow: 0 0 0 200vmax #05030BC7; animation: none; }
.sg-talk { position: absolute; left: 50%; translate: -50% 0; width: min(96vw, 900px); display: flex; align-items: flex-end; gap: 0; } .sg-talk.mid { top: 50%; translate: -50% -50%; } .sg-talk.top { bottom: auto; top: 14px; } .sg-talk.bottom { bottom: 18px; }
.sg-face { flex: none; width: clamp(120px, 24vw, 230px); position: relative; z-index: 2; margin-right: -14px; pointer-events: none; } .sg-face img { display: block; width: 100%; max-height: min(44vh, 320px); object-fit: contain; object-position: bottom; image-rendering: pixelated; filter: drop-shadow(0 0 2px #FFE9A8) drop-shadow(0 0 18px #B06AD088) drop-shadow(0 8px 8px #000C); animation: sgIn .5s cubic-bezier(.2,1.4,.4,1); } @keyframes sgIn { from { opacity: 0; transform: translateX(-60px); } }
.sg-talk.mid .sg-face img { max-height: min(60vh, 430px); } .sg-talk.mid .sg-face { width: clamp(150px, 30vw, 300px); } .sg-talk.top .sg-face img, .sg-talk.bottom .sg-face img { max-height: min(44vh, 320px, var(--room, 320px)); }
.sg-box { position: relative; flex: 1; min-width: 0; padding: 22px 26px 10px; text-align: left; color: #2B2016; background: linear-gradient(90deg, #E4D2A8, #FBF3DC 6%, #FBF3DC 94%, #E4D2A8); border-radius: 6px; box-shadow: 0 0 0 2px #6A4A22, 0 0 0 5px #1A0F08, 0 0 0 6px #C9A24B, 0 12px 30px #000C; }
.sg-who { position: absolute; left: 22px; top: -18px; padding: 5px 18px; font: 400 24px/1.1 var(--disp); color: #FFE9B8; background: linear-gradient(#6A2A5A, #3E1636); border-radius: 4px; box-shadow: 0 0 0 1px #1A0F08, 0 0 0 2px #C9A24B; }
.sg-box p { margin: 4px 0 0; min-height: 4.6em; font: 700 clamp(17px, 2.5vh, 23px)/1.55 var(--serif); word-break: keep-all; color: #2B2016; }
.sg-show { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; min-height: 0; margin: 4px 0; opacity: 0; transform: scale(.9); transition: .3s; } .sg-show:empty { display: none; } .sg-show.on { opacity: 1; transform: none; } .sg-show i { font: 700 18px/1 var(--serif); font-style: normal; color: #6A5432; } .sg-show i.ar { color: #A0522D; font-size: 22px; } .sg-show .up { font: 800 24px/1 var(--serif); color: #B0262E; }
.sg-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; background: #1C110E; color: #FFE9B8; border-radius: 16px; box-shadow: 0 0 0 1px #C9A24B; font: 700 16px/1 var(--serif); } .sg-chip .el-icon { width: 24px; height: 24px; } .sg-chip.yong { background: linear-gradient(#7A1418, #3E0A0C); }
.sg-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; } .sg-foot button.ghost { color: #6A4A22; background: none; border: 0; box-shadow: none; font-size: 14px; padding: 4px 6px; } .sg-dots { display: flex; gap: 7px; } .sg-dots i { width: 9px; height: 9px; border-radius: 50%; background: #CDB98A; } .sg-dots i.past { background: #A0783C; } .sg-dots i.on { background: #B0262E; scale: 1.3; } .sg-next { font: 700 16px/1 var(--serif); color: #B0262E; animation: rdMore .8s infinite alternate; }
.sg-skip { position: absolute; right: 16px; top: 14px; z-index: 5; } .sg:has(.sg-talk.top) .sg-skip { top: auto; bottom: 14px; }
.sj-guide .linky { background: none; border: 0; box-shadow: none; padding: 0 2px; font: inherit; color: #FFE08A; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 0; }
@media (max-height: 520px) { .sg-face { width: 120px; } .sg-talk.mid .sg-face { width: 170px; } .sg-box { padding: 14px 16px 4px; } .sg-who { font-size: 17px; top: -14px; } .sg-box p { font-size: 14px; line-height: 1.4; min-height: 2.8em; } .sg-show { gap: 6px; margin: 2px 0; } .sg-show .up { font-size: 18px; } .sg-chip { font-size: 13px; padding: 3px 8px; } .sg-foot { margin-top: 0; } .sg-talk.top { top: 18px; } .sg-talk.bottom { bottom: 6px; } }
@media (max-width: 560px) { .sg-face { width: 96px; } .sg-box { padding: 18px 14px 8px; } .sg-box p { font-size: 15px; } }

/* ── 📜 족자 · 부적 고르기 (js/pickscroll.js) ── */
body[data-scr="gift"] #app { padding-bottom: 0; }
body[data-scr="gift"]::before { background-image: radial-gradient(ellipse at 50% 46%, #0000 30%, #060302B8 100%), linear-gradient(#0A060455, #0A060422), url(assets/ui/bg_reward.webp?v=1); background-position: center, center, center bottom; }
.gift-screen { --w: min(26vw, 330px, calc((100vh - 400px) / 2.2)); min-height: calc(100vh - 170px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1vh; text-align: center; }
.gf-head small { display: inline-block; font-size: 16px; color: #F3DC9A; background: #0A0604B8; padding: 3px 16px; border-radius: 14px; } .gf-head h2 { margin: 4px 0 0; font: 400 clamp(38px, 6vh, 60px)/1.1 var(--disp) !important; color: #FFE9B8; text-shadow: 0 3px 0 #1A0C06, 0 0 24px #FF9A3A66; } .gf-head p { margin: 2px 0 0; font-size: 15px; color: #E4D6BC; text-shadow: 0 1px 4px #000; }
.gf-row { position: relative; display: flex; justify-content: center; gap: clamp(10px, 3vw, 46px); padding-top: 20px; } .gf-row.scrolls::before { content: ''; position: absolute; left: -46px; right: -46px; top: 0; height: 13px; border-radius: 7px; background: linear-gradient(90deg, #E9C877 0 16px, #6A4A22 16px 22px, transparent 22px calc(100% - 22px), #6A4A22 calc(100% - 22px) calc(100% - 16px), #E9C877 calc(100% - 16px)), linear-gradient(#8A5A30, #4A2A14 55%, #2A160A); box-shadow: 0 0 0 1px #1A0C06, 0 8px 14px #000A; }
body .gift-screen button.gf-scroll { position: relative; width: var(--w); height: calc(var(--w) * 2.227); padding: 0; border: 0; background: none; box-shadow: none; color: #2B2016; container-type: inline-size; transform-origin: 50% -10px; transition: filter .2s; filter: drop-shadow(0 14px 14px #000A); overflow: visible; animation: gfSway 5s calc(var(--i) * -1.3s) infinite alternate ease-in-out; } @keyframes gfSway { from { transform: rotate(-.7deg); } to { transform: rotate(.7deg); } }
.gf-cord { position: absolute; left: 50%; top: -10px; width: 2px; height: 16px; margin-left: -1px; background: #C9A24B; box-shadow: 0 0 2px #000; }
.gf-body { position: absolute; inset: 0; animation: gfOpen .75s calc(.25s + var(--i) * .19s) cubic-bezier(.3,.7,.3,1) both; } @keyframes gfOpen { from { clip-path: inset(-4% -20% 86% -20%); } to { clip-path: inset(-10% -20% -6% -20%); } }
.gf-frame { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.gf-roll { position: absolute; left: 0; top: 0; width: 100%; height: 100%; clip-path: inset(83% 0 0 0); animation: gfRoll .75s calc(.25s + var(--i) * .19s) cubic-bezier(.3,.7,.3,1) both; pointer-events: none; } @keyframes gfRoll { from { transform: translateY(-70%); } to { transform: none; } }
.gf-paper { position: absolute; left: 10.8%; right: 11%; top: 24.6%; bottom: 23.8%; display: flex; flex-direction: column; align-items: center; justify-content: space-between; overflow: hidden; padding: 1cqw 2cqw 2.4cqw; }
:is(.f-metal, .f-water, .f-tai) .gf-paper { left: 12.6%; right: 12.8%; top: 22%; bottom: 24.8%; }
.gf-art { width: 68cqw; height: 68cqw; flex: 0 1 auto; min-height: 0; object-fit: contain; mix-blend-mode: multiply; transition: scale .35s; }
.gf-name { font: 400 17cqw/1 var(--disp); color: #2B1708; } .gf-ki { display: inline-flex; align-items: center; gap: 1.6cqw; font: 700 6cqw/1 var(--serif); color: #5A4526; } .gf-ki .el-icon { width: 9cqw; height: 9cqw; } .gf-ki em { font-style: normal; } .gf-ki b { font: 800 11cqw/1 var(--serif); color: #B0262E; } .gf-ki { flex-wrap: wrap; justify-content: center; } .gf-ki small { margin-left: 1cqw; font: 700 4.6cqw/1.1 'Galmuri11', sans-serif; color: #2F6A3C; }
.gf-desc { min-height: 2.5em; display: grid; place-items: center; font: 700 5.6cqw/1.25 var(--serif); color: #3A2A18; word-break: keep-all; }
.gf-yong { position: absolute; right: 2%; top: 20%; padding: 2.4cqw 3cqw; font: 800 6cqw/1.1 var(--serif); color: #FFF3DC; background: linear-gradient(#C6382B, #7A1418); border-radius: 4px; box-shadow: 0 0 0 1px #2B0A08, 0 0 0 2px #FFD54A, 0 0 16px #FF5A4A; transform: rotate(6deg); } .gf-yong i { display: block; font: 700 4.4cqw/1.2 'Galmuri11', sans-serif; font-style: normal; color: #FFE08A; }
.gf-key { position: absolute; left: 50%; bottom: 3%; translate: -50% 0; min-width: 26px; font: 700 14px/24px 'Galmuri11', sans-serif; color: #FFE9B8; background: #0D0807D0; box-shadow: 0 0 0 1px #000, 0 0 0 2px #6A5128; border-radius: 5px; }
body .gift-screen button.gf-scroll:is(:hover, :focus-visible) { animation-play-state: paused; filter: drop-shadow(0 0 3px #FFF0C0) drop-shadow(0 0 22px var(--ec)) drop-shadow(0 0 40px #FFB84A88) brightness(1.06); outline: 0; z-index: 3; } .gf-scroll:is(:hover, :focus-visible) .gf-art { scale: 1.07; } .gf-scroll:is(:hover, :focus-visible) .gf-key, .gf-relic:is(:hover, :focus-visible) .gf-key { background: linear-gradient(#FFE9AE, #C89A3A); color: #2B1708; }
.gf-scroll.gone, .gf-relic.gone { opacity: 0 !important; translate: 0 -30px; transition: .4s !important; pointer-events: none; } .gf-scroll.taken .gf-body { animation: gfClose .5s ease-in both !important; } .gf-scroll.taken .gf-roll { animation: gfUp .5s ease-in both !important; } .gf-scroll.taken { animation: none !important; } .gf-scroll.taken .gf-key { opacity: 0; } @keyframes gfClose { to { clip-path: inset(-4% -20% 86% -20%); } } @keyframes gfUp { to { transform: translateY(-70%); } }
.gf-skip { margin-top: 6px; min-width: 150px; }
.gf-row.relics { padding-top: 0; gap: 26px; margin-bottom: 10px; } body:not(.dream) .gift-screen button.gf-relic, body .gift-screen button.gf-relic { position: relative; width: min(38vw, 290px); padding: 22px 20px 18px; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--paper); background: var(--lac); border: 28px solid transparent; border-image: url(assets/ui/panel.webp?v=1) 98 fill / 34px / 5px round; box-shadow: none; animation: vcCard .45s calc(var(--i) * .16s) cubic-bezier(.2,1.5,.4,1) both; transition: filter .2s, translate .2s; }
.gf-relic img { position: relative; width: 128px; height: 128px; image-rendering: pixelated; } .gf-relic b { position: relative; font: 400 36px/1.1 var(--disp); color: #FFE9B8; } .gf-relic > span { position: relative; font: 700 17px/1.4 var(--serif); color: #E4D6BC; word-break: keep-all; } .gf-glow { position: absolute; left: 50%; top: 84px; width: 240px; height: 240px; margin: -120px; background: repeating-conic-gradient(#FFE08A40 0 9deg, transparent 9deg 22deg); -webkit-mask: radial-gradient(circle, #000 10%, transparent 64%); mask: radial-gradient(circle, #000 10%, transparent 64%); animation: sjRing 16s linear infinite; }
.gf-relic:is(:hover, :focus-visible) { filter: brightness(1.15) drop-shadow(0 0 24px #FFB84A99); translate: 0 -8px; outline: 0; } .gf-relic .gf-key { bottom: -52px; } .gf-row.relics + .gf-skip { margin-top: 44px; }
.gf-relic.taken { filter: brightness(1.5) drop-shadow(0 0 40px #FFE08A); } .relic .rl-img, .ri .rl-img { width: 1.6em; height: 1.6em; vertical-align: -.4em; image-rendering: pixelated; }
@media (max-height: 520px) { body[data-scr="gift"] .topbar { display: none; } .gift-screen { --w: min(26vw, calc((100vh - 108px) / 2.2)); min-height: calc(100vh - 20px); gap: 2px; } .gf-head { display: flex; align-items: center; gap: 14px; justify-content: center; } .gf-head h2 { font-size: 28px !important; margin: 0; } .gf-head p { display: none; } .gf-row { padding-top: 14px; } .gf-row.scrolls::before { height: 8px; } .gf-cord { top: -12px; height: 16px; } .gf-key { display: none; } .gf-skip { margin-top: 4px !important; min-height: 30px; padding: 4px 14px; } body .gift-screen button.gf-relic { padding: 2px 8px; border-width: 18px !important; border-image-width: 22px !important; gap: 2px; } .gf-relic img { width: 84px; height: 84px; } .gf-relic b { font-size: 26px; } .gf-relic > span { font-size: 14px; } .gf-glow { top: 50px; } }
@media (prefers-reduced-motion: reduce) { body .gift-screen button.gf-scroll { animation: none; } }
.si-stats .si-heal { color: #9CFFB0; font-size: 13px; word-break: keep-all; text-align: center; }
@media (max-height: 520px) { .gift-screen { --w: min(26vw, calc((100vh - 104px) / 2.1)); } .gf-art { width: 46cqw; height: 46cqw; } .gf-ki b { font-size: 14cqw; } .gf-ki { font-size: 9cqw; } .gf-ki small { font-size: 7.2cqw; } .gf-desc { font-size: 9.4cqw; line-height: 1.15; min-height: 2.3em; } .gf-yong { font-size: 10cqw; } .gf-yong i { font-size: 7cqw; } .gf-head small { font-size: 13px; } }

/* ── 🏮 윤달이 장터 (js/shop.js) ── */
body[data-scr="shop"]::before { background-image: radial-gradient(ellipse at 60% 46%, #0000 40%, #060302A8 100%), linear-gradient(#0A060433, #0A060455), url(assets/ui/bg_shop.webp?v=1); }
body[data-scr="shop"] #app { padding-bottom: 0; max-width: 1480px; }
body .shop-screen { position: relative; display: grid !important; grid-template-columns: minmax(230px, 27%) 1fr !important; gap: 18px !important; padding: 0 !important; max-width: 1420px; margin: 0 auto; min-height: calc(100vh - 160px); align-items: stretch; isolation: auto; } .shop-screen::before { display: none !important; }
.sh-host { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; min-height: 420px; }
.sh-bubble { position: relative; width: 100%; box-sizing: border-box; padding: 18px 18px 14px; margin-bottom: 16px; color: #2B2016; background: linear-gradient(90deg, #E4D2A8, #FBF3DC 8%, #FBF3DC 92%, #E4D2A8); border-radius: 6px; box-shadow: 0 0 0 2px #6A4A22, 0 0 0 5px #1A0F08, 0 0 0 6px #C9A24B, 0 10px 22px #000B; } .sh-bubble::after { content: ''; position: absolute; left: 50%; bottom: -15px; translate: -50% 0; border: 9px solid transparent; border-top-color: #C9A24B; border-bottom: 0; } .sh-bubble b { position: absolute; left: 16px; top: -16px; padding: 4px 16px; font: 400 22px/1.1 var(--disp); color: #4A2A08; background: linear-gradient(#FFE9A8, #E0B04A); border-radius: 4px; box-shadow: 0 0 0 1px #1A0F08, 0 0 0 2px #C9A24B; } .sh-bubble p { margin: 0; min-height: 2.9em; font: 700 clamp(15px, 2vh, 19px)/1.45 var(--serif); word-break: keep-all; } .sh-bubble.pop { animation: shPop .35s cubic-bezier(.2,1.6,.4,1); } @keyframes shPop { from { transform: scale(.86); opacity: .3; } }
.sh-dali { height: min(44vh, 440px); max-width: 100%; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 0 2px #FFE9A8) drop-shadow(0 0 22px #FFB84A77) drop-shadow(0 10px 8px #000A); margin-bottom: -18%; animation: vcBob 2.2s infinite alternate ease-in-out; } .shop-screen.first .sh-dali { animation: vcHero .6s cubic-bezier(.2,1.5,.4,1) both, vcBob 2.2s .7s infinite alternate ease-in-out; }
.sh-counter { position: relative; width: 112%; max-width: none; filter: drop-shadow(0 10px 12px #000B); }
body .shop-screen .sh-goods { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 6px 12px 10px; background: linear-gradient(#150C08D9, #0D0705E6); border: 26px solid transparent; border-image: url(assets/ui/panel.webp?v=1) 98 fill / 32px / 4px round; }
.sh-pane { flex: 1; display: flex; flex-direction: column; justify-content: center; min-height: 0; } .shop-screen.enter .sh-pane { animation: st-in .25s both; }
/* 선반 */
.sh-shelf { display: grid; grid-template-columns: repeat(4, 1fr); row-gap: clamp(8px, 1.6vh, 18px); } .sh-shelf.big { grid-template-columns: repeat(2, 1fr); max-width: 780px; width: 100%; margin: 0 auto; }
body .shop-screen button.sh-item { position: relative; display: flex; flex-direction: column; align-items: center; min-width: 0; padding: 0 4px; border: 0; background: none; box-shadow: none; color: #F1E4C8; text-shadow: 0 1px 3px #000; }
.sh-up { position: relative; width: 100%; height: clamp(84px, 13.4vh, 150px); display: flex; align-items: flex-end; justify-content: center; } .sh-up::before { content: ''; position: absolute; left: 50%; bottom: 0; width: 80%; height: 100%; translate: -50% 0; background: radial-gradient(ellipse at 50% 80%, #FFC86A44, transparent 65%); opacity: .7; transition: opacity .2s; }
.sh-tray { position: absolute; left: 50%; bottom: -3px; width: clamp(80px, 12.5vh, 130px); translate: -50% 0; } .sh-img { position: relative; width: clamp(56px, 8.8vh, 98px); height: clamp(56px, 8.8vh, 98px); object-fit: contain; image-rendering: pixelated; margin-bottom: clamp(26px, 4.3vh, 46px); transition: transform .2s; filter: drop-shadow(0 4px 3px #0009); }
.sh-plank { position: relative; width: calc(100% + 10px); height: 22px; background: url(assets/ui/shop/shelf.webp?v=1) center / 400% 100%; box-shadow: 0 8px 12px #000B; }
.sh-name { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; font: 700 clamp(16px, 2.1vh, 20px)/1.2 var(--serif); color: #FFE9B8; white-space: nowrap; } .sh-name .i-btn { flex: none; scale: .82; }
.sh-eff { font: 700 clamp(13px, 1.75vh, 16px)/1.3 var(--serif); color: #9CFFB0; word-break: keep-all; text-align: center; } .sh-have { position: absolute; z-index: 3; left: 4px; bottom: 4px; padding: 3px 10px; font: 800 clamp(13px, 1.7vh, 16px)/1.2 var(--serif); color: #2B1708; text-shadow: none; background: linear-gradient(#FFF0C4, #E3B254); border-radius: 12px; box-shadow: 0 0 0 1px #3A1E08, 0 2px 4px #000A; white-space: nowrap; } .sh-have.none { color: #B7A68A; background: #17100BE0; box-shadow: 0 0 0 1px #6A5128; } .sh-have.full { color: #FFF3DC; background: linear-gradient(#C6382B, #7A1418); box-shadow: 0 0 0 1px #000, 0 0 0 2px #FFD54A; }
.sh-rank { position: absolute; z-index: 2; right: 4px; top: 2px; padding: 2px 8px; font: 700 12px/1.3 'Galmuri11', sans-serif; color: #FFE9B8; background: #0D0807D0; box-shadow: 0 0 0 1px #6A5128; border-radius: 10px; }
.sh-tag { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 108px; height: 54px; margin-top: 2px; padding-top: 13px; box-sizing: border-box; font: 800 20px/1 var(--serif); color: #3A1E08; text-shadow: 0 1px 0 #FFE9B8; background: url(assets/ui/shop/tag.webp?v=2) center / 100% 100% no-repeat; transform-origin: 50% 0; } .sh-tag .yp { width: 21px; height: 21px; } .sh-tag.poor { color: #B0202A; filter: saturate(.7) brightness(.85); }
button.sh-item:is(:hover, :focus-visible):not(:disabled) { outline: 0; } button.sh-item:is(:hover, :focus-visible):not(:disabled) .sh-img { transform: translateY(-9px) scale(1.12); filter: drop-shadow(0 0 12px #FFE08A) drop-shadow(0 8px 4px #0009); } button.sh-item:is(:hover, :focus-visible) .sh-up::before { opacity: 2; filter: brightness(1.8); } button:is(:hover, :focus-visible):not(:disabled) > .sh-tag { animation: shSwing .7s ease-in-out infinite alternate; } @keyframes shSwing { from { rotate: -3deg; } to { rotate: 3deg; } }
.sh-item.nope, .gf-scroll.nope, .sh-burn.nope { animation: shNope .4s !important; } @keyframes shNope { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.sh-sold { position: absolute; z-index: 4; left: 50%; top: 32%; translate: -50% 0; rotate: -13deg; padding: 4px 16px; font: 400 30px/1.15 var(--disp); color: #FF6A5A; background: #1A0806D9; border: 3px solid #D0402E; border-radius: 6px; white-space: nowrap; } .sh-item.sold > *:not(.sh-sold):not(.sh-plank) { opacity: .35; filter: grayscale(.8); } body .shop-screen button.sh-item:disabled { opacity: 1; }
.sh-item.root .sh-up::before { background: radial-gradient(ellipse at 50% 70%, #FFE06A99, transparent 66%); opacity: 1; animation: rdMore 1.2s infinite alternate; } .sh-item.root .sh-name { color: #FFD54A; }
.sh-shelf.big .sh-up { height: clamp(120px, 24vh, 240px); } .sh-shelf.big .sh-img { width: clamp(84px, 15vh, 150px); height: clamp(84px, 15vh, 150px); margin-bottom: clamp(38px, 7.6vh, 80px); } .sh-shelf.big .sh-tray { width: clamp(130px, 22vh, 230px); } .sh-shelf.big .sh-name { font-size: clamp(20px, 2.9vh, 28px); margin-top: 12px; } .sh-shelf.big .sh-eff { font-size: clamp(15px, 2vh, 19px); max-width: 300px; } .sh-shelf.big .sh-tag { margin-top: 10px; } .sh-shelf.big .sh-rank { right: 14%; font-size: 14px; }
.sh-item.g1 { --gc: #C08A58; } .sh-item.g2 { --gc: #5FD0C4; } .sh-item.g3 { --gc: #FFD54A; } .sh-item.t1 { --gc: #7AB0E8; } .sh-item.t2 { --gc: #B98AF0; } .sh-item.t3 { --gc: #FF8A7A; } .sh-item.t4 { --gc: #8CE08C; } .sh-item.t5 { --gc: #FFD54A; } .sh-shelf.big .sh-rank { color: var(--gc); box-shadow: 0 0 0 1px var(--gc); } .sh-shelf.big .sh-up::before { background: radial-gradient(ellipse at 50% 70%, color-mix(in srgb, var(--gc) 45%, transparent), transparent 66%); opacity: 1; }
.sh-stats { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin: 4px 0; } .sh-stats em { display: inline-flex; align-items: center; gap: 3px; padding: 2px 10px; font: 700 14px/1.4 var(--serif); font-style: normal; background: #0D0807C0; box-shadow: 0 0 0 1px #5A4526; border-radius: 10px; } .sh-stats .atk { color: #FFB08A; } .sh-stats .el-icon { width: 16px; height: 16px; } .sh-empty { grid-column: 1 / -1; text-align: center; font: 400 30px/1.3 var(--disp); color: #E4D6BC; }
/* 족자 탭 */
.sh-scrolls { --w: min(15.5vw, 225px, calc((100vh - 400px) / 2.3)); gap: clamp(6px, 1.6vw, 26px) !important; } .sh-scrolls.gf-row.scrolls::before { left: 0; right: 0; } body .shop-screen button.gf-scroll { position: relative; width: var(--w); height: calc(var(--w) * 2.227); padding: 0; border: 0; background: none; box-shadow: none; color: #2B2016; container-type: inline-size; overflow: visible; transform-origin: 50% -10px; transition: filter .2s; filter: drop-shadow(0 12px 12px #000A); animation: gfSway 5s calc(var(--i) * -1.3s) infinite alternate ease-in-out; }
body .shop-screen button.gf-scroll:is(:hover, :focus-visible):not(:disabled) { filter: drop-shadow(0 0 3px #FFF0C0) drop-shadow(0 0 20px var(--ec)) brightness(1.06); outline: 0; z-index: 3; } .shop-screen.still :is(.gf-body, .gf-roll) { animation: none; } .sh-scrolls .sh-tag { position: absolute; left: 50%; bottom: 0; translate: -50% 0; margin: 0; z-index: 3; } .sh-scrolls .gf-scroll.sold > *:not(.sh-sold) { filter: grayscale(.8) brightness(.5); } .sh-scrolls .gf-scroll.sold .sh-tag { visibility: hidden; } body .shop-screen button.gf-scroll:disabled { opacity: 1; }
body .shop-screen button.sh-burn { display: flex; align-items: center; gap: 12px; margin: 14px auto 0; padding: 4px 18px 4px 14px; color: #FFE9B8; text-align: left; background: linear-gradient(#3A1610, #1C0A08); border: 0; border-radius: 8px; box-shadow: 0 0 0 1px #000, 0 0 0 2px #A0522D, inset 0 0 22px #FF6A2A44; } .sh-burn > .el-icon { width: 34px; height: 34px; } .sh-burn b { display: block; font: 700 18px/1.2 var(--serif); } .sh-burn small { font-size: 12px; color: #E0B89A; } .sh-burn .sh-tag { margin: 0; height: 44px; padding-top: 11px; min-width: 88px; font-size: 17px; } .sh-burn:hover:not(:disabled) { filter: brightness(1.25); } .sh-burn.done { opacity: .6 !important; }
.sh-foot { display: flex; align-items: center; justify-content: center; gap: 34px; margin-top: 8px; } .sh-purse { display: inline-flex; align-items: center; gap: 6px; padding: 6px 18px; font-size: 16px; color: #E4D6BC; background: #0D0807C0; box-shadow: 0 0 0 1px #000, 0 0 0 2px #6A5128; border-radius: 18px; } .sh-purse b { font: 800 22px/1 var(--serif); color: #FFD54A; } .sh-purse .yp { width: 24px; height: 24px; }
.sh-fly { position: fixed; z-index: 95; pointer-events: none; } i.sh-fly { width: 26px; height: 26px; }
@media (max-width: 1000px) and (min-height: 521px) { body .shop-screen { grid-template-columns: 1fr !important; } .sh-host { flex-direction: row; min-height: 0; justify-content: flex-start; gap: 14px; align-items: flex-end; } .sh-dali { height: 190px; margin: 0; order: -1; } .sh-counter { display: none; } .sh-bubble { margin: 0 0 24px; } .sh-bubble::after { left: -9px; bottom: 20px; border: 9px solid transparent; border-right-color: #C9A24B; border-left: 0; } .sh-scrolls { --w: min(20vw, 225px); } }
@media (max-height: 520px) { body[data-scr="shop"] .topbar { display: none; } body .shop-screen { grid-template-columns: 150px 1fr !important; gap: 8px !important; min-height: calc(100vh - 16px); } .sh-host { min-height: 0; } .sh-dali { height: 150px; margin-bottom: -26px; } .sh-bubble { padding: 14px 8px 6px; margin-bottom: 8px; } .sh-bubble p { font-size: 12px; min-height: 0; } .sh-bubble b { font-size: 16px; padding: 2px 8px; left: 8px; } body .shop-screen .sh-goods { padding: 0 4px; border-width: 14px; border-image-width: 18px; } .sh-up { height: 50px; } .sh-img { width: 38px; height: 38px; margin-bottom: 14px; } .sh-tray { width: 54px; } .sh-plank { height: 10px; } .sh-name { margin-top: 2px; font-size: 13px; } .sh-name .i-btn { scale: .6; margin: -6px; } .sh-eff { font-size: 11px; line-height: 1.15; } .sh-have { left: 2px; bottom: 1px; padding: 1px 5px; font-size: 10px; } .sh-rank { font-size: 9px; padding: 0 4px; } .sh-tag { height: 30px; padding-top: 7px; min-width: 62px; font-size: 13px; margin-top: 0; } .sh-tag .yp { width: 15px; height: 15px; } .sh-shelf { row-gap: 3px; } .sh-shelf.big .sh-up { height: 92px; } .sh-shelf.big .sh-img { width: 62px; height: 62px; margin-bottom: 30px; } .sh-shelf.big .sh-tray { width: 92px; } .sh-shelf.big .sh-name { font-size: 17px; margin-top: 4px; } .sh-shelf.big .sh-eff { font-size: 12px; } .sh-shelf.big .sh-tag { margin-top: 2px; height: 34px; } .sh-scrolls { --w: min(15vw, calc((100vh - 170px) / 2.2)); padding-top: 12px !important; } .sh-scrolls .sh-tag { height: 26px; } .sh-burn { margin-top: 3px !important; padding: 0 10px !important; min-height: 26px; } .sh-burn small { display: none; } .sh-burn b { font-size: 13px; } .sh-burn > .el-icon { width: 20px; height: 20px; } .sh-burn .sh-tag { height: 24px; padding-top: 6px; min-width: 50px; font-size: 12px; } .sh-foot { margin-top: 2px; } .sh-purse { padding: 2px 10px; font-size: 12px; } .sh-purse b { font-size: 16px; } .sh-purse .yp { width: 16px; height: 16px; } body .shop-screen .shop-tabs { margin: 0 0 4px !important; } .sh-sold { font-size: 18px; padding: 1px 8px; } }
.shop-tab .sh-tabimg { width: 30px; height: 30px; object-fit: contain; image-rendering: pixelated; vertical-align: middle; }
body .shop-screen .shop-tab { min-width: 0; } .sh-tag { -webkit-text-stroke: .3px #3A1E08; }
@media (max-height: 520px) { body .shop-screen .shop-tabs { gap: 3px; } body .shop-screen .shop-tab { font-size: 14px !important; min-height: 32px; padding: 0 !important; gap: 4px; border-width: 5px 12px; border-image-width: 5px 12px; overflow: hidden; } body .shop-screen .shop-tab .ic, .shop-tab .sh-tabimg { width: 20px; height: 20px; } body .shop-screen .sh-foot button.big { min-height: 30px; font-size: 14px; border-width: 5px 16px; border-image-width: 5px 16px; } }
.sh-tag .yp { filter: drop-shadow(0 0 1px #2B1208) drop-shadow(0 1px 1px #2B1208); }

/* ── 🗺 지도 (js/map.js) ── */
body[data-scr="map"] #app { padding-bottom: 0; max-width: 1560px; } body[data-scr="map"]::before { background: #0B0705; }
body .map-screen { position: relative; max-width: none; margin: 0; display: flex; flex-direction: column; min-height: calc(100vh - 150px); }
.mp-bg { position: fixed; inset: 0; z-index: -1; background: center / cover no-repeat; } .mp-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(#08040299 0, #0000 18%, #0000 62%, #080402CC 92%), radial-gradient(ellipse at 50% 42%, #0000 46%, #08040299 100%); }
.mp-field { position: relative; flex: 1; min-height: 300px; }
.mp-title { position: absolute; left: 8px; top: 6px; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 4px 20px 4px 14px; background: linear-gradient(#2A1710F2, #150B07F2); box-shadow: 0 0 0 1px #000, 0 0 0 3px #B98A34, 0 8px 18px #000A; border-radius: 4px; } .mp-title small { padding: 3px 10px; font: 700 16px/1.2 var(--serif); color: #FFF3DC; background: linear-gradient(#C6382B, #7A1418); border-radius: 3px; } .mp-title h2 { margin: 0; font: 400 36px/1.1 var(--disp) !important; color: #FFE9B8; } .mp-title em { font: 700 17px/1 var(--serif); font-style: normal; color: #E8C77A; }
.mp-tools { position: absolute; right: 8px; top: 6px; z-index: 3; display: flex; gap: 10px; } .mp-tools button { font-size: 15px; }
.mp-road { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; } .mp-road path { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; } .mp-road .bed { stroke: #8A6A3A55; stroke-width: 22; } .mp-road .next { stroke: #5A3A1CB0; stroke-width: 4; stroke-dasharray: 3 13; } .mp-road .past { stroke: #A8241C; stroke-width: 6; filter: drop-shadow(0 1px 1px #0008); }
.mp-node { position: absolute; width: 0; height: 0; z-index: 1; animation: mpIn .4s calc(var(--i) * .05s) both; } @keyframes mpIn { from { opacity: 0; transform: translateY(14px); } } .mp-node.now { z-index: 4; }
.mp-base { position: absolute; left: -44px; top: -14px; width: 88px; height: 28px; border-radius: 50%; background: radial-gradient(ellipse, #3A2412B8, #3A241200 70%); } .mp-node.now .mp-base { left: -86px; top: -28px; width: 172px; height: 56px; background: radial-gradient(ellipse, #FFE08A, #FF9A3A88 45%, transparent 70%); animation: rdMore 1s infinite alternate; }
.mp-art { position: absolute; left: 0; bottom: -6px; translate: -50% 0; display: block; } .mp-art img { height: clamp(58px, 10.5vh, 104px); width: auto; image-rendering: pixelated; filter: drop-shadow(0 4px 4px #0009); } canvas.mp-foe { height: clamp(60px, 11vh, 112px) !important; width: auto !important; display: block; filter: drop-shadow(0 4px 4px #0009); }
.mp-node.k-elite canvas.mp-foe { height: clamp(76px, 14.5vh, 148px) !important; } .mp-node.k-boss canvas.mp-foe { height: clamp(86px, 17vh, 176px) !important; }
.mp-node.next canvas.mp-foe { filter: brightness(0) opacity(.62) drop-shadow(0 0 1px #000); } .mp-node.next .mp-art img { filter: sepia(.5) brightness(.85) drop-shadow(0 4px 4px #0009); } .mp-node.past .mp-art { opacity: .5; filter: grayscale(.8); } .mp-stamp { position: absolute; left: -26px; top: -64px; width: 58px; height: 58px; rotate: -14deg; opacity: .92; mix-blend-mode: multiply; } .mp-badge { position: absolute; left: 22px; top: -30px; width: 40px; height: 40px; filter: drop-shadow(0 2px 3px #000A); }
.mp-node > b { position: absolute; left: 0; top: 12px; translate: -50% 0; padding: 3px 10px; white-space: nowrap; font: 700 15px/1.25 var(--serif); color: #3A2412; background: #F6EBCFE6; border-radius: 10px; box-shadow: 0 0 0 1px #8A6A3A, 0 2px 4px #0006; } .mp-node.now > b { top: 22px; font-size: 18px; color: #FFF3DC; background: linear-gradient(#C6382B, #7A1418); box-shadow: 0 0 0 1px #2B0A08, 0 0 0 2px #FFD54A, 0 4px 10px #000A; } .mp-node.next > b { opacity: .85; } .mp-node.k-boss.next > b { color: #8A1418; }
.mp-node.now .mp-art { left: 34px; } .mp-hero { position: absolute; left: -48px; bottom: -4px; translate: -50% 0; } canvas.mp-me { height: clamp(60px, 11vh, 112px) !important; width: auto !important; display: block; filter: drop-shadow(0 0 2px #FFE9A8) drop-shadow(0 4px 4px #0009); animation: vcBob 1.1s infinite alternate ease-in-out; }
.mp-panel { position: relative; width: min(100%, 1060px); margin: 4px auto 0; } .mp-fork { display: flex !important; align-items: center; justify-content: center; gap: 10px; width: fit-content; margin: 0 auto 8px !important; padding: 5px 20px; font: 700 18px/1.3 var(--serif); color: #FFE9B8; background: #150B07E0; box-shadow: 0 0 0 1px #000, 0 0 0 2px #8A6A2E; border-radius: 16px; } .mp-fork img { width: 34px; height: 34px; } .mp-fork.dim { position: absolute; right: 8px; top: -38px; font-size: 14px; padding: 3px 12px; color: #CDBB98; }
.mp-cards { display: flex; gap: 16px; justify-content: center; } body .mp-card { flex: 1; min-width: 0; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 4px 10px 4px 4px; text-align: left; background: linear-gradient(#1B100BF2, #0E0705F7); border: 22px solid transparent; border-image: url(assets/ui/panel.webp?v=1) 98 fill / 28px / 4px round; }
.mp-pic { position: relative; width: clamp(150px, 21vw, 250px); height: clamp(104px, 16vh, 150px); display: grid; place-items: end center; overflow: hidden; background: linear-gradient(#0000, #0008), var(--bg) center 70% / cover no-repeat; box-shadow: 0 0 0 1px #000, 0 0 0 3px #B98A34; border-radius: 3px; } .mp-pic.plain { background: radial-gradient(ellipse at 50% 70%, #8A5A22, #2A1710 75%); } .mp-pic canvas.mp-foe { height: 92% !important; } .mp-pic img { height: 88%; image-rendering: pixelated; }
.mp-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: #CDBB98; } .mp-tag { padding: 2px 12px; font: 700 14px/1.4 var(--serif); color: #FFF3DC; background: #4A6E8A; border-radius: 10px; } .k-elite .mp-tag { background: #A0522D; } .k-boss .mp-tag { background: linear-gradient(#C6382B, #7A1418); } .k-field .mp-tag { background: #8A6A2E; } :is(.k-shop, .k-rest, .k-treasure) .mp-tag { background: #3E7A4A; }
.mp-info h3 { margin: 4px 0 2px; display: flex; align-items: center; gap: 8px; font: 400 clamp(30px, 4.4vh, 44px)/1.05 var(--disp) !important; color: #FFE9B8; text-shadow: 0 2px 0 #1A0C06; } .map-screen .mp-info p { margin: 0 0 6px; font: 700 16px/1.4 var(--serif); color: #E4D6BC; word-break: keep-all; } .mp-info .req-chips { margin: 0; justify-content: flex-start; }
.mp-panel.fork .mp-card { grid-template-columns: auto 1fr; gap: 6px 14px; } .mp-panel.fork .mp-card > button { grid-column: 1 / -1; justify-self: center; } .mp-panel.fork .mp-pic { width: clamp(110px, 12vw, 170px); height: clamp(84px, 12vh, 116px); } .mp-panel.fork .mp-info h3 { font-size: clamp(24px, 3.4vh, 34px) !important; } .mp-panel.fork .mp-info p { font-size: 14px; }
/* 주막 · 막을 넘음 · 쓰러짐 */
body[data-scr="inn"]::before { background-image: radial-gradient(ellipse at 50% 46%, #0000 36%, #060302B8 100%), url(assets/ui/map/bg_inn.webp?v=1); } .inn-opt small { position: relative; font-size: 14px; color: #CDBB98; } .inn-opt img { object-fit: contain; }
body[data-scr="clear"]::before { background-image: radial-gradient(ellipse at 50% 46%, #0000 30%, #060302B8 100%), url(assets/ui/bg_reward.webp?v=1); background-position: center, center bottom; } body[data-scr="end"]::before { background-image: radial-gradient(ellipse at 50% 40%, #0000 20%, #05040ACC 100%), url(assets/ui/bg_saju.webp?v=1); }
body .act-clear { min-height: calc(100vh - 60px); margin: 0 auto; max-width: 1060px; } .act-clear img.ac-hero { width: auto; height: min(72vh, 620px); box-shadow: none; image-rendering: pixelated; filter: drop-shadow(0 0 2px #FFE9A8) drop-shadow(0 0 26px #FF9A3A99) drop-shadow(0 14px 10px #0009); animation: vcHero .7s cubic-bezier(.2,1.5,.4,1) both; } .act-clear > div { padding: 12px 22px 16px; background: linear-gradient(#1B100BEE, #0E0705F2); border: 26px solid transparent; border-image: url(assets/ui/panel.webp?v=1) 98 fill / 32px / 4px round; } body:not(.dream) .act-clear h1 { font-size: clamp(44px, 7vh, 68px) !important; } .act-clear ul, .act-clear p { font: 700 17px/1.8 var(--serif); color: #E4D6BC; } .act-clear small { color: #E8C77A; font-size: 16px; }
body .end-screen { max-width: 1000px; min-height: calc(100vh - 60px); margin: 0 auto !important; } body .end-screen .end-text { padding: 10px 22px 14px; background: linear-gradient(#14101AEE, #0A0810F2); border: 26px solid transparent; border-image: url(assets/ui/panel.webp?v=1) 98 fill / 32px / 4px round; } .end-screen h2 { font: 400 clamp(32px, 5vh, 50px)/1.1 var(--disp) !important; color: #FFE9B8; }
@media (max-height: 520px) { body[data-scr="map"] .topbar { display: none; } body .map-screen { min-height: calc(100vh - 16px); } .mp-field { min-height: 190px; } .mp-title { padding: 1px 10px 1px 6px; gap: 6px; } .mp-title h2 { font-size: 22px !important; } .mp-title small, .mp-title em { font-size: 12px; } .mp-tools button { font-size: 12px; min-height: 28px; padding: 2px 8px; } .mp-node > b { font-size: 11px; padding: 1px 6px; top: 6px; } .mp-node.now > b { font-size: 13px; top: 10px; } .mp-art img, canvas.mp-foe, canvas.mp-me { height: 46px !important; } .mp-node.k-elite canvas.mp-foe { height: 58px !important; } .mp-node.k-boss canvas.mp-foe { height: 66px !important; } .mp-stamp { width: 34px; height: 34px; left: -16px; top: -40px; } .mp-badge { width: 24px; height: 24px; } .mp-node.now .mp-art { left: 24px; } .mp-hero { left: -28px; } .mp-node.now .mp-base { left: -56px; width: 112px; top: -18px; height: 36px; } body .mp-card { border-width: 14px; border-image-width: 18px; padding: 0 4px; gap: 10px; } .mp-pic { width: 96px; height: 62px; } .mp-pic canvas.mp-foe { height: 58px !important; } .mp-info h3 { font-size: 22px !important; margin: 0; } .map-screen .mp-info p { font-size: 12px; margin: 0; } .mp-tags { font-size: 11px; } .mp-tag { font-size: 11px; } .mp-fork { font-size: 13px; padding: 1px 12px; margin-bottom: 3px !important; } .mp-fork img { width: 22px; height: 22px; } .mp-panel.fork .mp-pic { width: 74px; height: 50px; } .mp-panel.fork .mp-info p, .mp-panel.fork .req-chips { display: none; } .mp-panel.fork .mp-card { grid-template-columns: auto 1fr auto; } .mp-panel.fork .mp-card > button { grid-column: auto; } .mp-panel.fork .mp-info h3 { font-size: 18px !important; } .mp-fork.dim { top: -26px; font-size: 11px; } body[data-scr="inn"] .topbar { display: none; } .act-clear img.ac-hero { width: auto !important; height: 70vh; } }
.mp-node.now.k-elite .mp-art, .mp-node.now.k-boss .mp-art { left: 58px; } .mp-node.now.k-elite .mp-hero, .mp-node.now.k-boss .mp-hero { left: -72px; }
body .mp-pic canvas.mp-foe, body .mp-pic img { width: 94% !important; height: 94% !important; min-height: 0; object-fit: contain; object-position: bottom; } .mp-pic > * { position: absolute; left: 3%; bottom: 0; }
body .end-screen .end-scene { box-shadow: 0 0 0 2px #17110F, 0 0 0 4px var(--brass), 0 0 0 6px #17110F, 0 14px 30px #000A; }

/* ── 족자 카드 (cardEl): 기운마다 다른 비단 족자 + 민화 ── */
body .card:not(.back) { --cw: 118px; width: var(--cw); height: calc(var(--cw) * 1.453); margin: 4px; padding: calc(var(--cw) * .225) calc(var(--cw) * .13) calc(var(--cw) * .2); gap: 0; justify-content: space-between; background-color: transparent !important; background-position: center; background-size: 100% 100%; background-repeat: no-repeat; box-shadow: none; filter: drop-shadow(0 5px 5px #000A); container-type: inline-size; color: #2B1708; transition: transform .16s, filter .16s; }
body .card:not(.back)::before, body .card:not(.back)::after { display: none; }
body .card.small:not(.back) { --cw: 88px; } body .deck-list .card.small:not(.back) { --cw: 104px; }
.card .c-art { width: 60cqw; height: 60cqw; margin-top: 15cqw; min-height: 0; flex: 0 1 auto; object-fit: contain; mix-blend-mode: multiply; pointer-events: none; }
body .card .c-tag { display: none; } body .card .c-tag.turned { display: block; z-index: 3; left: 50%; top: 34%; translate: -50% 0; padding: 1px 8px; font: 800 13cqw/1.2 var(--serif); color: #FFF3DC; background: #2B1708D9; border-radius: 4px; } body .card .c-ko { display: none; }
body .card:not(.back) .c-icon { position: absolute; left: 4%; top: 9%; width: 41cqw; height: 41cqw; margin: 0; padding: 2.5cqw; background: #FFF8E6; border-radius: 50%; box-shadow: 0 0 0 max(1px, 1.2cqw) #6A4520, 0 0 0 max(2px, 2.4cqw) var(--el), 0 2px 4px 2px #0008; filter: none; z-index: 2; } .card:not(:has(.c-art)) .c-icon { position: static !important; width: 50cqw !important; height: 50cqw !important; background: none !important; box-shadow: none !important; }
body .card:not(.back) .c-val { display: inline-flex; align-items: baseline; gap: 2cqw; font: 800 21cqw/1 var(--serif); color: #B0262E; } body .card .c-val i { font: 700 11cqw/1 var(--serif); font-style: normal; color: #5A4526; } body .card:not(.back) .c-val em { font: 700 max(9px, 9.5cqw)/1 'Galmuri11', sans-serif; font-style: normal; color: #2F6A3C; margin: 0; } body .card .c-val.grown { color: #2F5FA8; }
body .card:not(.back) .c-name { order: 1; font: 700 max(11px, 13.5cqw)/1.1 var(--serif); color: #2B1708; -webkit-line-clamp: 1; } body .card .c-val { order: 2; } body .card .c-desc { display: none !important; }
body .card:not(.back) .c-yong { z-index: 2; right: 4%; top: 13%; padding: 1.5cqw 3cqw; font: 800 max(9px, 10cqw)/1.15 var(--serif); color: #FFF3DC; background: linear-gradient(#C6382B, #7A1418); border-radius: 3px; box-shadow: 0 0 0 1px #2B0A08, 0 0 0 2px #FFD54A; rotate: 6deg; } body .card .c-grown { z-index: 2; left: auto; right: 12%; bottom: 14%; font-size: max(9px, 9cqw); }
body .card:not(.back) .c-i { position: absolute; left: 8%; right: auto; bottom: 10%; z-index: 3; } body .card.yong { filter: drop-shadow(0 0 6px var(--el)) drop-shadow(0 0 3px #FFD54A) drop-shadow(0 5px 5px #000A); }
body button.card:not(.back):hover:not(:disabled), body button.card:not(.back):focus-visible { transform: translateY(-9px); filter: drop-shadow(0 0 2px #FFF0C0) drop-shadow(0 0 14px var(--el)) drop-shadow(0 8px 8px #000A); outline: 0; z-index: 5; } body .card.picked:not(.back) { transform: translateY(-14px); opacity: .42; filter: grayscale(.5); } body .card.sealed { filter: grayscale(.9) brightness(.55); }
body .card.back { --cw: 118px; width: var(--cw); height: calc(var(--cw) * 1.453); margin: 4px; border-radius: 6px; background: radial-gradient(circle at 50% 45%, #5A4A7A, #1B1430 70%); box-shadow: 0 0 0 2px #C9A24B, inset 0 0 0 4px #0A0614, inset 0 0 30px #9FB8FF55; } body .card.back.small { --cw: 88px; }
/* ── 족자 대결 (renderBattle) ── */
.bt-bg { position: fixed; inset: -30px; z-index: -1; background: center 60% / cover no-repeat; filter: blur(12px) brightness(.42) saturate(1.1); } .bt-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(#0000 30%, #060302D9 78%); } body.dream .bt-bg { display: none; }
body[data-scr="battle"]:not(.dream)::before { background: #0B0705; }
body:not(.dream) .battle .rules > span { font: 700 14px/1.3 var(--serif); background: #150B07E6; box-shadow: 0 0 0 1px #000, 0 0 0 2px #6A5128; padding: 3px 12px; color: #F1E4C8; } body:not(.dream) .rules .r-gen { box-shadow: 0 0 0 1px #000, 0 0 0 2px #5FB070 !important; } body:not(.dream) .rules .r-ctrl { box-shadow: 0 0 0 1px #000, 0 0 0 2px #D0605A !important; } body:not(.dream) .rules .r-same { box-shadow: 0 0 0 1px #000, 0 0 0 2px #6FA8D8 !important; } body:not(.dream) .rules .r-cycle { box-shadow: 0 0 0 1px #000, 0 0 0 2px #E8C77A !important; }
body:not(.dream) .battle .stage { border-radius: 4px; background-position: center 72%; } body:not(.dream) .battle .stage-name { left: 14px; top: 10px; padding: 4px 14px; font: 700 15px/1.3 var(--serif); color: #FFE9B8; background: #150B07D9; box-shadow: 0 0 0 1px #000, 0 0 0 2px #8A6A2E; border-radius: 3px; text-shadow: none; }
body:not(.dream) .battle .stage .heal-bag { top: 50px; }
body:not(.dream) .battle .center-info { background: radial-gradient(ellipse, #0A0604D9 40%, #0A060400 72%) !important; padding: 6px 22px 12px; } body:not(.dream) .battle .turn { font: 400 30px/1 var(--disp); color: #FFE9B8; text-shadow: 0 2px 0 #000; } .battle .ohaeng-diagram { filter: drop-shadow(0 0 10px #FFC86A44); }
body:not(.dream) .fighter .bubble { padding: 9px 16px; font: 700 15px/1.4 var(--serif); color: #2B2016; background: linear-gradient(90deg, #E4D2A8, #FBF3DC 10%, #FBF3DC 90%, #E4D2A8); border-radius: 5px; box-shadow: 0 0 0 2px #6A4A22, 0 0 0 4px #1A0F08, 0 0 0 5px #C9A24B; word-break: keep-all; }
body:not(.dream) .fighter .intent { padding: 5px 14px; font: 700 15px/1.3 var(--serif); color: #FFE0D0; background: linear-gradient(#5A1410, #2A0806); border-radius: 4px; box-shadow: 0 0 0 1px #000, 0 0 0 2px #E0503C, 0 0 14px #FF5A3A55; }
body:not(.dream) .fighter .bar { width: 190px; height: 15px; background: #0B0608; border-radius: 8px; overflow: hidden; box-shadow: 0 0 0 1px #000, 0 0 0 3px #B98A34, 0 0 0 4px #000; } body:not(.dream) .fighter .bar i { border-radius: 8px; background: linear-gradient(#FF8A7A, #C8323C 55%, #8A1418); } body:not(.dream) .fighter .bar.mp-bar { height: 9px; margin-top: 0; } body:not(.dream) .fighter .bar.mp-bar i { background: linear-gradient(#8FC4FF, #3A7AD0); } body:not(.dream) .fighter .enemy-bar i { background: linear-gradient(#E0A0FF, #8A4AC8 55%, #4A1E7A); } body:not(.dream) .fighter .stat { padding: 2px 14px; font: 700 16px/1.35 var(--serif); color: #FFF3DC; background: #0A0604B8; border-radius: 10px; text-shadow: 0 1px 2px #000; }
body:not(.dream) .battle .line { min-height: 168px; padding: 12px 120px 16px 26px; gap: 6px; background: url(assets/ui/duel/mat.webp?v=1) center / 100% 100% no-repeat, #0E1426; box-shadow: none; border-radius: 4px; filter: drop-shadow(0 10px 10px #000A); } body:not(.dream) .battle .slot { width: 96px; height: 132px; min-height: 0; background: #060A1880; border-radius: 6px; box-shadow: inset 0 0 0 2px #C9A24B55, inset 0 0 18px #000A; } body:not(.dream) .battle .slot:has(.card) { background: none; box-shadow: none; } body:not(.dream) .battle .slot.lit { box-shadow: 0 0 0 3px #FFE08A, 0 0 26px #FFB84A; } body:not(.dream) .battle .slot-empty { font: 400 42px/1 var(--disp); color: #C9A24B99; } body:not(.dream) .slot-q { bottom: -12px; padding: 0 8px; font: 700 12px/1.5 var(--serif); color: #FFE9B8; background: #150B07E6; border-radius: 8px; }
body:not(.dream) .battle .link { width: 52px; font: 700 13px/1.2 var(--serif); text-shadow: 0 1px 3px #000; }
body:not(.dream) .battle .wslot { background: linear-gradient(#2A1710, #120906); box-shadow: 0 0 0 1px #000, 0 0 0 2px #C9A24B, 0 6px 10px #000A; border-radius: 6px; width: 112px; min-height: 128px; } body:not(.dream) .battle .wslot b { font: 700 14px/1.2 var(--serif); color: #FFE9B8; } .battle .wslot img { width: 50px; height: 50px; }
body:not(.dream) .battle .preview { align-items: center; min-height: 46px; margin: 0; padding: 4px 24px; font: 700 20px/1.2 var(--serif); color: #F1E4C8; } body:not(.dream) .battle .preview b { font: 400 40px/1 var(--disp); color: #FFD54A; text-shadow: 0 2px 0 #4A1E04, 0 0 18px #FF9A3A88; } body:not(.dream) .battle .preview.empty { font: 700 17px/1.2 var(--serif); color: #E8D6B0; }
body:not(.dream) .battle button.special { min-width: 0; width: 100%; padding: 9px 12px; font: 700 16px/1.25 var(--serif); border-radius: 6px; } body:not(.dream) .battle button.special-attack { background: linear-gradient(#A8323A, #4E1218); } body:not(.dream) .battle button.special-defense { background: linear-gradient(#34629E, #142844); } body:not(.dream) .battle .special-joint { background: linear-gradient(#8A5A1E, #3A2208) !important; } body:not(.dream) .battle .special-ult { background: linear-gradient(#5A3A9A, #1E1040) !important; } body:not(.dream) .battle .special .sp-gauge { height: 8px; border-radius: 4px; overflow: hidden; }
body:not(.dream) .battle .pile { font: 700 14px/1.4 var(--serif); color: #E4D6BC; }
@media (min-height: 521px) and (min-width: 1000px) {
  body[data-scr="battle"]:not(.dream) #app { max-width: 1560px; padding-bottom: 8px; }
  body:not(.dream) .battle { display: grid; grid-template-columns: minmax(150px, 196px) minmax(0, 1fr) minmax(130px, 176px); grid-template-rows: minmax(300px, 1fr) auto auto auto auto; gap: 8px 14px; min-height: calc(100vh - 92px); }
  body:not(.dream) .battle > .stage { grid-column: 1 / -1; grid-row: 1; min-height: 300px; max-height: 480px; align-self: stretch; grid-template-columns: 1fr 250px 1fr; } body:not(.dream) .battle > .stage .center-info { align-self: start; }
  body:not(.dream) .battle > .rules { grid-column: 1 / -1; grid-row: 1; align-self: end; justify-self: center; z-index: 4; margin-bottom: 10px; max-width: 46%; }
  body:not(.dream) .battle > .hex-banner { grid-column: 1 / -1; grid-row: 2; margin: 0; } body:not(.dream) .battle > .line { grid-column: 1 / -1; grid-row: 3; width: min(100%, 1120px); justify-self: center; box-sizing: border-box; } body:not(.dream) .battle > .preview { grid-column: 1 / -1; grid-row: 4; }
  body:not(.dream) .battle > .hand { grid-column: 2; grid-row: 5; padding: 14px 10px 16px; gap: 2px; align-self: end; align-content: center; min-height: 190px; } body:not(.dream) .battle > .actions { display: contents; }
  body:not(.dream) .battle .act-left { grid-column: 1; grid-row: 5; display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 7px; } body:not(.dream) .battle .actions > .big { grid-column: 3; grid-row: 5; align-self: center; width: 100%; min-height: 92px; padding: 0 4px; font-size: 25px; } body:not(.dream) .battle .actions > .pile { grid-column: 3; grid-row: 5; align-self: end; text-align: center; padding-bottom: 14px; }
  body:not(.dream) .battle::after { content: ''; grid-column: 1 / -1; grid-row: 5; z-index: -1; margin: -6px 0 0; border-radius: 6px 6px 0 0; background: linear-gradient(#0000, #0006), url(assets/ui/duel/table.webp?v=1) center / cover; box-shadow: 0 0 0 1px #000, 0 -10px 30px #000A; }
  body:not(.dream) .battle .act-left { padding-left: 12px; } body:not(.dream) .battle .actions > .big { margin-right: 12px; width: calc(100% - 12px); }
  body:not(.dream) .battle > .hand .card { --cw: clamp(92px, 8.1vw, 124px); }
}
@media (min-width: 1000px) and (max-height: 800px) and (min-height: 521px) { body:not(.dream) .battle > .hand .card { --cw: clamp(86px, 7vw, 104px); } body:not(.dream) .battle .line { min-height: 146px; padding-top: 6px; padding-bottom: 12px; } }
@media (max-height: 520px) { body:not(.dream) .battle .line { padding: 10px 100px 14px 20px; } body:not(.dream) .fighter .bar { width: 160px; } body:not(.dream) .battle button.special { width: auto; padding: 4px 8px; font-size: 13px; } body:not(.dream) .battle .preview { min-height: 0; font-size: 14px; padding: 0 6px; } body:not(.dream) .battle .preview b { font-size: 24px; } body:not(.dream) .battle .rules > span { font-size: 11px; } }
/* 낮은 창(1280×720 등): 손패가 두 줄로 넘어가 펼치기 단추가 밀려나지 않게 한 줄로 */
@media (min-width: 1000px) and (max-height: 800px) and (min-height: 521px) {
  body[data-scr="battle"]:not(.dream) #app { padding-bottom: 0; } body:not(.dream) .battle { gap: 4px 14px; min-height: calc(100vh - 84px); } body:not(.dream) .battle .line { min-height: 138px; padding-top: 4px; padding-bottom: 8px; } body:not(.dream) .battle > .preview { min-height: 24px; padding: 0 24px; } body:not(.dream) .battle .act-left { gap: 3px; }
  body:not(.dream) .battle > .hand { flex-wrap: nowrap; min-height: 0; padding: 6px 6px 8px; } body:not(.dream) .battle > .hand.compact .card:not(.small) { flex: 0 1 auto; width: clamp(86px, 7.6vw, 104px); min-width: 0; height: auto; aspect-ratio: 1 / 1.42; margin: 4px 3px; }
}
/* ── 이야기 대화창 (js/story.js) ── */
body .story { padding: 0 24px 26px; background: radial-gradient(ellipse at 50% 60%, #1A0E0ACC, #050302F0); } body .story.has-cg { background: #000; } .story-cg::after { background: linear-gradient(#0000 40%, #000000D9 100%) !important; }
.st-fig { position: absolute; bottom: 0; z-index: 1; height: min(74vh, 760px); width: min(42vw, 620px); display: flex; align-items: flex-end; justify-content: center; transition: filter .3s, transform .3s, opacity .3s; } .st-fig.l { left: max(0px, calc(50% - 760px)); } .st-fig.r { right: max(0px, calc(50% - 760px)); } .st-fig > * { height: 100%; width: auto; max-width: 100%; object-fit: contain; object-position: bottom; image-rendering: pixelated; filter: drop-shadow(0 0 3px #FFE9A8AA) drop-shadow(0 14px 12px #000C); animation: stFig .4s cubic-bezier(.2,1.2,.4,1); } @keyframes stFig { from { opacity: 0; transform: translateY(26px); } } .st-fig.r > img.mirror { scale: -1 1; } .st-fig.small { height: 46vh; } .st-fig canvas { height: min(58vh, 560px); } .st-fig.off { filter: brightness(.42) saturate(.6); transform: scale(.95); transform-origin: 50% 100%; } .st-fig.gone { opacity: 0; }
body .story-box { width: min(1120px, 100%); min-height: 176px; box-sizing: border-box; padding: 30px 46px 26px; color: #2B2016; background: linear-gradient(90deg, #D9C396, #F8EED2 5%, #FBF3DC 50%, #F8EED2 95%, #D9C396); border-radius: 6px; box-shadow: 0 0 0 2px #6A4A22, 0 0 0 6px #1A0F08, 0 0 0 8px #C9A24B, 0 18px 50px #000; z-index: 3; } body .story-box::before, body .story-box::after { content: ''; position: absolute; top: -10px; bottom: -10px; width: 18px; border-radius: 9px; background: linear-gradient(90deg, #3A2010, #8C5A30 45%, #2A160A); box-shadow: 0 0 0 1px #160B05, 0 -5px 0 -1px #E9C877, 0 5px 0 -1px #E9C877; } body .story-box::before { left: -14px; } body .story-box::after { right: -14px; }
body .story-who { top: -24px; left: 40px; padding: 6px 26px; font: 400 32px/1.1 var(--disp); color: #FFE9B8; background: linear-gradient(#7A2A22, #3E100C); border-radius: 4px; box-shadow: 0 0 0 1px #1A0F08, 0 0 0 3px #C9A24B, 0 6px 14px #000A; z-index: 2; } .story.say-r .story-who { left: auto; right: 40px; background: linear-gradient(#3A2A5A, #17102E); }
body .story-text { margin: 0; font: 700 clamp(19px, 2.7vh, 27px)/1.6 var(--serif); color: #2B2016; word-break: keep-all; } body .story.narration .story-text { font-style: normal; color: #4A3416; padding: 16px 20px; } body .story.narration .story-box { padding: 26px 46px; } body .story-next { right: 30px; bottom: 14px; color: #B0262E; font-size: 22px; } body .story-skip { z-index: 4; }
@media (max-height: 520px) { body .story { padding: 0 18px 12px; } body .story-box { min-height: 92px; padding: 18px 26px 12px; } body .story-who { font-size: 20px; padding: 3px 14px; top: -16px; left: 24px; } body .story-text { font-size: 16px; line-height: 1.45; } body .story.narration .story-text { padding: 4px 10px; } body .story.narration .story-box { padding: 14px 26px; } }
body:not(.dream) .battle button.special { position: relative; padding: 6px 10px 7px; gap: 4px; font-size: 15px; } body:not(.dream) .battle button.special .sp-hint { position: absolute; right: 9px; top: 7px; font: 700 12px/1.3 var(--serif); opacity: .95; } body:not(.dream) .battle .special .sp-gauge { height: 6px; } body:not(.dream) .battle .special .sp-label { white-space: nowrap; overflow: hidden; } body:not(.dream) .battle .actions > .big { white-space: nowrap; }
@media (min-height: 521px) and (min-width: 1000px) {
  body:not(.dream) .battle { grid-template-rows: minmax(270px, 1fr) auto auto auto auto; gap: 6px 12px; min-height: calc(100vh - 88px); } body:not(.dream) .battle > .stage { min-height: 270px; } body:not(.dream) .battle .act-left { gap: 5px; padding: 8px 0 8px 12px; } body:not(.dream) .battle .act-left > .ghost { min-height: 34px; padding: 2px 8px; }
  body:not(.dream) .battle .actions > .big { font-size: 23px; min-height: 84px; margin-bottom: 18px; } body:not(.dream) .battle .actions > .pile { align-self: start; padding: 12px 0 0; } body:not(.dream) .battle > .hand { min-height: 0; padding: 10px 8px 8px; }
  body:not(.dream) .battle .line { min-height: 152px; padding-top: 8px; padding-bottom: 14px; } body:not(.dream) .battle .preview { min-height: 40px; } body:not(.dream) .battle .preview b { font-size: 34px; }
  body:not(.dream) .battle .incense { transform: scale(.86); transform-origin: 100% 100%; }
}
body:not(.dream) .battle .line { background: none; border: 0 solid transparent; border-width: 18px 62px; border-image: url(assets/ui/duel/mat.webp?v=1) 62 200 62 200 fill / 20px 70px / 4px 10px stretch; padding: 4px 92px 10px 4px; box-sizing: border-box; border-radius: 0; } body:not(.dream) .battle .incense { right: 0; bottom: -6px; }
@media (min-height: 521px) and (min-width: 1000px) { body:not(.dream) .battle { min-height: calc(100vh - 92px); } body:not(.dream) .battle .line { padding-top: 2px; padding-bottom: 8px; min-height: 160px; } body:not(.dream) .battle .actions > .big { margin-bottom: 34px; } body:not(.dream) .battle .actions > .pile { padding-top: 8px; } }
@media (max-height: 520px) { body:not(.dream) .battle .line { border-width: 12px 40px; border-image-width: 14px 48px; padding: 2px 84px 8px 2px; } }
body:not(.dream) .battle .fighter.enemy.king { margin-top: -44px; }
@media (min-height: 521px) and (min-width: 1000px) and (max-height: 830px) {
  body:not(.dream) .battle { grid-template-rows: minmax(236px, 1fr) auto auto auto auto; gap: 3px 10px; min-height: calc(100vh - 84px); } body:not(.dream) .battle > .stage { min-height: 236px; padding-top: 4px; padding-bottom: 4px; } body:not(.dream) .battle .center-info { padding: 0 16px 6px; } .battle .ohaeng-diagram { width: 140px; height: 140px; } body:not(.dream) .battle .turn { font-size: 22px; } body:not(.dream) .battle > .rules { margin-bottom: 4px; } body:not(.dream) .battle .rules > span { font-size: 12px; padding: 1px 8px; }
  body:not(.dream) .battle .line { min-height: 0; border-width: 13px 56px; border-image-width: 15px 62px; padding: 0 84px 4px 2px; } body:not(.dream) .battle .slot { width: 80px; height: 112px; } body:not(.dream) .battle .card.small { --cw: 74px; margin: 1px; } body:not(.dream) .battle .wslot { min-height: 108px; padding: 2px 4px; } .battle .wslot img { width: 38px; height: 38px; } body:not(.dream) .battle .incense { transform: scale(.7); } body:not(.dream) .slot-q { bottom: -8px; font-size: 11px; line-height: 1.3; }
  body:not(.dream) .battle .preview { min-height: 30px; padding: 0 20px; font-size: 17px; } body:not(.dream) .battle .preview b { font-size: 27px; } body:not(.dream) .battle > .hand { padding: 4px 8px 4px; } body:not(.dream) .battle > .hand .card { --cw: clamp(80px, 6.8vw, 96px); } body:not(.dream) .battle button.special { padding: 3px 9px 4px; font-size: 13.5px; gap: 2px; } body:not(.dream) .battle button.special .sp-hint { top: 4px; } body:not(.dream) .battle .act-left { gap: 4px; padding: 4px 0 4px 12px; } body:not(.dream) .battle .act-left > .ghost { min-height: 28px; } body:not(.dream) .battle .actions > .big { min-height: 64px; } body:not(.dream) .fighter .bubble { padding: 4px 12px; font-size: 13px; } body:not(.dream) .fighter .intent { padding: 2px 10px; font-size: 13px; } body:not(.dream) .fighter .stat { font-size: 13px; } body:not(.dream) .battle .fighter { gap: 3px; }
}
body[data-scr="battle"]:not(.dream) .topbar .path { display: none; } body:not(.dream) .fighter.enemy.king > .bubble { width: 250px; right: 66%; top: 2px; } body:not(.dream) .fighter.enemy.king > .intent { top: 76px; right: 64%; }
@media (min-height: 521px) and (max-height: 830px) { body:not(.dream) .battle .fighter.enemy.king { zoom: .82; margin-top: -30px; } }
@media (max-height: 520px) { body:not(.dream) .battle .fighter.enemy.king { zoom: .7; margin-top: -20px; } body:not(.dream) .fighter.enemy.king > .bubble { display: none; } body:not(.dream) .fighter.enemy.king > .intent { top: 0; right: 30%; } }
@media (min-height: 521px) and (max-width: 999px) { body:not(.dream) .battle .line { border-width: 13px 22px; border-image-width: 15px 34px; padding: 2px 64px 8px 0; gap: 2px; } body:not(.dream) .battle .link { width: 20px; font-size: 11px; } body:not(.dream) .battle .slot { width: 80px; min-width: 60px; flex: 0 1 80px; height: 116px; } body:not(.dream) .battle .card.small { --cw: 74px; margin: 0; } body:not(.dream) .battle .wslot { width: 74px; min-width: 62px; } body:not(.dream) .battle .wslot small { display: none; } body:not(.dream) .battle > .stage { grid-template-columns: 1fr 170px 1fr; min-height: 330px; } body:not(.dream) .battle .center-info { grid-column: auto; order: 0; padding: 4px; align-self: start; } .battle .ohaeng-diagram { width: 150px; height: 150px; } body:not(.dream) .fighter .bar { width: 150px; } body:not(.dream) .battle > .hand .card { --cw: clamp(70px, 12.4vw, 104px); margin: 2px; } body:not(.dream) .battle > .hand { gap: 0; } body:not(.dream) .battle .act-left { display: flex; flex-wrap: wrap; gap: 6px; } body:not(.dream) .battle button.special { width: auto; flex: 1 1 130px; padding-right: 44px; } body:not(.dream) .battle .actions { padding-bottom: 50px; } body:not(.dream) .fighter.enemy.king { zoom: .86; } }
@media (min-height: 831px) { body:not(.dream) .battle .fighter.enemy.king { zoom: .92; margin-top: -10px; } }
body:not(.dream) .fighter.enemy.king > .bubble { top: 10px; } body:not(.dream) .fighter.enemy.king > .intent { top: 84px; }
.st-fig:has(canvas), .st-fig.small { bottom: 186px; } @media (max-height: 520px) { .st-fig:has(canvas), .st-fig.small { bottom: 96px; } .st-fig.small { height: 42vh; } .st-fig canvas { height: 56vh; } }
body:not(.dream) .battle .wslot small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.25; } body:not(.dream) .battle .wslot { max-height: 142px; overflow: hidden; width: 122px; }
@media (min-height: 521px) and (min-width: 1000px) {
  body:not(.dream) .battle { grid-template-columns: minmax(212px, 256px) minmax(0, 1fr) minmax(130px, 176px); } body:not(.dream) .battle:has(.king) { grid-template-rows: minmax(332px, 1fr) auto auto auto auto; }
  body:not(.dream) .battle .act-left { display: grid; grid-template-columns: 1fr 1fr; align-content: center; gap: 7px; } body:not(.dream) .battle .act-left > .ghost { grid-column: 1 / -1; } body:not(.dream) .battle button.special { padding: 8px 8px 9px; min-height: 58px; } body:not(.dream) .battle .special .sp-label { font-size: 14px; } body:not(.dream) .battle .special .sp-label b { display: none; } body:not(.dream) .battle button.special .sp-hint { position: static; align-self: flex-end; order: 2; margin-top: -2px; } body:not(.dream) .battle .special .sp-gauge { order: 1; }
}
@media (min-height: 521px) and (min-width: 1000px) and (max-height: 830px) { body:not(.dream) .battle:has(.king) { grid-template-rows: minmax(286px, 1fr) auto auto auto auto; } body:not(.dream) .battle button.special { min-height: 46px; padding: 4px 8px; } body:not(.dream) .battle .wslot { max-height: 116px; } }
@media (min-height: 521px) and (min-width: 1000px) and (max-height: 830px) { body:not(.dream) .battle { min-height: calc(100vh - 96px); } }
.st-fig.child { height: min(60vh, 610px); }

/* ⓘ 설명 창: 늘 맨 위, 다른 창이 떠 있으면 그 옆에 */
body .modal.info-modal { z-index: 130 !important; } body .modal.info-modal.side { background: none !important; pointer-events: none; display: block; } body .modal.info-modal.side > .panel { position: fixed; margin: 0; pointer-events: auto; max-height: calc(100vh - 24px); overflow: auto; box-sizing: border-box; animation: infoIn .22s cubic-bezier(.2,1.3,.4,1); filter: drop-shadow(0 10px 22px #000C); } @keyframes infoIn { from { opacity: 0; transform: scale(.94); } }
.st-fig:not(:has(canvas)):not(.small) { bottom: 34px; } @media (max-height: 520px) { .st-fig:not(:has(canvas)):not(.small) { bottom: 16px; } }

/* ── 📖 보스 이야기 (js/lore.js) ── */
body .modal.lore-modal { z-index: 96; } body:is(.dream, :not(.dream)) .modal .panel.lore-panel { width: min(94vw, 940px); max-width: none; display: grid; grid-template-columns: minmax(220px, 36%) 1fr; gap: 20px; text-align: left; max-height: 92vh; overflow: hidden; padding: 6px; } .lore-fig { position: relative; display: flex; align-items: flex-end; justify-content: center; min-height: 340px; padding-bottom: 12px; overflow: hidden; background: radial-gradient(ellipse at 50% 80%, #0000, #0A0604D0 90%), var(--bg) center 70% / cover no-repeat, #1A100C; box-shadow: 0 0 0 1px #000, 0 0 0 3px #B98A34; border-radius: 4px; } .lore-fig canvas { width: 94% !important; height: auto !important; max-height: 92%; object-fit: contain; object-position: bottom; image-rendering: pixelated; filter: drop-shadow(0 0 3px #FFE9A8AA) drop-shadow(0 10px 8px #000C); animation: vcBob 2s infinite alternate ease-in-out; } .lore-kind { position: absolute; left: 10px; top: 10px; padding: 3px 14px; font: 700 15px/1.4 var(--serif); color: #FFF3DC; background: #4A6E8A; border-radius: 10px; } .lore-kind.k-elite { background: #A0522D; } .lore-kind.k-boss { background: linear-gradient(#C6382B, #7A1418); }
.lore-text { overflow: auto; max-height: calc(92vh - 90px); padding: 3px 10px 3px 6px; margin-left: -6px; } /* 안쪽 여백: 테두리(box-shadow)가 스크롤 칸 가장자리에서 잘리지 않게 */ .lore-text h2 { display: flex; align-items: baseline; gap: 14px; margin: 0; font: 400 48px/1.1 var(--disp) !important; color: #FFE9B8; text-shadow: 0 2px 0 #1A0C06; } .lore-text h2 small { font: 700 22px/1 var(--serif); color: #D8B25C; } .lore-en { margin: 2px 0 8px; font-size: 14px; color: #9FD8D0; } .lore-one { margin: 0 0 6px; padding: 8px 14px; font: 700 18px/1.5 var(--serif); color: #2B2016; background: linear-gradient(90deg, #E4D2A8, #FBF3DC 8%, #FBF3DC 92%, #E4D2A8); border-radius: 4px; } .lore-text h4 { margin: 12px 0 2px; font: 700 15px/1.3 var(--serif); color: #E8C77A; letter-spacing: .06em; } .lore-text p { word-break: keep-all; } .lore-text > p:not(.lore-en):not(.lore-one) { margin: 2px 0 6px; font: 400 16px/1.65 var(--serif); color: #F1E4C8; }
.lore-sigs { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px; } .lore-sigs span { padding: 3px 12px; font: 700 14px/1.4 var(--serif); color: #FFD8C8; background: #3A1410; box-shadow: 0 0 0 1px #8A3A2A; border-radius: 10px; } .lore-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; font: 700 15px/1.3 var(--serif); color: #E4D6BC; } .lore-foot > span { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; background: #0D0807C0; box-shadow: 0 0 0 1px #5A4526; border-radius: 12px; } .lore-foot .weak { color: #FFB0A0; box-shadow: 0 0 0 1px #C8503C; } .lore-foot .big { margin-left: auto; } .lore-foot .el-icon { width: 20px; height: 20px; }
@media (max-width: 720px), (max-height: 520px) { body:is(.dream, :not(.dream)) .modal .panel.lore-panel { grid-template-columns: 30% 1fr; gap: 10px; } .lore-fig { min-height: 0; } .lore-text h2 { font-size: 30px !important; } .lore-one { font-size: 15px; } .lore-text > p:not(.lore-en):not(.lore-one) { font-size: 14px; } }
/* 장터 팔기 · 장날 */
.mp-shop img { width: 30px; height: 30px; object-fit: contain; image-rendering: pixelated; vertical-align: middle; margin-right: 6px; } .sh-sale { padding: 5px 16px; font: 700 16px/1.3 var(--serif); color: #FFF3DC; background: linear-gradient(#C6382B, #7A1418); border-radius: 16px; box-shadow: 0 0 0 1px #000, 0 0 0 2px #FFD54A; } .sh-shelf.sell { max-height: 56vh; overflow: auto; } .sh-tag.sell { color: #1E5A2A; } .sh-item.ask .sh-up::before { background: radial-gradient(ellipse at 50% 70%, #FFE06AAA, transparent 66%); opacity: 1; } .sh-item.ask .sh-tag { filter: drop-shadow(0 0 8px #FFD54A); animation: shSwing .4s infinite alternate; } .sh-item.locked .sh-img { filter: grayscale(.6) drop-shadow(0 4px 3px #0009); } .sh-item.locked .sh-eff { color: #E0B89A; } .sh-note { text-align: center; margin: 10px 0 0; font-size: 14px; color: #CDBB98; } @media (max-height: 520px) { .sh-note { display: none; } .sh-shelf.sell { max-height: 220px; } }
.sh-shelf.sell { overflow: hidden auto; padding: 0 8px 10px; } .sh-shelf.sell .sh-plank { width: 100%; } .sh-shelf.sell:not(:has(.sh-item:nth-child(9))) { overflow: visible; max-height: none; }
/* 인물은 글상자 너비 안에 서고(치마 · 발이 옆으로 삐져나오지 않게) 아래는 글상자가 가린다 */
.st-fig { width: min(40vw, 460px); } .st-fig.l { left: max(20px, calc(50% - 530px)); } .st-fig.r { right: max(20px, calc(50% - 530px)); } .st-fig > img { max-width: 100%; object-fit: contain; }
@media (max-height: 520px) { .st-fig { width: 34vw; } }
.story.nofig .st-fig { display: none; } /* 그림에 모두 나와 있는 장면 (외전 「붉은 실」 끝) */
/* ── 사주 궁합 · 귀인 (js/fate.js) ── */
.ft-plaque { --w: clamp(150px, 15vw, 218px); position: absolute; right: calc(-1 * var(--w) - 5vw); top: 4vh; width: var(--w); box-sizing: border-box; padding: 18px 14px 12px; z-index: 3; text-align: center; background: linear-gradient(#FBF3DC, #E9D6A6); border-radius: 5px; box-shadow: 0 0 0 2px #4A2E12, 0 0 0 6px #7A1E1A, 0 0 0 8px #C9A24B, 0 14px 30px #000A, 0 0 30px color-mix(in srgb, var(--ec) 60%, transparent); opacity: 0; translate: 0 -22px; transition: opacity .5s, translate .6s cubic-bezier(.2,1.3,.4,1); pointer-events: none; }
.ft-plaque.on { opacity: 1; translate: none; pointer-events: auto; } .ft-plaque::before { content: ''; position: absolute; left: 50%; top: -30px; width: 2px; height: 24px; background: #C9A24B; box-shadow: 0 0 0 1px #4A2E12; }
.ft-plaque > small { display: block; font: 400 clamp(20px, 2.1vw, 28px)/1 var(--disp); color: #8A1E1A; } .ft-face { position: relative; width: 66%; margin: 8px auto 6px; aspect-ratio: 1; } .ft-face img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 50%; box-shadow: 0 0 0 3px var(--ec), 0 0 0 5px #4A2E12; }
.ft-plaque > b { display: block; font: 400 clamp(28px, 2.9vw, 40px)/1 var(--disp); color: #2B1708; } .ft-plaque > p { margin: 6px 0 4px; font: 700 clamp(13px, 1.15vw, 16px)/1.4 var(--serif); color: #4A3416; word-break: keep-all; } .ft-plaque > em { display: block; font: 700 12px/1.3 var(--serif); font-style: normal; color: #8A1E1A; }
.ft-el { position: absolute; right: -4px; bottom: -2px; width: 34% !important; height: 34% !important; padding: 3px; box-sizing: border-box; background: #FFF8E6; border-radius: 50%; box-shadow: 0 0 0 2px #4A2E12; }
.ft-row { display: flex; justify-content: center; gap: 6px; margin-top: 6px; padding-top: 8px; border-top: 1px solid #B8925A; } .ft-row span { position: relative; width: 34px; height: 34px; opacity: .8; } .ft-row img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 50%; box-shadow: 0 0 0 2px #6A4A22; } .ft-row .ft-el { width: 17px !important; height: 17px !important; padding: 2px; } .ft-row .t-good { opacity: 1; } .ft-row .t-good img { box-shadow: 0 0 0 2px #C9912A, 0 0 8px #FFD54A; } .ft-row .t-low img { filter: saturate(.4) brightness(.75); }
.ft-head { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin: 8px 64px 0; } .ft-back { min-height: 0 !important; padding: 5px 14px !important; } .ft-say { font: 700 17px/1.3 var(--serif); color: #F1E4C8; } .ft-say b { font: 400 28px/1 var(--disp); filter: brightness(1.35); text-shadow: 0 2px 0 #000; } .ft-say em { font-style: normal; color: #CDBB98; font-size: 14px; }
.ft-strip { display: inline-flex; align-items: center; gap: 10px; padding: 5px 12px; background: #0D0908CC; border-radius: 6px; box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--brass2); } .ft-p { display: inline-flex; gap: 2px; } .ft-p i { font: 700 18px/1.25 serif; font-style: normal; min-width: 24px; text-align: center; color: #fff; background: color-mix(in srgb, var(--ec) 70%, #14100E); border-radius: 3px; text-shadow: 0 1px 2px #000; } .ft-p i[data-el=metal] { color: #1A1A1A; text-shadow: none; } .ft-cnt { display: inline-flex; gap: 8px; } .ft-cnt em { display: inline-flex; align-items: center; gap: 2px; font: 700 14px/1 var(--serif); font-style: normal; color: #FFE9B8; } .ft-cnt em.none { color: #FF9A8A; font-size: 12px; } .ft-cnt .el-icon { width: 20px; height: 20px; }
.job { position: relative; } .ft-rib { position: absolute; left: 50%; top: -15px; translate: -50% 0; z-index: 3; padding: 4px 18px 5px; font: 400 22px/1 var(--disp); color: #E8DCC0; background: #2A2018; border-radius: 4px; box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--brass2); white-space: nowrap; } .t-best > .ft-rib { color: #FFF3D0; background: linear-gradient(#C6382B, #7A1418); box-shadow: 0 0 0 1px #2B0A08, 0 0 0 3px #FFD54A, 0 4px 14px #000A; font-size: 27px; } .t-good > .ft-rib { color: #2B1708; background: linear-gradient(#FBE7A8, #D9A93A); } .t-low > .ft-rib { color: #BFD0F0; background: #1C2436; } .t-mid > .ft-rib { opacity: .75; font-size: 18px; top: -11px; }
body:not(.dream) .job.t-best:not(.locked) { box-shadow: 0 0 0 1px #000, 0 0 0 3px var(--ec), 0 0 0 5px #17110F, 0 0 0 8px #FFD54A, 0 0 40px color-mix(in srgb, var(--ec) 70%, transparent), 0 14px 26px #0009; } .job.t-best:not(.locked) { animation: ftGlow 1.8s ease-in-out infinite alternate; } @keyframes ftGlow { to { filter: brightness(1.1); } }
.job-art > .ft-el { right: auto; left: 6px; bottom: 6px; width: 40px !important; height: 40px !important; padding: 5px; box-shadow: 0 0 0 2px var(--ec), 0 0 0 4px #17110F; } .job.locked .ft-el { filter: none; }
.job .ft-why { flex: 0 0 auto; margin: 2px 0 0; font: 700 14px/1.4 var(--serif); color: #F1E4C8; word-break: keep-all; min-height: 2.8em; } .job .ft-gift { flex: 0 0 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; margin: 0; } .ft-gift span { padding: 2px 9px; font: 700 13px/1.4 var(--serif); color: #2B1708; background: linear-gradient(#FBE7A8, #E0B44A); border-radius: 9px; } .t-low .ft-gift span { color: #DDE8FF; background: #2A3858; } .ft-chip { margin-left: 6px; padding: 1px 7px; color: #2B1708 !important; background: #FFD54A; border-radius: 8px; }
.jobs { margin-top: 26px !important; } .saju-screen { position: relative; }
@media (max-width: 1100px), (max-height: 520px) { .ft-plaque { --w: 124px; right: calc(-1 * var(--w) - 16px); top: 0; padding: 8px 8px 6px; } .ft-plaque > small { font-size: 16px; } .ft-plaque > b { font-size: 22px; } .ft-plaque > p { font-size: 11px; margin: 2px 0; } .ft-face { width: 50%; margin: 4px auto 2px; } .ft-row { gap: 4px; margin-top: 2px; padding-top: 4px; } .ft-row span { width: 22px; height: 22px; } .ft-row .ft-el { width: 12px !important; height: 12px !important; } .ft-plaque::before { display: none; } }
@media (max-height: 520px) { .ft-head { margin: 2px 50px 0; gap: 8px; } .ft-say { font-size: 13px; } .ft-say b { font-size: 20px; } .ft-strip { padding: 2px 8px; } .ft-p i { font-size: 13px; min-width: 17px; } .ft-rib { font-size: 15px !important; top: -10px; padding: 2px 10px; } .job .ft-why { font-size: 11px; min-height: 0; } .ft-gift span { font-size: 10px; padding: 1px 5px; } .job-art > .ft-el { width: 24px !important; height: 24px !important; padding: 3px; } .jobs { margin-top: 14px !important; } }
@media (max-width: 620px) and (min-height: 521px) { .ft-plaque { position: static; margin: 8px auto 0; width: min(92vw, 320px); } }
.jobs-screen > .merit { position: absolute; left: 14px; top: 14px; z-index: 2; margin: 0; padding: 6px 12px; background: #0D0908CC; border-radius: 16px; box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--brass2); }
.job .ft-why .i-btn, .job h3 .i-btn { width: 20px; height: 20px; min-height: 0; } .job h3 { position: relative; } .job .ft-gift { flex-wrap: nowrap; gap: 3px; } .ft-gift span { padding: 2px 7px; font-size: 12px; white-space: nowrap; } .ft-gift .ic { width: 16px; height: 16px; }
.job .ft-why { display: block; } .job .ft-why .i-btn { vertical-align: middle; margin-left: 4px; }
@media (min-height: 521px) and (max-height: 860px) and (min-width: 1000px) { .jobs-screen > h2 { font-size: 40px !important; margin: 0; } .ft-head { margin-top: 4px; } .jobs-screen .job { gap: 4px; padding: 8px; } .jobs-screen .job-art { aspect-ratio: auto; height: clamp(150px, 33vh, 300px); } .jobs-screen .job-art > img { object-position: 50% 12%; } .jobs-screen .job h3 { margin: 2px 0 0; font-size: 28px !important; } .jobs-screen .job-tags { margin: 0; } .jobs-screen .job > button { min-height: 44px; } .jobs { margin-top: 22px !important; } }
.jobs { grid-template-columns: repeat(5, minmax(0, 1fr)); } .jobs > .job { min-width: 0; }
@media (max-height: 520px) { .jobs { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; } .jobs-screen > h2 { margin: 0; } .jobs-screen > .merit { left: 6px; top: 6px; padding: 2px 8px; font-size: 12px; } .jobs-screen .job { gap: 2px; padding: 5px !important; } .jobs-screen .job-art { aspect-ratio: auto; height: 21vh; } .jobs-screen .job-art > img { object-position: 50% 12%; } .jobs-screen .job-pixel { padding: 0; } .jobs-screen .job-pixel canvas.hd { height: 38px; } .jobs-screen .job h3 { font-size: 18px !important; margin: 0; } .jobs-screen .job h3 small, .jobs-screen .job-tags, .jobs-screen .dev-row { display: none; } .jobs-screen .job .ft-gift { flex-wrap: wrap; gap: 2px; } .jobs-screen .job .ft-gift .ic { width: 11px; height: 11px; } .jobs-screen .job .ft-why { flex: 1; line-height: 1.25; } .jobs-screen .job > button { min-height: 32px; font-size: 18px !important; border-width: 8px 18px !important; } .job .ft-why .i-btn, .job h3 .i-btn { width: 16px; height: 16px; font-size: 10px; } .saju-screen > .sj-guide { display: none; } .ft-plaque { top: -22px; } }
.ft-chip { display: inline-block; white-space: nowrap; } .pt-card > b { line-height: 1.5; }
/* ── 소리 단추 (js/audio.js mount) ── */
#sound-toggle { display: inline-grid; place-items: center; min-height: 0; cursor: pointer; } #sound-toggle svg { width: 22px; height: 22px; display: block; } #sound-toggle[data-at=""] { position: fixed; right: 12px; top: 10px; z-index: 40; padding: 7px 10px; }
#sound-toggle[data-at=title] { padding: 0 12px; border-radius: 18px !important; color: #FFE9B8 !important; } .title-top { align-items: stretch; }
#sound-toggle[data-at=corner] { position: absolute; right: 70px; top: 8px; z-index: 2; width: 52px; height: 52px; padding: 0; border-radius: 50%; } #sound-toggle[data-at=head] { width: 52px; height: 52px; padding: 0; border-radius: 50%; }
#sound-toggle:is([data-at=corner], [data-at=head]) { background: url(assets/ui/medal.webp?v=1) center / 100% 100% no-repeat !important; box-shadow: none !important; color: #FFE9B8 !important; }
#sound-toggle[data-at=bar] { color: #FFE9B8 !important; }
@media (max-height: 520px) { #sound-toggle svg { width: 16px; height: 16px; } #sound-toggle:is([data-at=corner], [data-at=head]) { width: 40px; height: 40px; } #sound-toggle[data-at=corner] { right: 54px; } }
.tr-head > #sound-toggle, .dex-head > #sound-toggle { margin-left: auto !important; } #sound-toggle[data-at=head] + button { margin-left: 8px !important; }
.topbar > #sound-toggle, .topbar > .home-btn, .run-hud > #sound-toggle, .run-hud > .home-btn { padding: 0 !important; width: 44px; height: 40px; min-height: 0; display: inline-grid; place-items: center; flex: 0 0 auto; }
@media (min-height: 521px) and (max-width: 1260px) { .topbar { gap: 7px !important; padding: 7px 10px !important; } .topbar > button:not(#sound-toggle):not(.home-btn) { padding: 5px 9px !important; } .topbar .stat-pill { padding: 4px 7px !important; } .topbar .xp-bar { width: 44px !important; min-width: 0 !important; } .topbar .shingi small { display: none; } .topbar > #sound-toggle, .topbar > .home-btn { width: 40px; } body[data-scr="battle"] .topbar { flex-wrap: nowrap; } }
@media (max-height: 520px) { .topbar > #sound-toggle, .topbar > .home-btn, .run-hud > #sound-toggle, .run-hud > .home-btn { width: 30px; height: 26px; } }
#sound-toggle[data-at=map] { color: #FFE9B8 !important; padding: 0 10px; align-self: stretch; } @media (max-height: 520px) { #sound-toggle[data-at=""] { right: 6px; top: 4px; padding: 4px 6px; } }
/* ── 터치 기기: 길게 눌러도 글자 선택 · 복사 · 검색 메뉴가 뜨지 않게, 두 번 눌러도 확대되지 않게 ── */
@media (any-pointer: coarse) { html, body, body * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; } body { -webkit-tap-highlight-color: transparent; touch-action: pan-x pan-y; } button, a, .i-btn, .card, .tile { touch-action: manipulation; } input, textarea { -webkit-user-select: text !important; user-select: text !important; } .pad-btn, .run-btn, .run-canvas { touch-action: none; } }
/* ── 길: 왼쪽 위 게이지 단추 (js/run.js gaugeBar) · 멈춤 (js/pause.js) ── */
.run-gauges { --gw: clamp(150px, 19vw, 236px); position: absolute; left: 8px; top: 8px; z-index: 4; display: flex; gap: 6px; pointer-events: none; } .run-gauges[hidden], .rg[hidden] { display: none !important; }
body .run-gauges .rg { position: relative; width: var(--gw); height: calc(var(--gw) * .314); min-height: 0; padding: 0; border: 0; border-image: none !important; background: none !important; box-shadow: none !important; pointer-events: none; touch-action: none; cursor: default; isolation: isolate; filter: drop-shadow(0 3px 4px #000A); }
.rg-win { position: absolute; left: 20%; right: 10.6%; top: 28%; bottom: 33%; overflow: hidden; background: linear-gradient(#0A0612, #1C1230 55%, #0A0612); z-index: 1; } .rg-joint .rg-win { top: 25.5%; bottom: 35.5%; background: linear-gradient(#120804, #2E1608 55%, #120804); }
.rg-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; min-width: 11%; background: url(assets/ui/gauge_fire_ult.webp) 0 50% / auto 190% repeat-x; transition: width .3s cubic-bezier(.2, .9, .3, 1); animation: rgFlow 5s linear infinite; } .rg-joint .rg-fill { background-image: url(assets/ui/gauge_fire_joint.webp); } @keyframes rgFlow { to { background-position-x: calc(var(--gw) * .642); } }
.rg-fill::after { content: ''; position: absolute; right: -2px; top: -10%; bottom: -10%; width: 14px; background: radial-gradient(ellipse at 70% 50%, #FFFFFF 0 18%, #E9D0FF 34%, #C08AFF00 72%); animation: rgTip .5s ease-in-out infinite alternate; } .rg-joint .rg-fill::after { background: radial-gradient(ellipse at 70% 50%, #FFFFFF 0 18%, #FFE9A0 34%, #FFB03000 72%); } @keyframes rgTip { to { opacity: .55; transform: scaleX(1.5); } } .rg.bond .rg-fill { filter: hue-rotate(22deg) saturate(1.1); }
.rg-win::after { content: ''; position: absolute; inset: 0; background: linear-gradient(#FFFFFF38, #FFFFFF00 38%, #0000 62%, #0007); }
.rg-frame { position: absolute; inset: 0; z-index: 2; background: url(assets/ui/gauge_ult.webp) center / 100% 100% no-repeat; } .rg-joint .rg-frame { background-image: url(assets/ui/gauge_joint.webp); } .rg:not(.ready) .rg-frame { filter: saturate(.82) brightness(.86); }
.rg-halo { position: absolute; left: 14.6%; top: 49%; width: 46%; aspect-ratio: 1; translate: -50% -50%; z-index: 0; opacity: 0; border-radius: 50%; background: repeating-conic-gradient(#D9B0FF00 0 9deg, #E7C8FFCC 14deg, #D9B0FF00 20deg); -webkit-mask: radial-gradient(closest-side, #000 52%, #0000); mask: radial-gradient(closest-side, #000 52%, #0000); } .rg-joint .rg-halo { background: repeating-conic-gradient(#FFD86A00 0 9deg, #FFE9A0DD 14deg, #FFD86A00 20deg); }
.rg-txt { position: absolute; left: 33%; right: 13%; top: 28%; bottom: 33%; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 4px; } .rg-joint .rg-txt { left: 35%; top: 25.5%; bottom: 35.5%; } .rg-txt b { font: 800 calc(var(--gw) * .068)/1 var(--serif); letter-spacing: .06em; color: #F2E8FF; white-space: nowrap; -webkit-text-stroke: 3px #140A1C; paint-order: stroke fill; text-shadow: 0 1px 2px #000, 0 0 8px #000; } .rg-txt em { font: 700 calc(var(--gw) * .052)/1 'Galmuri11', sans-serif; font-style: normal; color: #E7DAFF; text-shadow: 0 1px 2px #000, 0 0 5px #000; } .rg-joint .rg-txt b, .rg-joint .rg-txt em { color: #FFF1CF; }
.rg-txt kbd { display: none; font: 700 calc(var(--gw) * .054)/1 'Galmuri11', sans-serif; padding: .3em .5em; color: #2B1708; background: linear-gradient(#FFF6D8, #E8B85A); border-radius: 4px; box-shadow: 0 0 0 1px #3A1E08, 0 2px 0 #7A4A18, 0 0 10px #FFE08A; } .rg.ready .rg-txt kbd { display: inline-block; }
.rg-spark { position: absolute; z-index: 4; left: calc(18% + var(--n) * 13%); bottom: 34%; width: 5px; height: 5px; border-radius: 50%; opacity: 0; background: radial-gradient(#FFF, #C98AFF 60%, #C98AFF00); } .rg-joint .rg-spark { background: radial-gradient(#FFF, #FFC84A 60%, #FFC84A00); }
.rg.up .rg-win { animation: rgUp .45s ease-out; } .rg.up .rg-frame { animation: rgUpF .45s ease-out; } @keyframes rgUp { 30% { filter: brightness(1.9); } } @keyframes rgUpF { 25% { transform: scale(1.035); filter: brightness(1.35); } }
body .run-gauges .rg.ready { pointer-events: auto; cursor: pointer; animation: rgReady .9s ease-in-out infinite alternate; } .run-gauges .rg-joint.ready { --rc: #FFC84A; } @keyframes rgReady { from { filter: drop-shadow(0 3px 4px #000A) drop-shadow(0 0 4px var(--rc, #B87AFF)); } to { filter: drop-shadow(0 3px 4px #000A) drop-shadow(0 0 13px var(--rc, #C98AFF)) brightness(1.1); } }
.rg.ready .rg-halo { opacity: 1; animation: rgSpin 9s linear infinite; } @keyframes rgSpin { to { rotate: 360deg; } } .rg.ready .rg-fill { animation-duration: 1.7s; filter: brightness(1.18) saturate(1.15); } .rg.ready.bond .rg-fill { filter: hue-rotate(22deg) saturate(1.15) brightness(1.12); }
.rg.ready .rg-win::before { content: ''; position: absolute; z-index: 1; top: -20%; bottom: -20%; left: -30%; width: 22%; background: linear-gradient(90deg, #FFF0, #FFFFFFB0, #FFF0); transform: skewX(-24deg); animation: rgGlint 1.9s ease-in-out infinite; } @keyframes rgGlint { 0%, 25% { left: -30%; } 75%, 100% { left: 115%; } }
.rg.ready .rg-txt b { color: #FFFFFF; } .rg.ready .rg-txt b::after { content: '!'; } .rg.ready .rg-spark { animation: rgSpark 1.5s calc(var(--n) * -.31s) ease-out infinite; } @keyframes rgSpark { 0% { opacity: 0; transform: translateY(0) scale(.6); } 25% { opacity: 1; } 100% { opacity: 0; transform: translate(calc((var(--n) - 3) * 5px), calc(var(--gw) * -.2)) scale(1.25); } } .rg.ready:active { scale: .95; }
@media (hover: none) { .rg.ready .rg-txt kbd { display: none; } } @media (any-pointer: coarse) { .run-gauges { --gw: clamp(150px, 20vw, 236px); } }
@media (max-height: 520px) { .run-gauges { --gw: 138px; left: 4px; top: 4px; gap: 4px; } .rg.ready .rg-txt kbd { display: none; } }
@media (prefers-reduced-motion: reduce) { .rg-fill, .rg-fill::after, .rg.ready .rg-halo, .rg.ready .rg-win::before, .rg.ready .rg-spark { animation: none !important; } }
html:not([data-lang=ko])[data-lang] .rg-txt b { letter-spacing: 0; font-size: calc(var(--gw) * .06); } html[data-lang=en] .rg-txt b { font-size: calc(var(--gw) * .054); }
/* 족자 대결 단추의 게이지도 같은 불길 */
button.special-ult .sp-gauge, button.special-joint .sp-gauge { height: 9px !important; overflow: hidden; border-radius: 4px; } button.special-ult .sp-gauge i { background: url(assets/ui/gauge_fire_ult.webp) 0 50% / auto 260% repeat-x !important; } button.special-joint .sp-gauge i { background: url(assets/ui/gauge_fire_joint.webp) 0 50% / auto 260% repeat-x !important; }
.pause-btn { display: inline-grid; place-items: center; } .pause-btn svg { width: 20px; height: 20px; display: block; } .topbar > .pause-btn, .run-hud > .pause-btn { padding: 0 !important; width: 44px; height: 40px; min-height: 0; flex: 0 0 auto; color: #FFE9B8; }
.modal.pause { z-index: 90; transition: opacity .16s; } .modal.pause.out { opacity: 0; } .modal.pause .panel { width: min(92vw, 440px); text-align: center; } .modal.pause h2 { margin: 4px 0 2px; font: 400 46px/1 var(--disp); color: #FFE9B8; } .modal.pause p { margin: 0 0 14px; font: 700 16px/1.4 var(--serif); } .pz-btns { display: flex; flex-direction: column; gap: 10px; align-items: stretch; } .pz-btns button { min-height: 50px; font-size: 18px; }
@media (max-height: 520px) { .topbar > .pause-btn, .run-hud > .pause-btn { width: 30px; height: 26px; } .pause-btn svg { width: 14px; height: 14px; } .modal.pause h2 { font-size: 30px; } .modal.pause p { margin-bottom: 8px; } .pz-btns { gap: 6px; } .pz-btns button { min-height: 38px; font-size: 15px; } }
/* ── 조작 단추 그림 (js/run.js PAD_ICON) ── */
.pad-btn { display: grid; place-items: center; } .pad-btn svg { width: 56%; height: 56%; display: block; pointer-events: none; overflow: visible; } .pad-jump svg { width: 60%; height: 60%; }
.pad-btn .f { fill: #FFFFFF; stroke: #0B0812; stroke-width: 3.4; stroke-linejoin: round; paint-order: stroke; } .pad-btn .l { fill: none; stroke: #FFFFFF; stroke-width: 4.4; stroke-linecap: round; filter: drop-shadow(0 0 1.5px #0B0812) drop-shadow(0 0 1.5px #0B0812); }
.pad-btn .d path { fill: #0B0812; stroke: #0B0812; stroke-width: 8.6; stroke-linecap: round; stroke-linejoin: round; } .pad-btn .h path { fill: #FFFFFF; stroke: #FFFFFF; stroke-width: 4.6; stroke-linecap: round; stroke-linejoin: round; } .pad-btn .d path:first-child, .pad-btn .h path:first-child { fill: none; }
.pad-jump .f { fill: #FFE9A8; } .pad-atk { background: rgba(255,120,90,.26) !important; box-shadow: inset 0 0 0 2px rgba(255,170,140,.8), 0 4px 12px rgba(0,0,0,.35) !important; } .pad-atk svg { width: 64%; height: 64%; }
/* ── 쪽 넘기기 · 싸우는 법 ── */
.pg-nav { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 10px 0 0; } .pg-arrow { width: 48px; height: 44px; min-height: 0; padding: 0 !important; display: inline-grid; place-items: center; font-size: 18px; } .pg-arrow:disabled { opacity: .3; } .pg-dots { display: flex; gap: 8px; } .pg-dot { width: 12px; height: 12px; min-height: 0; padding: 0 !important; border-radius: 50%; border: 0; background: #6A5230 !important; box-shadow: 0 0 0 1px #000 !important; position: relative; } .pg-dot::after { content: ''; position: absolute; inset: -12px -4px; } .pg-dot.on { background: #FFD54A !important; box-shadow: 0 0 0 1px #000, 0 0 8px #FFD54A !important; } .pg-num { font: 700 15px/1 var(--serif); color: #E8D6B0; min-width: 52px; text-align: center; }
.info-panel.paged .info-body p { font-size: 17px; line-height: 1.55; } .info-panel .pg-nav + .big { margin-top: 8px; } .info-panel .info-body p { font-size: 16px; }
body .modal.howto-modal { z-index: 88; } body .modal .panel.howto-panel { width: min(94vw, 880px); max-width: none; max-height: 94vh; overflow: visible; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.hw-head { display: flex; align-items: center; justify-content: space-between; } .hw-head h2 { margin: 0; font: 400 46px/1 var(--disp) !important; color: #FFE9B8; } .hw-x { width: 46px; height: 46px; min-height: 0; padding: 0 !important; font-size: 18px; }
.hw-box { min-height: min(46vh, 330px); display: grid; } .hw-page { display: grid; grid-template-columns: minmax(0, 46%) 1fr; gap: 22px; align-items: center; padding: 18px 22px; background: linear-gradient(90deg, #D9C396, #F8EED2 5%, #FBF3DC 50%, #F8EED2 95%, #D9C396); border-radius: 6px; box-shadow: 0 0 0 2px #6A4A22, inset 0 0 40px #B8925A55; color: #2B2016; } .hw-pic { display: grid; place-items: center; min-height: 190px; } .hw-txt h3 { margin: 0 0 10px; font: 400 42px/1.05 var(--disp) !important; color: #8A1E1A !important; } .hw-txt p { margin: 0 0 10px; font: 700 clamp(17px, 1.75vw, 21px)/1.55 var(--serif); color: #2B2016; word-break: keep-all; }
.hw-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; } .hw-foot .pg-nav { margin: 0; } .hw-foot > .big { min-width: 160px; margin: 0 0 0 auto !important; }
.hw-cards { display: flex; align-items: center; justify-content: center; gap: 2px; pointer-events: none; } .hw-cards .card.small:not(.back) { --cw: clamp(64px, 8vw, 92px) !important; } .hw-cards > i { font-style: normal; color: #2F8A4A; font-size: 22px; }
.hw-bells { display: flex; gap: 14px; } .hw-bells img { width: clamp(56px, 7vw, 84px); filter: drop-shadow(0 4px 4px #0006); transform-origin: 50% 8%; animation: hwBell 1.1s ease-in-out infinite alternate; } .hw-bells img:nth-child(2) { animation-delay: .2s; } .hw-bells img:nth-child(3) { animation-delay: .4s; opacity: .45; } @keyframes hwBell { from { rotate: -13deg; } to { rotate: 13deg; } }
.hw-big { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; font: 400 clamp(34px, 4.4vw, 56px)/1.1 var(--disp); } .hw-big i { font-style: normal; color: #6A4A22; } .hw-big .k { color: #2F6A3C; } .hw-big .m { color: #2F5FA8; } .hw-big .d { color: #C6281E; font-size: 1.45em; }
.hw-flow { display: flex; align-items: center; justify-content: center; gap: 4px; margin-bottom: 14px; } .hw-flow > i { font: 700 24px/1 serif; font-style: normal; color: #2F8A4A; } .hw-flow.ctrl > i { color: #C6281E; font-size: 34px; } .hw-flow.same > i { color: #B8802A; } .hw-el { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; } .hw-el .el-icon { width: clamp(38px, 4.4vw, 56px); height: clamp(38px, 4.4vw, 56px); padding: 5px; box-sizing: border-box; background: #FFF8E6; border-radius: 50%; box-shadow: 0 0 0 2px #6A4A22, 0 3px 5px #0005; } .hw-el small { font: 700 14px/1 var(--serif); color: #4A3416; } .hw-el.off .el-icon { filter: grayscale(.8) brightness(.85); }
.hw-flow:is(.same, .ctrl) .el-icon { width: 78px; height: 78px; } .hw-flow:is(.same, .ctrl) { gap: 16px; } .hw-chip { display: block; width: fit-content; margin: 0 auto; padding: 5px 18px; font: 700 19px/1.3 var(--serif); color: #fff; background: #6A4A22; border-radius: 16px; } .hw-chip.g { background: #2F7A46; } .hw-chip.r { background: #B0262E; } .hw-chip.s { background: #B8802A; } .hw-chip.c { background: linear-gradient(90deg, #2F7A46, #C6381E, #B8802A, #7A8A9A, #2F5FA8); }
.hw-saju { display: flex; gap: 24px; } .hw-saju > span { display: grid; gap: 10px; justify-items: center; } .hw-saju .el-icon { width: 82px; height: 82px; } .hw-sp { display: grid; gap: 10px; width: 100%; max-width: 280px; } .hw-sp > span { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 16px; font: 700 18px/1.2 var(--serif); color: #fff; border-radius: 6px; box-shadow: 0 0 0 1px #000, 0 0 0 2px #C9A24B; } .hw-sp .a { background: linear-gradient(#A8323A, #4E1218); } .hw-sp .b { background: linear-gradient(#34629E, #142844); } .hw-sp .c { background: linear-gradient(#8A5AC0, #3A1E60); } .hw-sp .ic { width: 24px; height: 24px; }
.lore-text { display: flex; flex-direction: column; } .lore-box { flex: 1; min-height: min(50vh, 360px); } .lore-text > .hw-foot { margin-top: 10px; } .lore-box p { font-size: 17px !important; line-height: 1.6 !important; }
@media (max-width: 720px) and (min-height: 521px) { .hw-page { grid-template-columns: 1fr; padding: 14px; gap: 8px; } .hw-pic { min-height: 130px; } }
@media (max-height: 520px) { body .modal .panel.howto-panel { gap: 4px; padding: 0 4px; } .hw-head h2 { font-size: 26px !important; } .hw-x { width: 34px; height: 30px; } .hw-box { min-height: 0; } .hw-page { padding: 8px 12px; gap: 12px; } .hw-pic { min-height: 120px; } .hw-txt h3 { font-size: 26px !important; margin: 0 0 4px; } .hw-txt p { font-size: 14px; line-height: 1.4; margin-bottom: 4px; } .hw-flow:is(.same, .ctrl) .el-icon, .hw-saju .el-icon { width: 52px; height: 52px; } .hw-chip { font-size: 14px; padding: 3px 12px; } .pg-arrow { width: 38px; height: 34px; } .hw-foot > .big { min-width: 110px; } .hw-el small { font-size: 11px; } .hw-sp > span { padding: 5px 10px; font-size: 14px; } .pg-nav { gap: 8px; margin-top: 4px; } .info-panel.paged .info-body p, .info-panel .info-body p { font-size: 14px; } .lore-box { min-height: 0; } .lore-box p { font-size: 14px !important; line-height: 1.45 !important; } .hw-cards .card.small:not(.back) { --cw: 62px !important; } }
/* 수련(수묵) 싸움: 새 싸움판 디자인 + 먹빛 그림 */
body[data-art="ink"][data-scr="battle"] .battle .line { background: url(assets/ui/duel/mat.webp?v=1) center / 100% 100% no-repeat, #0E1426; box-shadow: none; } body[data-art="ink"] .battle .card:not(.back) { filter: none; } body[data-art="ink"] .battle .card.yong { filter: drop-shadow(0 0 6px var(--el)) drop-shadow(0 0 3px #FFD54A); }
body[data-art="ink"] .modal .panel { color: #F3EBDD; }
.hw-flow.gen .el-icon { width: clamp(30px, 3.3vw, 44px); height: clamp(30px, 3.3vw, 44px); padding: 4px; } .hw-flow.gen { gap: 2px; } .hw-flow.gen > i { font-size: 18px; } .hw-pic > div { max-width: 100%; }
.info-panel .info-body p, .lore-box p { font-family: var(--serif) !important; font-weight: 700; word-break: keep-all; } .info-panel .info-body p { margin: .6em 0; } .lore-box { overflow: auto; min-width: 0; } .lore-text { overflow: visible; min-height: 0; }
@media (max-height: 520px) { .lore-text { max-height: calc(92vh - 70px); } .lore-text > .hw-foot { margin-top: 4px; flex: 0 0 auto; } .lore-en { margin: 2px 0 !important; } .lore-one { padding: 4px 10px !important; margin: 2px 0 !important; } .lore-box h4 { margin: 4px 0 2px !important; } .lore-box p { margin: 3px 0 !important; } }
/* 기술 이름 컷인: 초상을 왼쪽 끝으로 붙이고 이름은 늘 한 줄로 */
.fx-cutin .ci-band { padding: 0 !important; justify-content: center; gap: clamp(6px, 1.4vw, 24px); } .fx-cutin .ci-band img { flex: 0 0 auto; width: clamp(150px, 23vw, 300px) !important; } .fx-cutin .ci-band b { flex: 0 0 auto; white-space: nowrap; } .fx-cutin .ci-band b span { white-space: nowrap; }
/* ── 외전: 끝낸 편 도장 · 누가 몇 레벨로 (js/side.js) ── */
.side-card.done { box-shadow: 0 0 0 1px #000, 0 0 0 3px #C6382C, 0 12px 28px #000A !important; }
.side-stamp { position: absolute; right: 16px; top: 14px; z-index: 3; width: 96px; height: 96px; display: grid; place-content: center; text-align: center; rotate: 12deg; color: #FF5A46; border: 4px solid #E0412E; border-radius: 50%; background: radial-gradient(#2A0806CC 55%, #2A080699); box-shadow: inset 0 0 0 3px #2A0806, inset 0 0 0 5px #E0412E, 0 4px 12px #000A; pointer-events: none; }
.side-card .side-stamp b { font: 400 29px/1 var(--disp) !important; color: #FF7A62 !important; text-shadow: 0 2px 0 #000 !important; letter-spacing: 1px; white-space: nowrap; } .side-stamp i { font: 700 14px/1.2 var(--serif); font-style: normal; color: #FFC2B2; letter-spacing: 1px; }
.side-by { display: flex; flex-wrap: wrap; gap: 5px; max-width: 56%; } .side-by span { display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 9px 0 3px; background: #0B0812CC; border: 1px solid var(--brass2); border-radius: 17px; } .side-by canvas { height: 30px; width: auto; image-rendering: pixelated; } .side-by em { font: 700 16px/1 var(--serif); font-style: normal; color: #FFE9B8; white-space: nowrap; }
@media (max-height: 520px) { .side-stamp { width: 66px; height: 66px; right: 10px; top: 8px; border-width: 3px; } .side-card .side-stamp b { font-size: 20px !important; } .side-stamp i { font-size: 11px; } .side-by span { height: 26px; } .side-by canvas { height: 22px; } .side-by em { font-size: 13px; } }
/* ── 족자 대결 기술 연출 (js/skillfx.js) ── */
.fx-skill { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 57; pointer-events: none; }
.fx-qi { border-radius: 50%; background: radial-gradient(circle at 42% 38%, #FFFFFF 0 16%, var(--qc) 46%, color-mix(in srgb, var(--qc), transparent 55%) 66%, transparent 72%); filter: drop-shadow(0 0 10px var(--qc)) drop-shadow(0 0 4px #FFFFFF); }
/* ── 터치 조작: 키보드와 같은 자리 (왼손 X·C / 오른손 ← → ↑) ── */
.run-pad { --pb: calc(clamp(48px, min(8.6vw, 15.5vh), 84px) * var(--pad-scale, 1)); padding: 0 clamp(8px, 2vw, 22px) clamp(8px, 2vw, 18px); }
.run-pad .pad-left { gap: clamp(8px, 1.6vw, 16px); }
.run-pad .pad-btn { width: var(--pb); height: var(--pb); } .run-pad .pad-atk { width: calc(var(--pb) * 1.22); height: calc(var(--pb) * 1.22); margin: 0; } .run-pad .pad-dodge { width: calc(var(--pb) * .98); height: calc(var(--pb) * .98); margin-bottom: 0; }
.pad-arrows { position: relative; display: grid !important; grid-template: repeat(2, var(--pb)) / repeat(2, var(--pb)); gap: clamp(6px, 1.2vw, 12px) clamp(10px, 2.2vw, 26px) !important; align-items: center; justify-items: center; pointer-events: auto !important; touch-action: none; padding: 8px 6px 0 6px; }
.pad-arrows .pad-btn { pointer-events: none; } .pad-arrows .pad-jump { grid-area: 1 / 1 / 2 / 3; width: calc(var(--pb) * 1.14) !important; height: calc(var(--pb) * 1.14) !important; } .pad-arrows .pad-left { grid-area: 2 / 1; display: grid; gap: 0; } .pad-arrows .pad-right { grid-area: 2 / 2; display: grid; gap: 0; } .pad-arrows .pad-down { grid-area: 2 / 1 / 3 / 3; }
.pad-arrows .pad-btn.on { background: rgba(255,255,255,.36); transform: scale(.94); } .pad-arrows .pad-jump.on { background: rgba(255,224,138,.5); }
.pad-arrows > span.pad-left, .pad-arrows > span.pad-right { align-items: center; justify-items: center; }
#dev-toggle.testing { background: linear-gradient(#1E5A3A, #0E2E1C) !important; color: #D8FFE4 !important; box-shadow: 0 0 0 1px #000, 0 0 0 2px #5AD08A !important; } .slot-ask { z-index: 120; } .dev-slot { margin-top: 10px; padding-top: 2px; border-top: 1px solid var(--brass2); }
.run-pad.classic .pad-right { align-items: flex-end; } .run-pad.classic .pad-jump { width: calc(var(--pb) * 1.3); height: calc(var(--pb) * 1.3); } .run-pad.classic .pad-atk { width: var(--pb); height: var(--pb); margin-bottom: calc(var(--pb) * .8); } .run-pad.classic .pad-left { gap: clamp(10px, 2.2vw, 26px); }
/* ── 환경설정 (js/settings.js) ── */
.modal.settings { z-index: 110; } .modal.settings .panel { position: relative; width: min(860px, 94vw); max-height: 92vh; overflow: auto; text-align: left; } .modal.settings h2 { text-align: center; margin: 0 0 10px; } .modal.settings.out { opacity: 0; transition: opacity .15s; }
.set-x { position: absolute; right: 10px; top: 8px; width: 48px; height: 48px; padding: 0; font-size: 20px; z-index: 2; }
.set-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 16px; } .set-tab { min-height: 52px; padding: 4px 8px !important; font: 700 19px/1.15 var(--serif) !important; color: #CDBB98 !important; background: linear-gradient(#2A1D18, #15100E) !important; box-shadow: inset 0 0 0 1px var(--brass2) !important; border-radius: 4px; } .set-tab.on { color: #2A1408 !important; background: linear-gradient(#FFE9B0, #D8A850) !important; box-shadow: 0 0 0 1px #000, 0 0 18px #E8A04A66 !important; } .set-tab small { display: block; font-size: 12px; opacity: .8; }
.set-body { min-height: 300px; } .set-row { display: grid; grid-template-columns: minmax(130px, 34%) 1fr; align-items: center; gap: 14px; min-height: 64px; border-bottom: 1px solid #B8925A44; } .set-name { font: 700 20px/1.25 var(--serif); color: #F4E7C8; } .set-ctl { display: flex; align-items: center; gap: 12px; } .set-ctl em { min-width: 54px; font: 700 18px/1 var(--serif); font-style: normal; color: #FFD98A; text-align: right; } .set-ctl .ghost { min-height: 46px; font-size: 17px; }
.set-ctl input[type=range] { flex: 1; height: 36px; appearance: none; -webkit-appearance: none; background: none; cursor: pointer; } .set-ctl input::-webkit-slider-runnable-track { height: 10px; border-radius: 5px; background: linear-gradient(90deg, #D8A850 var(--v, 100%), #2A1D18 0); box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--brass2); } .set-ctl input::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -10px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #FFF4D0, #D8A850 60%, #8A5A20); box-shadow: 0 0 0 2px #2A1408, 0 2px 8px #000; }
.set-ctl input::-moz-range-track { height: 10px; border-radius: 5px; background: linear-gradient(90deg, #D8A850 var(--v, 100%), #2A1D18 0); } .set-ctl input::-moz-range-thumb { width: 28px; height: 28px; border: 2px solid #2A1408; border-radius: 50%; background: #D8A850; }
.set-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; flex: 1; gap: 4px; } .set-seg button { min-height: 46px; padding: 4px 10px !important; font: 700 17px/1.2 var(--serif) !important; color: #CDBB98 !important; background: #1A120F !important; box-shadow: inset 0 0 0 1px var(--brass2) !important; border-radius: 4px; } .set-seg button.on { color: #2A1408 !important; background: linear-gradient(#FFE9B0, #D8A850) !important; }
.set-langs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .set-lang { min-height: 118px; display: grid; place-content: center; gap: 8px; text-align: center; color: #F4E7C8 !important; background: linear-gradient(#3A2418, #1A100C) !important; box-shadow: 0 0 0 1px #000, 0 0 0 3px var(--brass2) !important; border-radius: 6px; } .set-lang b { font: 700 30px/1.1 'Nanum Myeongjo', 'Noto Serif SC', 'Shippori Mincho', serif; } .set-lang small { font-size: 14px; color: #CDBB98; } .set-lang.on { background: linear-gradient(#8A2A1C, #4A120C) !important; box-shadow: 0 0 0 1px #000, 0 0 0 3px #FFD98A, 0 0 26px #E8A04A66 !important; } .set-lang.busy { opacity: .5; }
.set-keys { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 22px; margin: 8px 0 14px; } .set-key { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 54px; border-bottom: 1px solid #B8925A44; } .set-key > span { font: 700 18px/1.2 var(--serif); color: #F4E7C8; } .set-key > div { display: flex; gap: 6px; } .set-chip { min-width: 46px; height: 42px; padding: 0 10px !important; font: 700 17px/1 'Galmuri11', sans-serif !important; color: #2A1408 !important; background: linear-gradient(#FFF6DE, #D8C08A) !important; border-radius: 6px; box-shadow: 0 3px 0 #7A5A2A, 0 0 0 1px #000 !important; } .set-chip.add { color: #CDBB98 !important; background: none !important; box-shadow: inset 0 0 0 1px #B8925A88 !important; } .set-chip.wait { color: #fff !important; background: #C6382C !important; animation: setWait .6s infinite alternate; } .set-chip.no { animation: shake .3s steps(3); } @keyframes setWait { to { filter: brightness(1.5); } } .set-fix { margin-top: 12px !important; }
.set-pads { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 10px; } .set-padopt { display: grid; justify-items: center; gap: 6px; padding: 12px !important; color: #F4E7C8 !important; background: #1A120F !important; box-shadow: inset 0 0 0 1px var(--brass2) !important; border-radius: 6px; } .set-padopt.on { box-shadow: inset 0 0 0 3px #FFD98A, 0 0 22px #E8A04A55 !important; } .set-padopt b { font: 700 20px/1.2 var(--serif); } .set-padopt small { font-size: 15px; line-height: 1.35; color: #CDBB98; white-space: normal; }
.set-pad { position: relative; display: flex; justify-content: space-between; align-items: flex-end; width: 100%; aspect-ratio: 2.1; padding: 8px 12px; box-sizing: border-box; border-radius: 10px; background: url(assets/layers/alley_2_mid.webp) center bottom / cover, linear-gradient(#141A34, #2A3560); box-shadow: 0 0 0 3px #0B0812, 0 0 0 5px #6A5A48; } .set-pad span { display: flex; gap: 5px; align-items: flex-end; } .set-pad i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font: 700 15px/1 sans-serif; font-style: normal; color: #fff; background: #FFFFFF38; box-shadow: inset 0 0 0 2px #FFFFFFA0; } .set-pad .tp-jump { width: 42px; height: 42px; background: #FFE08A55; box-shadow: inset 0 0 0 2px #FFE08A; } .set-pad .tp-hand { background: #FF785A55; box-shadow: inset 0 0 0 2px #FFAA8C; } .set-pad .tp-dodge { background: #78C8FF44; box-shadow: inset 0 0 0 2px #9FE8FF; } .set-pad.classic .tp-hand { margin-bottom: 24px; } .set-pad.keys .tp-hand { width: 42px; height: 42px; } .set-pad .arrows { display: grid; grid-template-columns: 34px 34px; justify-items: center; gap: 4px 8px; } .set-pad .arrows .tp-jump { grid-column: 1 / 3; }
.set-gear { display: block; width: 36px; height: 36px; } .set-gear svg { width: 100%; height: 100%; }
@media (max-height: 520px) { .modal.settings .panel { padding: 10px 14px; } .modal.settings h2 { font-size: 24px !important; margin: 0 0 4px; } .set-tabs { margin-bottom: 8px; } .set-tab { min-height: 38px; font-size: 15px !important; } .set-body { min-height: 0; } .set-row { min-height: 50px; } .set-lang { min-height: 78px; } .set-lang b { font-size: 24px; } .set-key { min-height: 44px; } .set-key > span { font-size: 15px; } .set-chip { height: 34px; min-width: 38px; font-size: 14px !important; } .set-pad { aspect-ratio: 2.8; } .set-pad i { width: 24px; height: 24px; font-size: 11px; } .set-pad .tp-jump, .set-pad.keys .tp-hand { width: 30px; height: 30px; } .set-pad .arrows { grid-template-columns: 26px 26px; } .set-x { width: 40px; height: 40px; } }
/* ── 언어별 글꼴 (js/i18n.js) ── */
html[data-lang=ja] { --disp: 'Yuji Boku', 'Nanum Brush Script', serif; --serif: 'Shippori Mincho', 'Nanum Myeongjo', serif; }
html[data-lang=zh] { --disp: 'Ma Shan Zheng', 'Nanum Brush Script', serif; --serif: 'Noto Serif SC', 'Nanum Myeongjo', serif; }
/* 한국어가 아닐 때: 한글 로고 바로 밑에 그 나라 말 제목 (2026-11-26) */
html:not([data-lang=ko])[data-lang] .title-screen { --lw: max(230px, min(620px, 74vw, calc((95vh - 372px) / .441))); --lt: 4vh; } html:not([data-lang=ko])[data-lang] .title-screen:has(.title-resume) { --lw: max(230px, min(620px, 74vw, calc((95vh - 462px) / .441))); }
html:not([data-lang=ko])[data-lang] .title-logo { width: var(--lw); top: var(--lt); }
html:not([data-lang=ko])[data-lang] .title-screen h1 { position: absolute; left: 0; right: 0; top: calc(var(--lt) + var(--lw) * .441 - 2px); z-index: 3; width: fit-content; max-width: 96vw; height: auto; margin: 0 auto; overflow: visible; clip-path: none; padding: 3px 40px; font: 700 clamp(19px, calc(var(--lw) * .05), 32px)/1.2 var(--serif); letter-spacing: .14em; text-align: center; color: #FFE9B8; text-shadow: 0 2px 0 #1A0C06, 0 0 12px #000, 0 0 18px #000; background: linear-gradient(90deg, transparent, #0B0812B0 18%, #0B0812B0 82%, transparent); }
html[data-lang=ja] .title-screen h1 { font-size: clamp(22px, calc(var(--lw) * .064), 40px) !important; letter-spacing: .2em; padding-top: 0; } .title-screen h1 rt { font: 400 .4em/1.2 var(--serif); letter-spacing: .12em; color: #E9C98A; text-align: center; } html[data-lang=en] .title-screen h1 { letter-spacing: .06em; }
html:not([data-lang=ko])[data-lang] .title-screen .sub { display: none; }
html[data-lang=en] .title-menu .mode-btn { font-size: clamp(26px, 3.3vw, 42px) !important; letter-spacing: .02em; white-space: nowrap; }
html[data-lang=en] .intent.lie::after { content: ' 🐦 maybe a lie'; } html[data-lang=ja] .intent.lie::after { content: ' 🐦 嘘かも'; } html[data-lang=zh] .intent.lie::after { content: ' 🐦 也许是假的'; }
html[data-lang=en] .shop-item.sold::after { content: 'SOLD'; } html[data-lang=ja] .shop-item.sold::after { content: '売切'; } html[data-lang=zh] .shop-item.sold::after { content: '已售'; }
html[data-lang=en] .sj-pillar.me .tile:nth-of-type(1)::before { content: 'ME'; } html[data-lang=ja] .sj-pillar.me .tile:nth-of-type(1)::before, html[data-lang=zh] .sj-pillar.me .tile:nth-of-type(1)::before { content: '我'; }
.set-pad i svg { width: 62%; height: 62%; overflow: visible; } .set-pad .f, .set-pad .h path { fill: #fff; } .set-pad .l { fill: none; stroke: #fff; stroke-width: 4.4; } .set-pad .h path { stroke: #fff; stroke-width: 4.6; stroke-linecap: round; } .set-pad .d path { fill: #0B0812; stroke: #0B0812; stroke-width: 8; } .set-pad .d path:first-child, .set-pad .h path:first-child { fill: none; }
/* 영어: 글이 길어지는 곳 */
@media (min-height: 521px) { html[data-lang=en] .topbar { gap: 6px; } html[data-lang=en] .topbar > * { font-size: 15px; padding-left: 7px; padding-right: 7px; } }
html[data-lang=en] .job .ft-gift { flex-wrap: wrap !important; } html[data-lang=en] .ft-gift span { font-size: 11.5px; padding: 2px 6px; } html[data-lang=en] .job h3 small { font-size: 12px; } html[data-lang=en] .job { word-break: normal; }
html[data-lang=en] body:not(.dream) .battle button.special { font-size: 13px !important; letter-spacing: -.01em; white-space: nowrap; } html[data-lang=en] .battle .act-right .big, html[data-lang=en] .battle button.big { font-size: clamp(18px, 1.9vw, 24px) !important; }
html[data-lang=en] .set-name { font-size: 18px; } html[data-lang=en] .set-tab { font-size: 17px !important; }
html[data-lang=en] .mp-title h2, html[data-lang=en] .sj-title { letter-spacing: 0; }
@media (max-height: 520px) { html[data-lang=en] .job .ft-why { font-size: 11px; line-height: 1.25; min-height: 0; } html[data-lang=en] .ft-gift span { font-size: 9.5px; padding: 1px 4px; } html[data-lang=en] .ft-gift { gap: 2px !important; } html[data-lang=en] .ft-gift .ic { width: 12px; height: 12px; } html[data-lang=en] .ft-rib { font-size: 12px !important; } html[data-lang=en] .ft-say { font-size: 12px; } .set-pad { aspect-ratio: 3.6 !important; } html[data-lang=en] .set-padopt small { font-size: 12px; } html[data-lang=en] body:not(.dream) .battle button.special { font-size: 11px !important; } }
/* 일본어 · 중국어는 글자 사이에서 줄을 바꾼다 */
html[data-lang=ja] body *, html[data-lang=zh] body * { word-break: normal !important; line-break: strict; } html[data-lang=ja] .job .ft-gift, html[data-lang=zh] .job .ft-gift { flex-wrap: wrap !important; }
@media (max-height: 520px) { html:not([data-lang=ko])[data-lang] .title-screen, html:not([data-lang=ko])[data-lang] .title-screen:has(.title-resume) { --lw: min(236px, 32vw, calc((100vh - 248px) / .441)); --lt: 0px; } html:not([data-lang=ko])[data-lang] .title-screen h1 { font-size: 15px; padding: 0 20px; } html[data-lang=ja] .title-screen h1 { font-size: 18px !important; } }
/* ── 합동 공격 컷인 (js/joint.js) ── */
.jt-cut { position: fixed; inset: 0; z-index: 92; overflow: hidden; background: #05060FD9; pointer-events: none; transition: opacity .3s, transform .3s; } .jt-cut.out { opacity: 0; transform: scale(1.12); }
.jt-cut .jt-p { position: absolute; top: -4%; height: 108%; background-size: cover; background-position: center 22%; opacity: 0; animation: jtIn .3s cubic-bezier(.1,1.2,.3,1) both; animation-delay: calc(.04s + var(--i) * .2s); }
.jt-cut .jt-p::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, color-mix(in srgb, var(--jc), #05060F 55%)), repeating-linear-gradient(98deg, #fff0 0 26px, #ffffff18 26px 28px); animation: uc-speed .25s linear infinite; }
.jt-cut .jt-p span { position: absolute; z-index: 1; left: 50%; bottom: 33%; translate: -50% 0; font: 400 clamp(30px, 4.4vw, 60px)/1 var(--disp); color: #FFF6E0; text-shadow: 0 3px 0 #000, 0 0 20px var(--jc), 0 0 8px #000; white-space: nowrap; }
.jt-cut.n2 .jt-p { width: 60%; } .jt-cut.n2 .jt-p:nth-child(1) { left: -2%; clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%); } .jt-cut.n2 .jt-p:nth-child(2) { right: -2%; clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%); }
.jt-cut.n3 .jt-p { width: 43%; } .jt-cut.n3 .jt-p:nth-child(1) { left: -2%; clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%); } .jt-cut.n3 .jt-p:nth-child(2) { left: 28.5%; clip-path: polygon(22% 0, 100% 0, 78% 100%, 0 100%); } .jt-cut.n3 .jt-p:nth-child(3) { right: -2%; clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%); }
@keyframes jtIn { 0% { opacity: 0; transform: translateY(-70%) scale(1.3); filter: brightness(3); } 60% { opacity: 1; } 100% { opacity: 1; transform: none; filter: none; } }
.jt-cut .jt-p:nth-child(even) { animation-name: jtIn2; } @keyframes jtIn2 { 0% { opacity: 0; transform: translateY(70%) scale(1.3); filter: brightness(3); } 60% { opacity: 1; } 100% { opacity: 1; transform: none; filter: none; } }
.jt-txt { position: absolute; left: 0; right: 0; bottom: 4%; z-index: 3; text-align: center; opacity: 0; padding: 14px 0; background: linear-gradient(transparent, #05060FB0 30%, #05060FB0 80%, transparent); } .jt-cut.slam .jt-txt { animation: jtSlam .3s cubic-bezier(.1,.9,.2,1) both; } @keyframes jtSlam { 0% { opacity: 0; transform: scale(2.6); } 100% { opacity: 1; transform: none; } }
.jt-txt small { display: block; font: 700 clamp(16px, 2.2vw, 28px)/1.2 var(--serif); color: #FFE08A; text-shadow: 0 2px 0 #000, 0 0 12px #000; letter-spacing: .2em; } .jt-txt b { font: 400 clamp(56px, 10vw, 140px)/1 var(--disp); color: #FFF6D8; text-shadow: 0 4px 0 #7A1A0A, 0 0 4px #3A0E04, 0 0 10px #000, 0 0 34px #FF6A2A, 0 0 70px #FF9A2A; white-space: nowrap; }
.jt-cut.slam::after { content: ''; position: absolute; inset: 0; z-index: 2; background: #fff; animation: ciFlash .4s ease-out both; } html[data-lang=en] .jt-txt b { font-size: clamp(40px, 7vw, 100px); }
/* ── 레벨 업: 하나를 고르라는 것이 한눈에 (js/game.js chooseLevelPerk) ── */
body:is(.dream, :not(.dream)) .modal.levelup { background: #050303F2; } .modal.levelup .panel { width: min(860px, 95vw); } .lv-top { display: flex; align-items: baseline; justify-content: center; gap: 18px; flex-wrap: wrap; } .modal.levelup .lv-burst { font: 400 46px/1 var(--disp); } .modal.levelup h2 { margin: 0; } .lv-shingi { margin: 8px 0 4px; }
.modal .panel h3.perk-ask { position: relative; display: block; width: fit-content; margin: 14px auto 20px; padding: 9px 46px 11px; font: 400 clamp(28px, 3.8vw, 42px)/1.1 var(--disp) !important; color: #FFF3D0; text-shadow: 0 2px 0 #5A0E06; background: linear-gradient(90deg, transparent, #A8261AE6 14%, #C6382C 50%, #A8261AE6 86%, transparent); } .perk-ask::after { content: ''; position: absolute; left: 50%; bottom: -13px; width: 0; height: 0; border: 13px solid transparent; border-top-color: #FFD98A; border-bottom: 0; translate: -50% 0; animation: perkAsk .6s infinite alternate ease-in-out; } @keyframes perkAsk { to { transform: translateY(6px); } }
.perk-choices { align-items: stretch; gap: 16px; } body:is(.dream, :not(.dream)) .perk { position: relative; flex: 1 1 0; width: auto; min-width: 150px; max-width: 250px; padding: 18px 12px 14px; gap: 8px; color: var(--paper); background: linear-gradient(#3A281E, #17100C); box-shadow: 0 0 0 1px #000, 0 0 0 3px #B8925A; border-radius: 6px; animation: perkGlow 1.8s infinite ease-in-out; animation-delay: calc(var(--i) * .3s); transition: transform .15s, opacity .3s; } @keyframes perkGlow { 0%, 60%, 100% { box-shadow: 0 0 0 1px #000, 0 0 0 3px #B8925A; } 25% { box-shadow: 0 0 0 1px #000, 0 0 0 3px #FFE9AE, 0 0 30px #FFD54A99; } }
body:is(.dream, :not(.dream)) .perk:is(:hover, :focus-visible) { transform: translateY(-7px) scale(1.03); animation: none; box-shadow: 0 0 0 1px #000, 0 0 0 4px #FFE9AE, 0 0 36px #FFD54ACC !important; outline: 0; } .perk .pi .ic { width: 72px; height: 72px; } body:is(.dream, :not(.dream)) .perk b { font: 700 22px/1.2 var(--serif); color: #FFF1CF; } body:is(.dream, :not(.dream)) .perk small { font: 400 17px/1.35 'Galmuri11', sans-serif; color: #E2D0A8; white-space: normal; } .perk em { font-size: 13px; color: #BFF0C8; }
.perk kbd { position: absolute; left: 8px; top: 8px; min-width: 24px; height: 24px; font: 700 14px/24px 'Galmuri11', sans-serif; color: #2A1408; background: #FFE9B8; border-radius: 4px; text-align: center; } @media (any-pointer: coarse) { .perk kbd { display: none; } }
.perk-go { margin-top: auto; align-self: stretch; padding: 10px 0; font: 700 20px/1 var(--serif); color: #FFF6DC; background: linear-gradient(#D8402E, #8A1A10); border-radius: 5px; box-shadow: 0 0 0 1px #000, 0 0 0 2px #FFD98A, inset 0 1px 0 #FFB09A; }
.perk.taken { animation: none !important; transform: scale(1.07) !important; box-shadow: 0 0 0 1px #000, 0 0 0 5px #FFE9AE, 0 0 60px #FFD54A !important; } .perk.taken::after { content: ''; position: absolute; left: 50%; top: 46%; width: 62%; aspect-ratio: 1; background: url(assets/ui/seal.webp?v=1) center / contain no-repeat; animation: stamp .45s cubic-bezier(.3,1.6,.5,1) both; } .perk.gone { opacity: .12; transform: scale(.9); animation: none !important; }
@media (max-height: 520px) { .perk-choices { zoom: 1 !important; gap: 10px; margin: 4px 0; } .modal.levelup .lv-burst { font-size: 28px; } .modal.levelup .panel h2 { font-size: 22px !important; } .lv-shingi { margin: 2px 0; font-size: 14px; } .modal .panel h3.perk-ask { margin: 4px auto 14px; padding: 4px 34px 6px; font-size: 24px !important; } body:is(.dream, :not(.dream)) .perk { padding: 8px 8px; gap: 3px; } .perk .pi .ic { width: 40px; height: 40px; } body:is(.dream, :not(.dream)) .perk b { font-size: 17px; } body:is(.dream, :not(.dream)) .perk small { font-size: 13px; } .perk-go { padding: 7px 0; font-size: 16px; } }
/* ── 위태로울 때 (js/lowhp.js): HP 30% 이하 ── */
.low-edge { position: fixed; inset: 0; z-index: 40; pointer-events: none; box-shadow: inset 0 0 90px 10px #D8160A99; animation: lowEdge .9s infinite; transition: opacity .3s; } .low-edge.off { opacity: 0; } @keyframes lowEdge { 0%, 100% { opacity: .3; } 8% { opacity: 1; } 20% { opacity: .4; } 30% { opacity: .85; } 46% { opacity: .3; } }
.eat-now { position: absolute; z-index: 8; display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 6px 16px 6px 8px !important; color: #FFF6DC !important; background: linear-gradient(#D8402E, #8A1410) !important; border: 0 !important; border-image: none !important; border-radius: 34px; box-shadow: 0 0 0 2px #1A0604, 0 0 0 5px #FFD98A, 0 0 34px #FF5A3A, 0 6px 16px #000A !important; animation: eatNow .9s infinite; touch-action: none; } @keyframes eatNow { 0%, 100% { transform: scale(1); } 10% { transform: scale(1.09); } 22% { transform: scale(1); } 32% { transform: scale(1.06); } 46% { transform: scale(1); } }
.eat-now img { width: 50px; height: 50px; object-fit: contain; image-rendering: pixelated; background: #2A0806; border-radius: 50%; padding: 4px; box-sizing: border-box; } .eat-now span { display: grid; text-align: left; gap: 2px; } .eat-now b { font: 700 24px/1 var(--serif); white-space: nowrap; } .eat-now small { font: 700 14px/1.1 var(--serif); color: #FFE0B8; white-space: nowrap; } .eat-now kbd { min-width: 26px; height: 26px; font: 700 15px/26px 'Galmuri11', sans-serif; color: #2A1408; background: #FFE9B8; border-radius: 5px; text-align: center; } @media (any-pointer: coarse) { .eat-now kbd { display: none; } } .eat-now.wait { filter: grayscale(.8) brightness(.7); animation: none; }
.eat-now.in-run { left: clamp(10px, 2vw, 22px); bottom: 18px; } @media (hover: none), (pointer: coarse) { .eat-now.in-run { bottom: calc(clamp(48px, min(8.6vw, 15.5vh), 84px) * var(--pad-scale, 1) * 1.22 + 34px); } }
.stage .eat-now:not(.in-run) { left: 50%; bottom: 46px; translate: -50% 0; }
.fighter.hero.low:not(.hit) canvas.sprite { animation: lowBody .9s infinite; } @keyframes lowBody { 0%, 22%, 46%, 100% { filter: drop-shadow(0 0 4px #FF2A1A); } 8%, 32% { filter: sepia(1) saturate(7) hue-rotate(-50deg) brightness(1.15) drop-shadow(0 0 12px #FF2A1A); } }
.low-bar { display: grid; justify-items: center; gap: 3px; width: 130px; margin: 0 auto 4px; pointer-events: none; } .low-bar em { font: 700 18px/1 'Galmuri11', sans-serif; font-style: normal; color: #FFE0D8; text-shadow: 0 0 4px #000, 0 2px 0 #12060A, 0 0 10px #FF2A1A; } .low-bar span { position: relative; display: block; width: 100%; height: 12px; background: #3A0E10; box-shadow: 0 0 0 2px #FF6A5A, 0 0 0 4px #12060A, 0 0 16px #FF2A1A; } .low-bar i { display: block; height: 100%; background: #E8241A; animation: hp-low .9s infinite; }
@media (max-height: 520px) { .eat-now { min-height: 46px; padding: 3px 12px 3px 4px !important; gap: 6px; } .eat-now img { width: 36px; height: 36px; } .eat-now b { font-size: 18px; } .eat-now small { font-size: 11px; } .low-bar { width: 80px; } .low-bar em { font-size: 13px; } .low-bar span { height: 8px; } .stage .eat-now:not(.in-run) { bottom: 4px; } }
/* 되돌림 부적판: 회오리에 휩쓸려 되돌아간다 (js/trap.js) */
.trap-wipe { position: fixed; inset: 0; z-index: 60; pointer-events: none; background: conic-gradient(from 0deg, #12061E, #4A1A6A, #12061E, #7A1A2A, #12061E, #4A1A6A, #12061E); animation: trapWipe 1s ease-in-out both; } @keyframes trapWipe { 0% { opacity: 0; transform: scale(2.6) rotate(0); } 45%, 60% { opacity: 1; transform: scale(2.6) rotate(200deg); } 100% { opacity: 0; transform: scale(2.6) rotate(360deg); } }
/* 잠긴 외전 */
.side-card.locked { filter: grayscale(.7) brightness(.8); cursor: not-allowed; } .side-lock { max-width: 92% !important; font-size: 17px !important; color: #FFE9B8; }
.side-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)) !important; }
@media (max-height: 520px) { .side-foes canvas { height: 72px; } }
.side-card:last-child:nth-child(odd) { grid-column: 1 / -1; } /* 홀수로 남은 마지막 카드는 두 칸을 다 쓴다 */
@media (max-width: 760px) { .side-foes:has(canvas:nth-child(3)) canvas { height: 72px; } .side-card:has(.side-foes canvas:nth-child(3)) small { max-width: 44%; } }

/* ── 지도: 지나온 칸 다시 · 별점 (2026-11-26) ── */
.mp-node[role=button] { cursor: pointer; } .mp-node[role=button]::after { content: ''; position: absolute; left: -62px; top: -104px; width: 124px; height: 150px; }
.mp-node.past:hover .mp-art, .mp-node.sel.past .mp-art { opacity: 1; filter: none; } .mp-node.sel { z-index: 4; } .mp-node.sel.past .mp-stamp { opacity: .25; } .mp-node.sel.past > b { box-shadow: 0 0 0 1px #2B0A08, 0 0 0 3px #FFD54A, 0 4px 10px #000A; }
.mp-node.sel.past .mp-art { left: 34px; } .mp-node.sel.past.k-elite .mp-art { left: 58px; }
.mp-node.was > b { background: linear-gradient(#C6382B, #7A1418); color: #FFF3DC; }
.mp-walker { position: absolute; width: 0; height: 0; z-index: 5; pointer-events: none; } .mp-walker canvas.mp-me { position: absolute; left: 0; bottom: -4px; translate: -50% 0; scale: var(--face, 1) 1; transition: none; }
.mp-walker.here canvas.mp-me { left: -48px; } .mp-walker.here.wide canvas.mp-me { left: -72px; } .mp-walker.go canvas.mp-me { animation-duration: .22s; }
.mp-hint { position: absolute; left: 8px; bottom: 4px; z-index: 3; padding: 3px 12px; font: 700 14px/1.4 var(--serif); color: #E4D6BC; background: #150B07C8; border-radius: 12px; }
.stars3 { display: inline-flex; gap: 1px; vertical-align: middle; } .stars3 img { width: 22px; height: 22px; filter: drop-shadow(0 1px 1px #000C); }
.mp-node > .stars3 { position: absolute; left: 0; top: -11px; translate: -50% 0; z-index: 2; } .mp-node > .stars3 img:nth-child(2) { translate: 0 4px; }
.stars3.big img { width: 34px; height: 34px; } .stars3.huge { gap: 8px; } .stars3.huge img { width: clamp(46px, 9vh, 84px); height: auto; } .stars3.huge img:nth-child(2) { translate: 0 -12px; scale: 1.14; }
.stars3.huge img.on { animation: starIn .42s calc(var(--s) * .34s) both cubic-bezier(.2, 1.6, .4, 1); } @keyframes starIn { from { opacity: 0; transform: scale(2.6) rotate(-50deg); } }
.mp-total { display: inline-flex; align-items: center; gap: 4px; font: 700 18px/1 var(--serif); color: #FFE08A; } .mp-total img { width: 24px; height: 24px; }
.map-screen .mp-info p.mp-star-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; } .mp-star-line b { color: #FFE08A; }
.mp-btns { display: flex; flex-direction: column; gap: 6px; align-items: stretch; } .mp-btns .ghost { font-size: 15px; }
.star-res .panel { text-align: center; max-width: 560px; } .star-res h2 { margin: 2px 0 18px; } .star-res .rg-stats { margin: 16px auto; } .star-res .star-up { color: #FFE08A; font: 700 20px/1.4 var(--serif); }
@media (max-height: 520px) { .stars3 img { width: 14px; height: 14px; } .mp-node > .stars3 { top: -8px; } .stars3.big img { width: 22px; height: 22px; } .mp-walker.here canvas.mp-me { left: -28px; } .mp-walker.here.wide canvas.mp-me { left: -48px; } .mp-hint { font-size: 11px; padding: 1px 8px; } .mp-total { font-size: 13px; } .mp-total img { width: 16px; height: 16px; } .mp-btns { flex-direction: row; flex-wrap: wrap; justify-content: flex-end; max-width: 330px; } .mp-btns .ghost { font-size: 12px; min-height: 28px; padding: 2px 8px; } .star-res h2 { margin-bottom: 8px; font-size: 24px; } .star-res .rg-stats { margin: 6px auto; } .mp-node[role=button]::after { left: -36px; top: -56px; width: 72px; height: 80px; } }
.star-res .rg-stats { list-style: none; padding: 0; display: grid; gap: 8px; width: min(100%, 420px); } .star-res .rg-stats li { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 4px 4px; border-bottom: 1px solid #B98A3455; } .star-res .rg-stats b { color: #FFE9B8; }
.mp-node > .stars3 img { width: clamp(20px, 2.9vh, 28px); height: clamp(20px, 2.9vh, 28px); } @media (max-height: 520px) { .mp-node > .stars3 img { width: 15px; height: 15px; } .star-res .rg-stats { gap: 2px; } }
@media (max-height: 520px) { .star-res .panel { display: grid; grid-template-columns: 1fr 1.25fr; align-items: center; gap: 2px 18px; width: min(94vw, 720px); max-width: 720px; padding: 6px 14px; } .star-res .panel > small, .star-res .panel > h2, .star-res .panel > .stars3 { grid-column: 1; justify-self: center; margin: 0; } .star-res .panel > .stars3 { grid-row: 3 / span 2; } .star-res .rg-stats { grid-column: 2; grid-row: 1 / span 3; width: 100%; margin: 0; font-size: 14px; } .star-res .star-up { grid-column: 2; margin: 0; font-size: 16px; } .star-res .panel > .big { grid-column: 1 / -1; justify-self: center; } }

/* ── 진행 기록 보는 화면 (개발 모드, js/trackview.js) ── */
.modal.tv .panel { position: relative; width: min(96vw, 1180px); max-width: none; max-height: 94vh; overflow: auto; text-align: left; } .modal.tv h2 { margin: 0 0 4px; } .modal.tv h4 { margin: 18px 0 6px; color: #FFE08A; }
.tv-segs { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 12px; } .tv-segs .set-seg button { font-size: 14px; min-height: 34px; padding: 2px 12px; }
.tv-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-bottom: 14px; } .tv-stat { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; background: #0E0805; border-left: 3px solid #B98A34; } .tv-stat small { color: #CDBB98; font-size: 13px; } .tv-stat b { font-size: 18px; color: #FFE9B8; word-break: keep-all; } .tv-stat span { font-size: 13px; color: #FF9A7A; }
.tv-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; } .tv-table th { padding: 6px 8px; text-align: left; color: #CDBB98; font-weight: 400; border-bottom: 2px solid #B98A34; white-space: nowrap; } .tv-table td { padding: 5px 8px; border-bottom: 1px solid #B98A3433; white-space: nowrap; }
.tv-act td { padding-top: 12px; color: #FFD54A; font-weight: 700; } .tv-row { cursor: pointer; } .tv-row:hover td, .tv-row.open td { background: #B98A3422; } .tv-row.bad .tv-name { color: #FF8A7A; } .tv-table td.red { color: #FF8A7A; font-weight: 700; }
.tv-bar { position: relative; width: 34%; min-width: 150px; } .tv-bar i { position: absolute; left: 8px; top: 6px; bottom: 6px; max-width: calc(100% - 16px); } .tv-bar i.in { background: #6A4A2A; } .tv-bar i.ok { background: #3A8A5A; } .tv-bar span { position: relative; padding-left: 8px; color: #FFF6DC; text-shadow: 0 1px 2px #000, 0 0 3px #000; }
.tv-more td { white-space: normal !important; background: #0A0503; } .tv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; padding: 6px 2px 10px; } .tv-box h5 { margin: 0 0 4px; font-size: 13px; color: #CDBB98; font-weight: 400; } .tv-box ul { list-style: none; margin: 0; padding: 0; } .tv-box li { position: relative; display: flex; justify-content: space-between; gap: 10px; padding: 3px 6px; margin-bottom: 2px; isolation: isolate; } .tv-box li i { position: absolute; left: 0; top: 0; bottom: 0; background: #A0402A66; z-index: -1; } .tv-box b { color: #FFE9B8; }
.tv-recent { list-style: none; margin: 0; padding: 0; font-size: 13px; } .tv-recent li { display: grid; grid-template-columns: 110px 80px 1fr 1.3fr 100px 90px; gap: 10px; padding: 4px 0; border-bottom: 1px solid #B98A3433; } .tv-recent em { font-style: normal; color: #FF9A7A; } .tv-recent em.e-win { color: #8AE0A0; } .tv-recent em.e-on { color: #FFE08A; }
.tv-empty { padding: 40px 0; text-align: center; color: #CDBB98; } .tv-msg { align-self: center; color: #8AE0A0; font-size: 14px; } .modal.tv .row { flex-wrap: wrap; justify-content: flex-start; margin-top: 16px; }
@media (max-width: 760px) { .tv-recent li { grid-template-columns: 1fr 1fr; } .modal.tv .tv-table { font-size: 12px; } .tv-table td, .tv-table th { padding: 4px; } .tv-bar { min-width: 90px; } }

/* ── 제목: 이어서 하기 (2026-11-26) ── */
.title-resume { display: flex !important; align-items: center; gap: 16px; width: min(calc(100% - 32px), 660px); min-height: 72px; margin: 0; padding: 6px 22px 6px 8px !important; text-align: left; background: linear-gradient(90deg, #3A1210F5, #1B0C08F2 70%, #120805E0) !important; border: 0 !important; border-radius: 6px; box-shadow: 0 0 0 1px #000, 0 0 0 3px #D8A24A, 0 0 0 4px #000, 0 0 26px #FFB45A55 !important; cursor: pointer; transition: transform .14s; }
.title-resume:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px #000, 0 0 0 3px #FFE08A, 0 0 0 4px #000, 0 0 34px #FFB45A99 !important; } .title-resume > img { width: 60px; height: 60px; object-fit: cover; object-position: top; border-radius: 4px; box-shadow: 0 0 0 1px #000, 0 0 0 2px #B98A34; }
.title-resume .tr-txt { display: flex; flex-direction: column; gap: 5px; min-width: 0; } .title-resume b { font: 400 34px/1 var(--disp); color: #FFE9B8; text-shadow: 0 2px 0 #1A0C06; } .title-resume small { display: flex; flex-wrap: wrap; gap: 2px 12px; font: 700 15px/1.3 var(--serif); color: #E4D6BC; } .title-resume i { font-style: normal; } .title-resume i + i { position: relative; } .title-resume i + i::before { content: ''; position: absolute; left: -8px; top: .6em; width: 3px; height: 3px; border-radius: 50%; background: #B98A34; } .title-resume i:last-child { color: #B9A684; }
@media (max-height: 520px) { .title-resume { min-height: 44px; padding: 2px 14px 2px 4px !important; gap: 10px; } .title-resume > img { width: 38px; height: 38px; } .title-resume b { font-size: 21px; } .title-resume small { font-size: 12px; } .title-resume .tr-txt { gap: 1px; } .title-screen:has(.title-resume) .title-sprites { display: none; } }
.title-screen:has(.title-resume) .sub { display: none; } @media (min-height: 521px) { .title-screen:has(.title-resume) .title-sprites canvas { width: clamp(48px, 7vw, 96px) !important; } }

/* 보상: 모두 받기 (2026-11-26) */
.qs-top { display: flex; align-items: center; justify-content: flex-end; gap: 16px; min-height: 40px; } body:not(.dream) .qs-all { display: inline-flex; align-items: center; gap: 8px; padding: 0 10px; font-size: 18px; white-space: nowrap; } .qs-all .ic { width: 26px; height: 26px; margin: 0; } .qs-all em { min-width: 26px; padding: 2px 7px; font: 700 15px/1.3 var(--serif); font-style: normal; text-align: center; color: #3A0A08; background: #FFD98A; border-radius: 14px; }
body:not(.dream) .loot-card.all .loot-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; }
@media (max-height: 520px) { .qs-top { min-height: 0; } body:not(.dream) .qs-all { font-size: 14px; } body:not(.dream) .loot-card.all .loot-stats { display: none; } }
html[data-lang=ja] .title-menu .mode-btn, html[data-lang=zh] .title-menu .mode-btn { white-space: nowrap; } /* 일본어 · 중국어 제목 단추는 한 줄 (수련장 → 修練 · 修炼) */
@media (min-height: 521px) and (max-height: 820px) { html:not([data-lang=ko])[data-lang] .title-screen:has(.title-resume) .title-sprites canvas { width: 58px !important; } } /* 이어서 하기가 있으면 제목 밑 자리를 남긴다 */

.title-screen:has(.title-resume) .title-sprites canvas { height: auto !important; object-fit: contain; } .set-msg { min-height: 1.3em; margin: 6px 0 0; color: #8AE0A0 !important; } .set-ctl:has(.set-seg + .ghost) { flex-wrap: wrap; }
.set-ctl:has(.set-seg + .ghost) .set-seg { min-width: 170px; } .set-ctl:has(.set-seg + .ghost) .set-seg button { white-space: nowrap; } .set-ctl:has(.set-seg + .ghost) > .ghost { font-size: 15px; white-space: nowrap; }
/* 무기 카드의 별: 그림 위에 얹지 않고 맨 윗줄 가운데에 (보물 · 무기고 · 가방 · 무기 연습) — 2026-11-26 */
.wp-card .dex-no { position: static; align-self: center; margin: 0 0 4px; padding: 3px 10px 2px !important; font-size: 13px !important; line-height: 1.1; letter-spacing: .06em; color: #FFE08A !important; text-shadow: 0 1px 2px #000; border-radius: 10px; box-shadow: inset 0 0 0 1px #0006; }
.wp-card.t1 .dex-no { background: #2E4E74 !important; } .wp-card.t2 .dex-no { background: #56387E !important; } .wp-card.t3 .dex-no { background: #7E2E28 !important; } .wp-card.t4 .dex-no { background: #2F6234 !important; } .wp-card.t5 .dex-no { background: #7A4E0E !important; color: #FFEDA8 !important; }
.wp-card .wp-icon { width: 74px; height: 74px; object-fit: contain; }
button.wp-card.sg-far:disabled { opacity: 1; } .sg-far.wp-card .wp-icon { filter: grayscale(.45) brightness(.72) drop-shadow(0 4px 6px #000); }
@media (max-height: 520px) { .wp-card .dex-no { margin-bottom: 1px; padding: 1px 8px !important; font-size: 11px !important; } .wp-card .wp-icon { width: 58px; height: 58px; } }
body .boss-intro .bi-text { width: min(46vw, 560px); max-width: none; } body .boss-intro h1.bi-name { width: 100%; padding-top: .08em; } html[data-lang=ja] body .boss-intro h1.bi-name, html[data-lang=zh] body .boss-intro h1.bi-name { font-size: clamp(36px, 5.4vw, 66px) !important; } .bi-name .i-btn { flex: none; }
.run-gauges.stack { flex-direction: column; gap: 0; } .run-gauges.stack .rg { margin-bottom: -4px; }
/* 지도의 별: 이름을 가리지 않게 붉은 도장 위에 (2026-11-26) */
.mp-node > .stars3 { top: auto !important; bottom: 66px; } .mp-node > .stars3 img:nth-child(2) { translate: 0 -6px; } .mp-node.sel > .stars3 { display: none; } /* 고른 칸의 별은 아래 판에 크게 */
@media (max-height: 520px) { .mp-node > .stars3 { bottom: 41px; } .mp-node > .stars3 img:nth-child(2) { translate: 0 -4px; } }

/* ── 저장 단추 (js/save.js) ── */
.save-btn { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; } .save-btn img { width: 24px; height: 24px; image-rendering: pixelated; } .save-btn b { font: 700 15px/1 var(--serif); color: #FFE9B8; } .topbar > .save-btn, .run-hud > .save-btn { padding: 0 12px !important; height: 40px; min-height: 0; flex: 0 0 auto; }
.run-hud > .save-btn b { display: none; } .run-hud > .save-btn { padding: 0 !important; width: 44px; justify-content: center; }
.save-line { display: flex; justify-content: center; gap: 14px; padding: 8px 0; border: solid #B98A3466; border-width: 1px 0; color: #FFE08A; } .save-line b { color: #FFE9B8; }
@media (max-width: 1000px) { .topbar > .save-btn b { display: none; } .topbar > .save-btn { padding: 0 8px !important; } } @media (max-height: 520px) { .save-btn img { width: 18px; height: 18px; } .topbar > .save-btn, .run-hud > .save-btn { width: 30px; height: 26px; padding: 0 !important; justify-content: center; } .save-btn b { display: none; } .modal.save-ui .save-line { padding: 3px 0; margin: 0 0 6px; } }
.mp-tools > .save-btn { display: none; } @media (max-height: 520px) { .mp-tools > .save-btn { display: inline-flex; } .mp-tools > .save-btn b { display: inline; font-size: 12px; } }
/* 지도 종이 (2026-11-26): 위쪽 그림(위 25%)과 아래쪽 그림(아래 40%)은 제 크기로 두고 가운데 빈 종이만 늘린다. 위쪽 메뉴에 가리지 않게 그 아래에서 시작 */
body .map-screen > .mp-bg { --w: min(100vw, 1560px); position: absolute; inset: 20px -16px 0; background: none; border: 0 solid transparent; border-width: calc(var(--w) * .1406) 0 calc(var(--w) * .225); border-image: var(--map) 25% 0 40% 0 fill / 1 / 0 stretch; border-image-width: calc(var(--w) * .1406) 0 calc(var(--w) * .225); box-sizing: border-box; }
body .map-screen > .mp-bg::after { inset: calc(var(--w) * -.1406) 0 calc(var(--w) * -.225); background: linear-gradient(#0804024D 0, #0000 7%, #0000 66%, #080402B8 94%), radial-gradient(ellipse at 50% 42%, #0000 58%, #0804026B 100%); }
@media (max-height: 520px) { body .map-screen > .mp-bg { inset: -8px -8px 0; } }

/* ── 장터: 내 주머니 · 넓히기 · 덤 (js/shop.js) ── */
.sh-bag { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0 0 8px; padding: 6px 12px; background: linear-gradient(#2A1A0EE6, #150C07E6); border-radius: 8px; box-shadow: 0 0 0 1px #000, 0 0 0 2px #8A6A3A, inset 0 0 18px #0008; }
.sh-bagname { display: flex; align-items: center; gap: 8px; flex: none; } .sh-bagname > img { width: 38px; height: 38px; image-rendering: pixelated; } .sh-bagname > span { display: flex; flex-direction: column; } .sh-bagname b { font: 800 18px/1.2 var(--serif); color: #FFE9B8; white-space: nowrap; } .sh-bagname small { font-size: 13px; color: #CDBB98; white-space: nowrap; }
.sh-slots { display: grid; grid-template-columns: repeat(10, minmax(0, 56px)); gap: 6px; flex: 1 1 auto; max-width: 620px; justify-content: center; }
body :is(.shop-screen, .pk) button.sh-slot { position: relative; min-width: 0; min-height: 0; height: auto; aspect-ratio: 1; padding: 0 0 5px; display: grid; place-items: center; border: 0; border-image: none; border-radius: 6px; background: #0D0807; box-shadow: 0 0 0 1px #000, 0 0 0 2px #8A6A3A; }
.sh-slotimg { width: 74%; height: 74%; object-fit: contain; image-rendering: pixelated; } .sh-slot > b { position: absolute; right: -3px; top: -5px; min-width: 22px; padding: 0 4px; box-sizing: border-box; font: 800 16px/22px 'Galmuri11', sans-serif; color: #2B1708; text-shadow: none; text-align: center; background: linear-gradient(#FFF0C4, #E3B254); border-radius: 11px; box-shadow: 0 0 0 1px #3A1E08; }
.sh-pips { position: absolute; left: 4px; right: 4px; bottom: 4px; display: flex; gap: 2px; justify-content: center; } .sh-pips i { flex: 1; max-width: 12px; height: 4px; border-radius: 2px; background: #4A3A28; } .sh-pips i.on { background: #FFD54A; }
body :is(.shop-screen, .pk) button.sh-slot.none { background: #0D080799; box-shadow: 0 0 0 1px #000, 0 0 0 2px #4A3A28; } .sh-slot.none .sh-slotimg { filter: grayscale(1) brightness(.5); opacity: .7; } .sh-slot.none > b { color: #9A8A70; background: #221A14; box-shadow: 0 0 0 1px #4A3A28; }
body :is(.shop-screen, .pk) button.sh-slot.full { box-shadow: 0 0 0 1px #000, 0 0 0 2px #FFD54A, 0 0 10px #FFD54A88; } .sh-slot.full > b { color: #FFF3DC; background: linear-gradient(#D0402E, #8A1A18); } .sh-slot.bump { animation: shBump .5s ease-out; } @keyframes shBump { 30% { transform: scale(1.3); filter: brightness(1.7); } }
body .shop-screen button.sh-widen { flex: none; display: flex; flex-direction: row; align-items: center; gap: 8px; min-width: 0; min-height: 0; padding: 0 4px 0 12px; text-align: left; border: 0; border-image: none; border-radius: 8px; background: linear-gradient(#4A2E12, #24150A); box-shadow: 0 0 0 1px #000, 0 0 0 2px #C9A24B; } .sh-widen span:first-child { display: flex; flex-direction: column; } .sh-widen b { font: 800 16px/1.2 var(--serif); color: #FFE9B8; white-space: nowrap; } .sh-widen small { font-size: 13px; color: #9CFFB0; } .sh-widen .sh-tag { min-width: 76px; height: 48px; margin: 0; font-size: 18px; } .sh-widen.nope { animation: shNope .4s; }
.sh-pane:is(.p-food, .p-sell) .sh-up { height: clamp(72px, 10.6vh, 150px); } .sh-pane:is(.p-food, .p-sell) .sh-img { width: clamp(52px, 8vh, 98px); height: clamp(52px, 8vh, 98px); } .sh-pane:is(.p-food, .p-sell) .sh-tag { height: clamp(42px, 6vh, 54px); } .sh-pane:is(.p-food, .p-sell) .sh-tray { width: clamp(74px, 10.6vh, 130px); } .sh-pane:is(.p-food, .p-sell) .sh-name { margin-top: 4px; } .sh-pane:is(.p-food, .p-sell) { justify-content: flex-start; } .sh-shelf.foods { grid-template-columns: repeat(5, 1fr); }
.sh-dum { display: flex; align-items: center; gap: 12px; padding: 4px 16px; border-radius: 8px; background: #0D0807C0; box-shadow: 0 0 0 1px #000, 0 0 0 2px #6A5128; } .sh-dum > span:last-child { display: flex; flex-direction: column; } .sh-dum b { font: 700 17px/1.3 var(--serif); color: #FFE9B8; white-space: nowrap; } .sh-dum small { font-size: 13px; color: #CDBB98; }
.sh-stamps { display: flex; gap: 5px; } .sh-stamps i { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; box-sizing: border-box; border: 2px dashed #8A6A3A; } .sh-stamps i.on { border: 2px solid #FFB08A; background: radial-gradient(circle at 40% 35%, #F0604A, #A01E18 70%); box-shadow: 0 0 8px #E0503A88; } .sh-stamps img { width: 20px; height: 20px; image-rendering: pixelated; }
.sh-kinds { display: flex; gap: 8px; justify-content: center; margin: 0 0 6px; } body .shop-screen .sh-kinds button { min-height: 38px; padding: 0 18px; font: 700 16px/1 var(--serif); color: #CDBB98; background: #17100B; border: 0; border-image: none; border-radius: 19px; box-shadow: 0 0 0 1px #000, 0 0 0 2px #6A5128; } body .shop-screen .sh-kinds button.on { color: #2B1708; text-shadow: none; background: linear-gradient(#FFF0C4, #E3B254); } .sh-kinds small { margin-left: 6px; font-size: 13px; }
@media (max-width: 1350px) { .sh-bag { gap: 10px; } .sh-foot:has(.sh-dum) { gap: 14px; } .sh-bagname > img { width: 30px; height: 30px; } .sh-bagname b { font-size: 16px; } .sh-bagname small { display: none; } .sh-slots { grid-template-columns: repeat(10, minmax(0, 46px)); } } @media (max-width: 1000px) { .sh-dum small { display: none; } }
@media (max-height: 520px) { .sh-bag { gap: 6px; padding: 2px 6px; margin: 0 0 2px; } .sh-bagname > img { width: 22px; height: 22px; } .sh-bagname b { font-size: 12px; } .sh-slots { grid-template-columns: repeat(10, minmax(0, 32px)); gap: 5px; } .sh-slot > b { min-width: 14px; font-size: 11px; line-height: 14px; padding: 0 2px; top: -3px; } .sh-pips { bottom: 2px; gap: 1px; } .sh-pips i { height: 2px; } .sh-pane:is(.p-food, .p-sell) .sh-up { height: 50px; } .sh-pane:is(.p-food, .p-sell) .sh-img { width: 38px; height: 38px; } .sh-pane:is(.p-food, .p-sell) .sh-tray { width: 54px; } .sh-pane:is(.p-food, .p-sell) .sh-tag { height: 28px; } .sh-pane:is(.p-food, .p-sell) .sh-name { margin-top: 1px; } body .shop-screen button.sh-widen { padding: 0 2px 0 6px; gap: 4px; } .sh-widen b { font-size: 11px; } .sh-widen small { font-size: 10px; } .sh-pane .sh-widen .sh-tag { min-width: 46px; height: 24px; padding-top: 6px; font-size: 12px; } .sh-dum { padding: 0 8px; gap: 6px; } .sh-dum b { font-size: 12px; } .sh-dum small { display: none; } .sh-stamps i { width: 18px; height: 18px; } .sh-stamps img { width: 12px; height: 12px; } .sh-kinds { margin: 0 0 2px; } body .shop-screen .sh-kinds button { min-height: 24px; font-size: 12px; padding: 0 12px; } .sh-kinds small { font-size: 11px; } }
.sh-foot :is(.sh-purse, button.big) { white-space: nowrap; } .sh-dum { flex: 0 1 auto; } .sh-pane.p-sell .sh-note { margin: 2px 0 0; } .sh-shelf.foods { padding-bottom: 2px; } .sh-shelf.foods .sh-eff { font-size: clamp(12px, 1.6vh, 15px); }
@media (max-width: 1350px) { .sh-dum small { display: none; } .sh-dum { padding: 4px 12px; } }
@media (max-height: 520px) { .sh-pane:is(.p-food, .p-sell) .sh-up { height: 42px; } .sh-pane:is(.p-food, .p-sell) .sh-img { width: 34px; height: 34px; margin-bottom: 10px; } .sh-pane:is(.p-food, .p-sell) .sh-tray { width: 46px; } .sh-pane.p-food .sh-eff { font-size: 10px; white-space: nowrap; letter-spacing: -.4px; } .sh-shelf.foods .sh-eff { font-size: 10px; line-height: 1.1; } .sh-pane.p-food .sh-shelf { row-gap: 1px; } .sh-pane:is(.p-food, .p-sell) .sh-tag { height: 26px; } }
/* ── 주머니 단추 (js/pouch.js) ── */
.pk { position: relative; display: inline-flex; flex: 0 0 auto; padding: 0 !important; } .topbar > .pk { order: 9; } .mp-tools > .pk { display: none; } body[data-scr="battle"] .pk { display: none; }
body .pk .pk-btn { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 40px; min-height: 0; padding: 0 14px 0 10px !important; white-space: nowrap; } .pk-btn img { width: 28px; height: 28px; image-rendering: pixelated; } .pk-word { font: 700 15px/1 var(--serif); color: #FFE9B8; } .pk-n { min-width: 22px; padding: 0 6px; box-sizing: border-box; font: 800 15px/22px 'Galmuri11', sans-serif; color: #2B1708; text-shadow: none; text-align: center; background: linear-gradient(#FFF0C4, #E3B254); border-radius: 11px; }
.pk.open .pk-btn { box-shadow: 0 0 0 1px #000, 0 0 0 2px #FFD54A, 0 0 12px #FFD54A66; }
.pk-strip { position: absolute; z-index: 40; left: calc(100% + 10px); top: 50%; translate: 0 -50%; display: flex; gap: 8px; visibility: hidden; pointer-events: none; padding: 3px 4px; } .pk.open .pk-strip { visibility: visible; pointer-events: auto; }
.pk-strip.down { top: calc(100% + 8px); translate: none; padding: 10px 12px; background: linear-gradient(#2A1A0EFA, #150C07FA); border-radius: 8px; box-shadow: 0 0 0 1px #000, 0 0 0 2px #B98A34, 0 10px 24px #000C; }
body .pk button.sh-slot { width: 42px; height: 42px; flex: 0 0 auto; } .pk .sh-slot > b { font-size: 14px; line-height: 19px; min-width: 19px; }
.pk.anim.open .sh-slot { animation: pkOut .34s calc(var(--i) * 32ms) cubic-bezier(.2, 1.3, .4, 1) both; } @keyframes pkOut { from { opacity: 0; transform: translateX(calc((var(--i) + 1) * -48px)) scale(.4) rotate(-14deg); } 60% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pk.anim.open .sh-slot { animation: none; } }
@media (max-width: 1000px) { .topbar > .pk .pk-word { display: none; } }
@media (max-height: 520px) { .mp-tools > .pk { display: inline-flex; } .mp-tools > .pk .pk-btn { height: auto; padding: 2px 6px !important; gap: 3px; } .pk-btn img { width: 18px; height: 18px; } .pk-word { display: none; } .pk-n { font-size: 11px; line-height: 15px; min-width: 15px; padding: 0 4px; } body .pk button.sh-slot { width: 34px; height: 34px; min-height: 0; padding: 0 0 4px; } }
.mp-tools:has(.pk.open) { z-index: 60; }
/* ── 지난 막에 다녀오기 (js/map.js Trip) ── */
.mp-acts { position: absolute; left: 14px; top: 66px; z-index: 3; display: flex; gap: 8px; } body .mp-acts button.mp-act { display: inline-flex; align-items: center; gap: 7px; min-width: 0; min-height: 0; height: 36px; padding: 0 12px; border: 0; border-image: none; border-radius: 5px; background: linear-gradient(#3A2416, #1C110A); box-shadow: 0 0 0 1px #000, 0 0 0 2px #8A6A3A, 0 3px 6px #0008; color: #E4D6BC; opacity: 1; white-space: nowrap; } .mp-act b { font: 800 16px/1 var(--serif); color: inherit; } .mp-act small { font: 700 12px/1 'Galmuri11', sans-serif; color: #FFC9A8; } .mp-act .mp-total { font-size: 13px; gap: 3px; margin: 0; } .mp-act .mp-total img { width: 18px; height: 18px; }
body .mp-acts button.mp-act.on { background: linear-gradient(#C6382B, #7A1418); color: #FFF3DC; box-shadow: 0 0 0 1px #000, 0 0 0 2px #FFD54A; cursor: default; filter: none; } body .mp-acts button.mp-act:not(.on):hover { filter: brightness(1.25); }
.map-screen.away .mp-bg { filter: sepia(.35) saturate(.85); } body .mp-tools .mp-home { color: #FFE9B8; box-shadow: 0 0 0 1px #000, 0 0 0 2px #FFD54A; }
.map-screen.turn-l { animation: mpTurnL .42s cubic-bezier(.2, .8, .3, 1); } .map-screen.turn-r { animation: mpTurnR .42s cubic-bezier(.2, .8, .3, 1); } @keyframes mpTurnL { from { opacity: 0; transform: translateX(-9%); } } @keyframes mpTurnR { from { opacity: 0; transform: translateX(9%); } } @media (prefers-reduced-motion: reduce) { .map-screen:is(.turn-l, .turn-r) { animation: none; } }
@media (max-height: 520px) { .mp-acts { left: 10px; top: 42px; gap: 5px; } body .mp-acts button.mp-act { height: 24px; padding: 0 7px; gap: 4px; } .mp-act b { font-size: 12px; } .mp-act small { font-size: 10px; } .mp-act .mp-total { font-size: 11px; } .mp-act .mp-total img { width: 13px; height: 13px; } }
@media (max-height: 520px) { .mp-acts { top: 38px; } .mp-act .mp-total { display: none; } .mp-title:has(~ .mp-acts) em { display: none; } body .mp-tools .mp-home { display: none; } }
/* ── 치기 · 지키기와 기 모으기 (js/stance.js, 시험판) ── */
.st-btns { display: inline-flex; gap: 8px; } body .battle .st-btns button.big { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-width: 118px; line-height: 1.1; } .st-btns button b { font: 800 19px/1.1 var(--serif); } .st-btns button small { font: 700 12px/1.1 'Galmuri11', sans-serif; opacity: .9; }
body .battle .st-btns button.st-def { filter: hue-rotate(185deg) saturate(.9); } .st-btns.pulse button { animation: pulse 1s infinite alternate; }
body:not(.dream) .fighter .intent.stance-intent { display: flex; flex-direction: column; align-items: center; gap: 2px; background: linear-gradient(#2A1440, #12081E); box-shadow: 0 0 0 2px var(--sc), 0 0 16px var(--sc); animation: stGlow .9s infinite alternate; } .stance-intent small { font-size: 13px; color: #F0E4FF; } .stance-intent .i-btn { position: absolute; right: -10px; top: -10px; } @keyframes stGlow { to { box-shadow: 0 0 0 2px var(--sc), 0 0 28px var(--sc); } }
@media (max-height: 520px) { body .battle .st-btns button.big { min-width: 84px; padding: 2px 8px !important; } .st-btns button b { font-size: 14px; } .st-btns button small { font-size: 10px; } .stance-intent small { font-size: 11px; } }
@media (min-height: 521px) and (min-width: 1000px) { body:not(.dream) .battle .actions > .st-btns { grid-column: 3; grid-row: 5; align-self: center; display: flex; flex-direction: column; gap: 6px; width: calc(100% - 12px); margin-right: 12px; } body:not(.dream) .battle .st-btns button.big { width: 100%; min-width: 0; min-height: 48px; padding: 2px 6px !important; font-size: 18px; } }
@media (max-height: 520px) { body:not(.dream) .battle .st-btns button.big { min-height: 30px; } body:not(.dream) .battle .actions > .st-btns { gap: 3px; } }
.st-tricks { display: flex; gap: 6px; align-items: center; justify-content: center; margin-top: 4px; } .st-chip { padding: 2px 9px; font: 700 14px/1.3 'Galmuri11', sans-serif; color: #EAF4FF; background: #0B1424E0; border-radius: 10px; box-shadow: 0 0 0 1px #000, 0 0 0 2px #6A8AB0; white-space: nowrap; } .st-chip small { font-size: 11px; color: #B8CCE4; } .st-chip.snatch { box-shadow: 0 0 0 1px #000, 0 0 0 2px #C89A5A; } .st-tricks .i-btn { scale: .8; }
@media (max-height: 520px) { .st-chip { font-size: 11px; padding: 1px 6px; } .st-chip small { display: none; } }
.st-chip.rule { cursor: pointer; color: #FFF3DC; background: linear-gradient(#5A1A10, #2A0A06); box-shadow: 0 0 0 1px #000, 0 0 0 2px #FFD54A; }
.st-rule-modal .panel { max-width: 520px; text-align: center; } .st-rule-modal small { display: block; color: #E0C890; letter-spacing: .2em; margin-bottom: 8px; } .st-rule-row { margin: 10px 0; padding: 10px 14px; background: #0D0807B0; border-radius: 8px; box-shadow: 0 0 0 1px #6A5128; } .st-rule-row b { font: 800 24px/1.3 var(--serif); color: #FFE08A; } .st-rule-row p { margin: 6px 0 0; }
.dev-proto .dev-pick { flex-wrap: wrap; gap: 6px; margin: 6px 0; } .dev-proto .dev-pick button { padding: 4px 10px; font-size: 14px; } .dev-proto .dev-pick button.on { box-shadow: 0 0 0 2px #FFD54A; color: #FFE08A; }
/* ── 향 불기 (태아령) ── */
.fx-blow { position: absolute; left: 0; top: 0; width: 130px; height: 9px; margin: -4px 0 0 -65px; border-radius: 6px; background: linear-gradient(90deg, #FFFFFF00, #CFEFFFF5 35%, #FFFFFF 60%, #FFFFFF00); filter: drop-shadow(0 0 6px #8FD4FF) drop-shadow(0 0 2px #FFFFFF); transform-origin: 50% 50%; pointer-events: none; }
.incense.gust .inc-stick { animation: incGust .9s ease-out; } @keyframes incGust { 15% { transform: translateX(-50%) rotate(-9deg); } 40% { transform: translateX(-50%) rotate(6deg); } 70% { transform: translateX(-50%) rotate(-3deg); } }
.incense.gust .inc-ember, .incense.blown .inc-ember { box-shadow: 0 0 8px 4px #FFB04Acc, 0 0 20px 7px #FF4A1A88; animation-duration: .12s; }
.incense.blown .inc-smoke i { animation-duration: 1s; background: #CFE8FF99; }
.inc-wind { position: absolute; left: -40px; top: -6px; width: 44px; height: 30px; pointer-events: none; } .inc-wind i { position: absolute; left: 0; width: 34px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, #FFFFFF00, #E8F6FFDD, #FFFFFF00); animation: incWind .8s linear infinite; } .inc-wind i:nth-child(1) { top: 2px; } .inc-wind i:nth-child(2) { top: 12px; animation-delay: .27s; } .inc-wind i:nth-child(3) { top: 22px; animation-delay: .53s; }
@keyframes incWind { from { transform: translateX(-26px); opacity: 0; } 30% { opacity: 1; } to { transform: translateX(30px); opacity: 0; } }
.incense.blown .inc-label { color: #BFE8FF; }
body:not(.dream) .battle button.special.blind { filter: grayscale(.8) brightness(.75); cursor: not-allowed; } body:not(.dream) .battle .special.blind .sp-label b.sp-blind { display: inline !important; color: #CFE0F0; }
/* ── 족자 칸 술법: 태우기 · 먹물 칸 · 칸 줄이기 ── */
.hand .card.burnt { filter: sepia(.9) brightness(.5) contrast(1.2); pointer-events: auto; cursor: not-allowed; position: relative; } .hand .card.burnt::after { content: '🔥'; position: absolute; left: 50%; top: 40%; translate: -50% -50%; font-size: 34px; filter: drop-shadow(0 0 8px #FF6A1A); animation: burnFlick .3s steps(2) infinite; } @keyframes burnFlick { 50% { transform: scale(1.15, .9); } }
.hand .card.burnt::before { content: ''; position: absolute; inset: 0; z-index: 2; background: radial-gradient(ellipse at 50% 100%, #FF6A1A88, #0000 70%); }
body:not(.dream) .battle .slot.inked { position: relative; } .battle .slot.inked::after { content: ''; position: absolute; inset: -6px; z-index: 3; pointer-events: none; background: radial-gradient(circle at 40% 45%, #0A0612F5 0 38%, #1A1028E0 52%, #0A061200 72%), radial-gradient(circle at 70% 70%, #0A0612E8 0 18%, #0A061200 30%), radial-gradient(circle at 25% 75%, #0A0612E8 0 12%, #0A061200 22%); filter: blur(.5px); }
body:not(.dream) .battle .slot.closed { opacity: .55; background: repeating-linear-gradient(45deg, #1A120C, #1A120C 8px, #2A1E14 8px, #2A1E14 16px); box-shadow: inset 0 0 0 2px #6A5128; } .slot.closed .slot-empty { font-size: 26px; }
/* ── 수련장 무기 시험대 카드 (js/train.js) ── */
.tr-weapons .wp-card { position: relative; } .tr-weapons .wp-card > b { display: flex; flex-direction: column; align-items: center; font: 400 22px/1.05 var(--disp) !important; letter-spacing: 0; padding: 0 3px; white-space: nowrap; -webkit-text-stroke: .35px currentColor; } .tr-weapons .wp-card > b .wp-sub { font: 700 11px/1.2 var(--serif) !important; -webkit-text-stroke: 0; opacity: .75; letter-spacing: 0; white-space: nowrap; }
.tr-weapons .wp-card > b .i-btn { position: absolute; right: 5px; top: 5px; scale: .72; margin: 0; }
.tr-weapons .wp-card small .wp-atk { display: inline-flex; align-items: center; gap: 4px; } .tr-weapons .wp-card small .wp-atk b { font: 800 14px/1 var(--serif) !important; color: #2A160C; padding: 0; } body:not(.dream) .tr-weapons .wp-card small .wp-atk b { color: #FFE9B8; }
@media (max-height: 520px) { .tr-weapons .wp-card > b { font-size: 16px !important; } .tr-weapons .wp-card > b .i-btn { right: 2px; top: 2px; scale: .6; } }
/* ── 수련장으로 단추 ── */
.tr-back-btn { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; } .topbar > .tr-back-btn, .run-hud > .tr-back-btn { height: 40px; min-height: 0; padding: 0 12px !important; flex: 0 0 auto; color: #FFE9B8; box-shadow: 0 0 0 1px #000, 0 0 0 2px #C9A24B; } .tr-back-btn b { font: 700 15px/1 var(--serif); }
@media (max-height: 520px) { .topbar > .tr-back-btn, .run-hud > .tr-back-btn { height: 26px; padding: 0 6px !important; } .tr-back-btn b { font-size: 12px; } }
.ring-btn .rw-badge.on { animation: rwPulse 1.2s ease-in-out infinite; } @keyframes rwPulse { 50% { transform: scale(1.2); box-shadow: 0 0 10px #FF4A4A; } }
/* ── 수련장 다듬기 (2026-11-27): 대련 · 길 · 보스 재대결 · 무기 시험대의 칸을 한 모양으로 ── */
body[data-scr="train"] .train-screen { max-width: 1180px; gap: 12px; }
body[data-scr="train"] .train-screen :is(.shop-tab, .chip, .tr-lv, .tr-bonus, .tr-job small, .tr-random, .tr-spin) { font-family: var(--serif) !important; font-weight: 700; }
body[data-scr="train"] .train-screen .dex-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 2px 0 0; }
body[data-scr="train"] .train-screen .chip { min-height: 34px; padding: 0 16px; font-size: 15px; }
body[data-scr="train"] .train-screen :is(.tr-grid, .tr-weapons) { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 4px; }
body[data-scr="train"] .train-screen .tr-card { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 6px; min-height: 204px; padding: 12px 8px 12px; }
body[data-scr="train"] .train-screen .tr-card > .tr-tag { position: static; align-self: center; margin: 0; padding: 3px 12px 2px !important; font: 700 12px/1.25 var(--serif) !important; letter-spacing: .04em; color: #FFF6E0 !important; border-radius: 11px; background: #5A5048 !important; white-space: nowrap; }
body[data-scr="train"] .train-screen .tr-card.r-elite > .tr-tag { background: #56387E !important; } body[data-scr="train"] .train-screen .tr-card.r-boss > .tr-tag { background: #8E2A22 !important; }
body[data-scr="train"] .train-screen .tr-pic { display: grid; place-items: center; width: 100%; height: 92px; flex: none; } body[data-scr="train"] .train-screen .tr-pic :is(canvas, img) { max-width: 120px !important; max-height: 92px !important; width: auto !important; height: auto !important; object-fit: contain; }
body[data-scr="train"] .train-screen .tr-card > b.tr-name { display: flex; flex-direction: column; align-items: center; margin-top: 2px; font: 400 23px/1.05 var(--disp) !important; letter-spacing: 0; color: #1E1A15; white-space: nowrap; padding: 0 4px; -webkit-text-stroke: .3px currentColor; }
body[data-scr="train"] .train-screen .tr-card > b.tr-name .wp-sub { font: 700 11px/1.3 var(--serif) !important; -webkit-text-stroke: 0; opacity: .7; }
body[data-scr="train"] .train-screen .tr-card > small.tr-val { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; font: 700 14px/1 var(--serif) !important; color: #6A2A1E; } body[data-scr="train"] .train-screen .tr-card > small.tr-val > b, body[data-scr="train"] .train-screen .tr-card > small.tr-val .wp-atk b { font: 800 16px/1 var(--serif) !important; color: #2A160C; }
body[data-scr="train"] .train-screen .tr-card > small.tr-val .wp-atk { gap: 5px; }
body[data-scr="train"] .train-screen .tr-card .i-btn { position: absolute; right: 6px; top: 6px; scale: .72; margin: 0; }
body[data-scr="train"] .train-screen .tr-random { display: flex; margin: 14px auto 0; min-width: 180px; justify-content: center; font-size: 18px; }
body[data-scr="train"] .train-screen .tr-spin { margin: 0; font-size: 15px; }
@media (max-height: 520px) { body[data-scr="train"] .train-screen :is(.tr-grid, .tr-weapons) { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; zoom: 1; } body[data-scr="train"] .train-screen .tr-card { min-height: 150px; padding: 8px 4px; gap: 3px; } body[data-scr="train"] .train-screen .tr-pic { height: 60px; } body[data-scr="train"] .train-screen .tr-pic :is(canvas, img) { max-height: 60px !important; max-width: 90px !important; } body[data-scr="train"] .train-screen .tr-card > b.tr-name { font-size: 17px !important; } body[data-scr="train"] .train-screen .tr-card > .tr-tag { font-size: 10px !important; padding: 1px 8px !important; } body[data-scr="train"] .train-screen .chip { min-height: 26px; font-size: 13px; padding: 0 10px; } }
body[data-scr="train"] .train-screen .tr-empty { margin: 20px auto; padding: 14px 24px; max-width: 520px; text-align: center; font: 700 16px/1.5 var(--serif); color: #2A241C; background: #F7F1E4E8; border-radius: 10px; box-shadow: 0 0 0 2px #2A241C; }
/* 수련장: 위 메뉴는 고정, 아래 칸만 굴린다 (2026-11-27) */
body[data-scr="train"] .train-screen { height: calc(100dvh - var(--tr-top, 24px)); display: flex; flex-direction: column; overflow: hidden; }
body[data-scr="train"] .train-screen > :not(.tr-body-wrap) { flex: none; }
body[data-scr="train"] .train-screen > .tr-body-wrap { position: relative; flex: 1 1 0; min-height: 0; }
body[data-scr="train"] .tr-body { height: 100%; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 2px 58px 20px 2px; scrollbar-width: thin; }
body[data-scr="train"] .tr-body .dex-chips { position: sticky; top: 0; z-index: 3; padding: 8px 0 10px; background: transparent; transition: background .15s, box-shadow .15s; } /* 2026-11-29: 평소에는 바탕 없이 */
body[data-scr="train"] .tr-body.scrolled .dex-chips { background: #EDE6D8; box-shadow: 0 8px 10px -8px #3A2A1A66; } /* 내려 보는 중에만 바탕을 깔아 아래 카드가 비치지 않게 (js/fitname.js) */
body[data-scr="train"] .tr-scroll { position: absolute; right: 4px; z-index: 4; width: 46px; height: 46px; padding: 0; border-radius: 50%; font-size: 18px; line-height: 1; color: #FFF8E8; background: #1E1A15E6; box-shadow: 0 0 0 2px #F7F1E4, 0 4px 10px #0006; }
body[data-scr="train"] .tr-scroll.up { top: 6px; } body[data-scr="train"] .tr-scroll.dn { bottom: 10px; }
body[data-scr="train"] .tr-scroll[hidden] { display: none; }
body[data-scr="train"] #app { padding-bottom: 12px; }
.fighter.enemy canvas.sprite.beast-in { animation: beast-in .9s ease-out; } @keyframes beast-in { 0% { filter: brightness(3) sepia(1) hue-rotate(-30deg) saturate(4); transform: scale(.7); } 60% { filter: brightness(1.4); transform: scale(1.08); } 100% { filter: none; transform: none; } }

/* 2026-11-28: 키 큰 PC 화면에서 무대(최대 480px) 아래로 남던 빈 공간을 없앤다 — 줄 · 손패를 무대 바로 밑으로 올리고, 남는 자리는 맨 아래로 */
@media (min-height: 1020px) and (min-width: 1000px) { /* 그보다 낮은 창은 무대가 줄어들어 빈칸이 생기지 않는다 (1fr) */
  body:not(.dream) .battle { grid-template-rows: minmax(270px, 480px) auto auto auto auto; align-content: start; }
  body:not(.dream) .battle:has(.king) { grid-template-rows: minmax(332px, 480px) auto auto auto auto; } /* 왕 보스(도깨비 대왕 등) 규칙이 더 세서 따로 (2026-11-28) */
}

/* 장면 그림이 위로 솟을 때 의도 표시 · 말풍선도 함께 비킨다 (js/attacks.js lift, 2026-11-28) */
.fighter.enemy > .intent, .fighter.enemy > .bubble { translate: 0 var(--lift, 0px); transition: translate .12s; }

/* 5막 규칙 (js/rules5.js, 2026-11-28): 역병 족자 · 독 · 빼앗긴 부적 */
.hand .card.plague { filter: sepia(.6) hue-rotate(35deg) saturate(1.6) brightness(.62); cursor: not-allowed; position: relative; }
.hand .card.plague::after { content: '🦠'; position: absolute; left: 50%; top: 42%; translate: -50% -50%; font-size: 34px; filter: drop-shadow(0 0 8px #B8D84A); animation: burnFlick .5s steps(2) infinite; }
.r5-banner { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; max-width: 900px; margin: 0 auto; font-size: 13px; }
.r5-banner .r5 { padding: 4px 10px; border-radius: 4px; }
.r5-banner .poison { background: #17301A; color: #C8F4B0; box-shadow: 0 0 0 2px #5AC84A; }
.r5-banner .plague { background: #2E3012; color: #E8F0A0; box-shadow: 0 0 0 2px #B8D84A; }
.r5-banner .stolen { background: #2A2A36; color: #E0E0F0; box-shadow: 0 0 0 2px #A8A8C8; }
.r5-banner .serve { background: #3A1828; color: #FFE0EC; box-shadow: 0 0 0 2px #F2A0C0; }
.r5-banner .iron { background: #26282E; color: #E8ECF4; box-shadow: 0 0 0 2px #C8CDD6; }
.r5-banner .mirror { background: #24163A; color: #EAD8FF; box-shadow: 0 0 0 2px #8A5AD0; }
.st-btns .st-serve { background: linear-gradient(#8A3A5A, #5A1A36); box-shadow: 0 0 0 2px #F2A0C0, 0 0 12px #F2A0C088; }
/* 길 · 결투 무기 가방 단추 (2026-11-29) */
.run-hud .run-bag { display: inline-grid; place-items: center; padding: 2px 6px !important; } .run-hud .run-bag img { width: 26px; height: 26px; image-rendering: pixelated; }

.qs-row .qs-claim { white-space: nowrap; }

/* 🔮 윤달이의 오늘의 운세 (js/fortune.js) */
.fo-modal .panel { max-width: 560px !important; width: 94vw; max-height: 92vh; overflow-y: auto; text-align: left; }
.fo-head { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.fo-head .fo-dali { width: 76px; height: 76px; object-fit: contain; flex: none; }
.fo-head h3 { margin: 2px 0; } .fo-head p { margin: 0; opacity: .85; } .fo-head small { opacity: .7; }
.fo-weather { display: flex; align-items: center; gap: 10px; justify-content: center; padding: 8px; border-radius: 6px; background: #0003; margin: 6px 0; }
.fo-weather .fo-ic { font-size: 38px; } .fo-weather b { font-size: 22px; }
.fo-weather.lv0, .fo-weather.lv1 { box-shadow: inset 0 0 0 2px #FFD54A88; } .fo-weather.lv3, .fo-weather.lv4 { box-shadow: inset 0 0 0 2px #8FB4E088; }
.fo-text p { margin: 6px 0; line-height: 1.5; }
.fo-cats { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 5px; }
.fo-cats li { display: grid; grid-template-columns: 70px 52px 1fr; gap: 6px; align-items: baseline; font-size: 14px; line-height: 1.4; }
.fo-cats i { font-style: normal; color: #FFD54A; letter-spacing: -1px; } .fo-cats i.t2 { color: #9fb0c8; }
.fo-luck { margin: 6px 0; opacity: .9; }
.fo-gift { background: #FFD54A1f; border: 1px solid #FFD54A66; border-radius: 6px; padding: 6px 10px; margin: 8px 0; }
.fo-gift p { margin: 4px 0; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; } .fo-gift .el-icon, .fo-gift img { width: 20px; height: 20px; }
.fo-sub { border-top: 1px dashed #fff4; margin-top: 10px; padding-top: 8px; }
.fo-subrow { display: flex; gap: 6px; margin: 6px 0; }
.fo-subrow .fo-mail { flex: 1; min-width: 0; font: 600 15px/1 sans-serif; color: #2B1708; background: #F7EBD0; border: 0; border-radius: 3px; padding: 9px 8px; box-shadow: inset 0 2px 4px #0004, 0 0 0 2px #8A6A2E; outline: none; }
.fo-subrow .fo-mail:focus-visible { box-shadow: inset 0 2px 4px #0004, 0 0 0 3px #FFD54A; }
.fo-chk { display: flex; gap: 6px; align-items: flex-start; font-size: 13px; cursor: pointer; } .fo-chk input { margin-top: 2px; }
.fo-msg { font-size: 13px; color: #FFE08A; margin: 6px 0 0; min-height: 1em; }
.fo-note { font-size: 12px; opacity: .7; margin: 6px 0; }
.fo-zod { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 10px 0; }
.fo-zod button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; } .fo-zod .fo-em { font-size: 26px; }

/* 무기고 · 신령 소환 칸 (2026-11-29): 무기 카드와 같은 족자 틀 */
.armory .sp-head { display: flex; align-items: baseline; gap: 10px; margin: 22px 0 10px; font: 400 24px/1 var(--disp); color: #FFE08A; text-shadow: 0 2px 3px #000; }
.armory .sp-head::before { content: ''; flex: none; width: 26px; height: 2px; background: linear-gradient(90deg, transparent, #C9A24B); align-self: center; }
.armory .sp-head::after { content: ''; flex: 1; height: 2px; background: linear-gradient(90deg, #C9A24B, transparent); align-self: center; }
.armory .sp-head small { font: 700 12px/1 var(--serif); color: #CDBB98; letter-spacing: .04em; padding: 4px 9px 3px; border-radius: 10px; background: #0007; box-shadow: inset 0 0 0 1px #5A4526; }
.armory .wp-spirits { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.armory .wp-spirit { display: flex; gap: 10px; align-items: center; padding: 10px 12px 10px 8px; background: linear-gradient(#2B1F1AF2, #14100EF2); box-shadow: 0 0 0 1px #000, 0 0 0 2px #5A4526, inset 0 1px 0 #ffffff1c; border-radius: 4px; position: relative; overflow: hidden; }
.armory .wp-spirit::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 18% 50%, #9FE0D814, transparent 55%); pointer-events: none; }
.armory .sp-art { flex: none; width: 64px; height: 72px; object-fit: contain; object-position: bottom; filter: drop-shadow(0 3px 4px #000) saturate(.85); }
.armory .sp-txt { min-width: 0; }
.armory .wp-spirit b { display: inline; font: 400 20px/1.1 var(--disp); color: #FFE08A; text-shadow: 0 1px 2px #000; }
.armory .sp-role { display: inline-block; margin-left: 6px; vertical-align: 3px; font: 700 11px/1 var(--serif); font-style: normal; color: #FFE9B8; padding: 3px 7px 2px; border-radius: 9px; background: #56387E; box-shadow: inset 0 0 0 1px #0006; }
.armory .sp-tiger .sp-role { background: #7E2E28; } .armory .sp-magpie .sp-role { background: #2E4E74; } .armory .sp-serpent .sp-role { background: #2F6234; } .armory .sp-sansin .sp-role { background: #6A5226; } .armory .sp-saja .sp-role { background: #3A3A48; } .armory .sp-dokkaebi .sp-role { background: #7A4E0E; }
.armory .wp-spirit p { margin: 5px 0 0; font: 500 13px/1.45 var(--serif); color: #E8DCC0; }
@media (max-width: 560px) { .armory .wp-spirits { grid-template-columns: 1fr; } }

/* 메달 단추의 집 · 소리 아이콘 통일 (2026-11-29): 둘 다 같은 크림색 단색 그림 (소리는 audio.js svg, 집은 아래 svg) */
:root { --home-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3.2 2.2 11.4h2.9V20.6h5.3v-5.4h3.2v5.4h5.3v-9.2h2.9z' fill='%23FFE9B8'/%3E%3C/svg%3E"); }
:is(.tr-head > button, .jobs-home, .topbar > .home-btn, .run-hud > .home-btn) .ic-home { width: 22px !important; height: 22px !important; margin: 0 !important; background: var(--home-svg) center / contain no-repeat !important; image-rendering: auto; }
#sound-toggle:is([data-at=corner], [data-at=head]) svg { width: 24px; height: 24px; filter: drop-shadow(0 1px 1px #000a); }
.dex-head > button:not(#sound-toggle)::before { filter: drop-shadow(0 1px 1px #000a); }
@media (max-height: 520px) { #sound-toggle:is([data-at=corner], [data-at=head]) svg { width: 18px; height: 18px; } }

/* 게임기처럼 터치 단추 (2026-11-29): 칼(공격)은 더 위로, 슬라이딩은 점프 옆으로 바짝 */
.run-pad.classic .pad-atk { margin-bottom: calc(var(--pb) * 1.35) !important; margin-left: calc(var(--pb) * -.5) !important; margin-right: calc(var(--pb) * -.42) !important; }
.set-pad.classic .tp-hand { margin-bottom: 44px; margin-left: -10px; margin-right: -9px; }
.pad-atk .h path, .set-pad .tp-hand .h path { stroke-width: 3.6; } .pad-atk .d path, .set-pad .tp-hand .d path { stroke-width: 7.6; }
/* 메달 단추의 동료 아이콘 (2026-11-29): 악수 그림 대신 사람 셋 흰 아이콘 — 무엇인지 바로 알게 */
:root { --party-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FFFFFF'%3E%3Ccircle cx='5.3' cy='8.6' r='2.5'/%3E%3Ccircle cx='18.7' cy='8.6' r='2.5'/%3E%3Cpath d='M.6 18.6c0-3 1.9-5.1 4.6-5.1 1.3 0 2.4.5 3.2 1.3-1.2 1.1-1.9 2.4-2.1 3.8z'/%3E%3Cpath d='M23.4 18.6c0-3-1.9-5.1-4.6-5.1-1.3 0-2.4.5-3.2 1.3 1.2 1.1 1.9 2.4 2.1 3.8z'/%3E%3Ccircle cx='12' cy='7.4' r='3.4' stroke='%2315100E' stroke-width='1.1'/%3E%3Cpath d='M5.9 20.2c0-4 2.6-6.6 6.1-6.6s6.1 2.6 6.1 6.6z' stroke='%2315100E' stroke-width='1.1'/%3E%3C/svg%3E"); }
.tr-head > button .ic-party { width: 26px !important; height: 26px !important; margin: 0 !important; background: var(--party-svg) center / contain no-repeat !important; image-rendering: auto; filter: drop-shadow(0 1px 1px #000a); }
.mp-party .ic-party { background: var(--party-svg) center / contain no-repeat !important; image-rendering: auto; filter: drop-shadow(0 1px 1px #000a); } /* 지도의 동료 단추도 사람 셋 (2026-11-29) */

/* 🎒 가방 단추 (2026-11-29): 위쪽의 부적 줄 · 무기 단추를 하나로 */
.tb-bag { position: relative; display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px 3px 6px !important; }
.tb-bag .tbb-ic { width: 30px; height: 30px; image-rendering: auto; filter: drop-shadow(0 2px 2px #000a); }
.tb-bag .tbb-w { width: 22px; height: 22px; margin-left: -12px; margin-top: 12px; filter: drop-shadow(0 1px 1px #000); }
.tb-bag .tbb-c { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #C9A24B; color: #2A160C; font: 800 12px/18px sans-serif; text-align: center; }
@media (max-height: 520px), (max-width: 900px) { .tb-bag .tbb-n { display: none; } .tb-bag .tbb-ic { width: 24px; height: 24px; } .tb-bag .tbb-w { width: 18px; height: 18px; } }
.bag-relics { margin-top: 12px; padding-top: 10px; border-top: 1px dashed #C9A24B55; text-align: left; }
.bag-relics h4 { margin: 0 0 8px; color: #FFE08A; }
.br-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 6px; }
.br-item { display: grid; justify-items: center; gap: 3px; padding: 6px 4px !important; min-height: 0; }
.br-item img, .br-item canvas, .br-item i { width: 40px; height: 40px; object-fit: contain; }
.br-item small { font-size: 11px; line-height: 1.2; text-align: center; }

/* 환경설정 글꼴 하나로 (2026-11-29): 단추 · 안내 글이 픽셀 글꼴로 섞여 나오던 것 — 모두 명조(--serif) */
.modal.settings .set-body :is(button, p, small, span, b, label, output) { font-family: var(--serif) !important; }
.modal.settings .set-body .ghost { font-weight: 700 !important; font-size: 17px !important; letter-spacing: 0; }
.modal.settings .set-body .note { font-size: 14px !important; line-height: 1.5; color: #CDBB98 !important; }
.modal.settings .set-body .set-msg { color: #8AE0A0 !important; }
@media (max-height: 520px) { .modal.settings .set-body .ghost { font-size: 14px !important; } .modal.settings .set-body .note { font-size: 12px !important; } }
/* 환경설정 닫기 단추 (2026-11-29): 작게 하고 탭과 겹치지 않게 — 제목 줄 안에만 */
.modal.settings .set-x { width: 34px !important; height: 34px !important; min-height: 0 !important; top: 10px; right: 12px; font-size: 16px !important; display: grid; place-items: center; }
.modal.settings h2 { min-height: 38px; padding: 0 44px; box-sizing: border-box; }
@media (max-height: 520px) { .modal.settings .set-x { width: 28px !important; height: 28px !important; top: 6px; right: 8px; font-size: 13px !important; } .modal.settings h2 { min-height: 30px; } }
/* 슬라이딩을 점프 바로 옆으로 (2026-11-29): 칼 단추가 둘 사이 위에 떠 있고 자리를 차지하지 않게 */
.run-pad.classic .pad-atk { margin-left: calc(var(--pb) * -.62) !important; margin-right: calc(var(--pb) * -.62) !important; }
.set-pad.classic .tp-hand { margin-left: -22px; margin-right: -21px; }
/* 운세 분야 줄 (2026-11-29): 이름이 길어도(Relationships) 별과 겹치지 않게 — 세 칸을 모든 줄이 함께 쓴다 · 글꼴은 명조 */
.fo-cats { grid-template-columns: max-content max-content 1fr; column-gap: 10px; row-gap: 6px; }
.fo-cats li { display: contents; }
.fo-cats b { white-space: nowrap; }
.fo-modal :is(.fo-text, .fo-cats, .fo-luck, .fo-weather b, .fo-head p, .fo-note, .fo-msg, .fo-chk) { font-family: var(--serif); }
.fo-weather b { font-weight: 700; }
.fo-modal :is(.fo-gift, .fo-gift *, .fo-sub > b, .fo-zod span) { font-family: var(--serif); } .fo-modal .fo-gift b, .fo-modal .fo-sub > b { font-weight: 700; }
/* 수련장 막 고르기 줄은 굴리는 칸 밖에 (2026-11-29): 바탕 사각형 없이, 카드가 밑으로 비치지 않게 */
body[data-scr="train"] .train-screen > .tr-body-wrap { display: flex; flex-direction: column; }
body[data-scr="train"] .tr-body-wrap > .dex-chips { flex: none; position: static; padding: 8px 58px 10px 2px; background: none !important; box-shadow: none !important; margin: 0; }
body[data-scr="train"] .tr-body-in { position: relative; flex: 1 1 0; min-height: 0; }
body[data-scr="train"] .train-screen > .tr-spin { margin: 2px 0 8px; } /* 상담사 줄 바로 아래 회전 기술 안내 (2026-11-29) */
/* 가방 창 꾸미기 (2026-11-29): 제목은 새 가방 그림, 부적 칸은 무기 칸처럼 밤색 바탕 · 금테 */
.bag-h { display: inline-flex; align-items: center; gap: 8px; } .bag-h-ic { width: 40px; height: 40px; image-rendering: auto; filter: drop-shadow(0 2px 2px #000a); }
.bag-relics h4 { display: flex; align-items: center; gap: 6px; font: 700 17px/1 var(--serif); } .br-h-ic { width: 30px; height: 30px; object-fit: contain; filter: drop-shadow(0 2px 2px #000a); }
.br-grid { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.wp-bag-modal .br-item { background: linear-gradient(#2B1F1AF2, #14100EF2) !important; box-shadow: 0 0 0 1px #000, 0 0 0 2px #5A4526, inset 0 1px 0 #ffffff1c !important; border-radius: 4px; color: #FFF1CF !important; padding: 8px 4px 7px !important; transition: transform .12s, box-shadow .12s; }
.wp-bag-modal .br-item:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--brass, #C9A24B), 0 0 14px #FFD54A33 !important; }
.wp-bag-modal .br-item img { width: 46px; height: 46px; filter: drop-shadow(0 3px 4px #000); }
.wp-bag-modal .br-item small { font: 700 12px/1.25 var(--serif); color: #FFE9B8; }
.run-hud .run-i { margin-left: auto; } .run-hud .run-skip ~ .run-i { margin-left: 0; } /* ⏭ 건너뛰기는 개발 모드에서만 — 없을 때도 오른쪽 단추들이 오른쪽에 모이게 (2026-11-29) */
/* 보스 소개 화면의 집 단추 (2026-11-29) */
.boss-intro .bi-home { position: absolute; right: 18px; top: 16px; z-index: 3; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; background: var(--home-svg) center / 24px 24px no-repeat, url(assets/ui/medal.webp?v=1) center / 100% 100% no-repeat; filter: drop-shadow(0 2px 4px #000a); }
.boss-intro .bi-home:hover { transform: scale(1.06); } .boss-intro .bi-home:focus-visible { outline: 2px solid #FFD54A; outline-offset: 2px; }
.modal.ask { z-index: 120; } /* 보스 소개(z 80) 위에서도 보이게 */
@media (max-height: 520px) { .boss-intro .bi-home { width: 40px; height: 40px; right: 10px; top: 8px; background-size: 18px 18px, 100% 100%; } }
/* 족자 놓는 줄 테두리 (2026-11-29): 위아래 띠가 3배쯤 납작하게 늘어나 보이던 것 — 모서리와 같은 비율(0.45)로 그리고, 띠 무늬는 늘이지 않고 되풀이(round) */
@media (min-height: 521px) and (min-width: 1000px) { body:not(.dream) .battle .line { border-image-width: 28px 90px; border-image-outset: 9px 26px; border-image-repeat: round stretch; } }
@media (max-height: 520px), (max-width: 999px) { body:not(.dream) .battle .line { border-image-repeat: round stretch; } }
/* 족자 대결 (2026-11-29): ① 무대 높이를 창 높이로 고정 — 보스 자세 · 말풍선이 바뀔 때마다 아래 줄이 위아래로 움직이던 것 (보스가 커지면 위로 넘친다)
   ② 아래 탁자 그림을 족자 줄 뒤까지 이어 깐다 (줄과 손패 사이가 끊겨 보이던 것) */
@media (min-height: 521px) and (min-width: 1000px) {
  body:not(.dream) .battle { grid-template-rows: clamp(300px, 44vh, 470px) auto auto auto auto; min-height: 0; }
  body:not(.dream) .battle > .stage { height: 100%; min-height: 0; max-height: none; }
  body:not(.dream) .battle::after { grid-row: 3 / 6; margin-top: -14px; }
}
@media (min-width: 1000px) and (max-height: 800px) and (min-height: 521px) {
  body:not(.dream) .battle { grid-template-rows: clamp(250px, 40vh, 330px) auto auto auto auto; min-height: 0; }
}

/* 대유행 「역병의 문」 (js/attacks.js pandemic, 2026-11-29) */
.fx-plaguegate { width: 190px; height: 290px; border-radius: 95px 95px 10px 10px; overflow: hidden; transform-origin: 50% 100%;
  background: radial-gradient(ellipse at 50% 62%, #000 18%, #142A04 42%, #5A7A10 66%, #C8E04A 84%, #FFE97A);
  border: 6px solid #6A4A0E; box-shadow: 0 0 0 3px #E8C24A, 0 0 0 6px #2A1A04, 0 0 46px 10px #B8D84AAA, 0 0 110px 30px #6A8A1A66, inset 0 0 40px #000; }
.fx-plaguegate .pg-swirl { position: absolute; inset: 8% 10% 4%; border-radius: 50%; background: conic-gradient(from 0deg, #0000, #B8D84ACC, #0000 25%, #E8FF8A99, #0000 50%, #9AC84ACC, #0000 75%, #F4FFC099, #0000); filter: blur(2px); mix-blend-mode: screen; animation: pg-spin 1.1s linear infinite; }
.fx-plaguegate .pg-swirl.b { inset: 22% 24% 14%; animation-duration: .7s; animation-direction: reverse; opacity: .8; }
.fx-plaguegate .pg-eye { position: absolute; left: 50%; top: 56%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: radial-gradient(#FFFDE0, #E8FF6A 35%, #6A9A10 70%, #0000); box-shadow: 0 0 30px 10px #D8F05A; animation: pg-pulse .35s ease-in-out infinite alternate; }
@keyframes pg-spin { to { transform: rotate(360deg); } }
@keyframes pg-pulse { from { transform: scale(.8); opacity: .8; } to { transform: scale(1.25); opacity: 1; } }
.pg-puff { border-radius: 50%; background: radial-gradient(circle at 40% 40%, #F4FFC0EE, #B8D84AAA 35%, #5A7A1066 65%, #0000 72%); filter: blur(1.5px); mix-blend-mode: screen; }
.pg-rat { background: url(assets/fx/sig/plaguerat_run.webp?v=1) 0 0 / 400% 100% no-repeat; image-rendering: pixelated; animation: pg-rat .28s steps(4) infinite; filter: drop-shadow(0 0 6px #B8D84A); }
@keyframes pg-rat { to { background-position: 133.333% 0; } }
@media (prefers-reduced-motion: reduce) { .fx-plaguegate .pg-swirl, .fx-plaguegate .pg-eye, .pg-rat { animation: none; } }
.battle .stage { position: relative; } .battle .stage > .fighter { z-index: 1; } /* 대유행 「역병의 문」이 상담사 뒤에 서게 */
/* 보스 말풍선 · 의도 표시 제자리에 (game.js pinFoeText, 2026-11-29): 보스가 움직여도 따라가지 않는다 */
.battle .fighter.enemy.pin-text > .bubble, .battle .fighter.enemy.pin-text > .intent { position: absolute; left: 50%; translate: -50% 0 !important; transition: none; z-index: 4; margin: 0; }
.battle .fighter.enemy.pin-text > .bubble { width: max-content; max-width: 280px; }
/* 족자 줄의 무기 칸 (2026-11-29): 이름이 길면(일본어 등) 두 줄로 늘어나 줄 테두리를 넘던 것 — 칸을 옆으로 넓혀 한 줄로, 높이는 족자 칸과 같게 */
body:not(.dream) .battle .wslot { width: auto !important; min-width: 122px; max-width: 230px; height: 132px; max-height: 132px; box-sizing: border-box; padding: 6px 10px; gap: 1px; justify-content: center; }
body:not(.dream) .battle .wslot img { width: 40px; height: 40px; flex: none; }
body:not(.dream) .battle .wslot b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; font-size: 13px; line-height: 1.2; }
body:not(.dream) .battle .wslot .wl, body:not(.dream) .battle .wslot .wd { white-space: nowrap; }
body:not(.dream) .battle .wslot small { -webkit-line-clamp: 1; }
@media (min-width: 1000px) and (max-height: 800px) and (min-height: 521px) { body:not(.dream) .battle .wslot { height: 112px; max-height: 112px; } body:not(.dream) .battle .wslot img { width: 32px; height: 32px; } }
@media (max-height: 520px), (max-width: 999px) { body:not(.dream) .battle .wslot { height: auto; max-height: 112px; max-width: 170px; } }
body:not(.dream) .battle .wslot { flex: 0 0 auto !important; } /* 줄이 좁아도 무기 칸이 눌려 이름이 잘리지 않게 */
/* 족자 대결의 신내림 · 합동 게이지 (game.js duelGauges, 2026-11-29): 길 화면과 같은 틀, 무대 왼쪽 위. 무대 이름은 그 아래로 */
.battle .stage > .duel-gauges { z-index: 5; } .battle .stage > .duel-gauges .rg:disabled { opacity: 1; }
body:not(.dream) .battle .stage:has(> .duel-gauges .rg) > .stage-name { top: calc(clamp(150px, 19vw, 236px) * .314 + 16px); }
@media (max-height: 520px) { body:not(.dream) .battle .stage:has(> .duel-gauges .rg) > .stage-name { top: calc(138px * .314 + 10px); } }
/* 보스 칸 붙잡기 (2026-11-29): 칸을 무대 높이만큼 세우고 그림은 바닥에, 말풍선 · 의도 · 체력 막대 · 이름 줄은 제자리 */
.battle .stage > .fighter.enemy.pin-text { align-self: stretch; height: auto; justify-content: flex-end; }
.battle .fighter.enemy.pin-text > .bar, .battle .fighter.enemy.pin-text > .stat { position: absolute; left: 50%; translate: -50% 0; margin: 0; z-index: 3; white-space: nowrap; }
.battle .stage > .fighter.hero.pin-text { align-self: stretch; height: auto; justify-content: flex-end; }
.battle .fighter.hero.pin-text > .bar, .battle .fighter.hero.pin-text > .stat { position: absolute; left: 50%; translate: -50% 0; margin: 0; z-index: 3; white-space: nowrap; }
/* 적 기술 막 (game.js atkCurtain, 2026-11-29): 기술 이름 붓글씨 띠 */
.atk-curtain { position: absolute; left: 0; right: 0; top: 40%; z-index: 6; height: 92px; display: grid; place-items: center; pointer-events: none; animation: ac-band 1.25s cubic-bezier(.2,.8,.2,1) both; }
.atk-curtain .ac-ink { position: absolute; inset: 10px -4%; background: linear-gradient(90deg, #0000, #0A0604E6 14%, #0A0604F2 50%, #0A0604E6 86%, #0000); box-shadow: 0 0 0 0 #0000; transform: skewX(-14deg); border-top: 2px solid var(--mc); border-bottom: 2px solid var(--mc); }
.atk-curtain .ac-ink::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #0000 20%, color-mix(in srgb, var(--mc) 18%, #0000) 50%, #0000 80%); animation: ac-glint 1.1s ease-out both; }
.atk-curtain b { position: relative; font: 400 46px/1 var(--disp); color: #FFF4DA; letter-spacing: .04em; text-shadow: 0 0 10px var(--mc), 0 0 26px var(--mc), 0 3px 0 #000, 0 0 2px #000; -webkit-text-stroke: 1px #2A160C; animation: ac-txt 1.25s cubic-bezier(.2,.8,.2,1) both; white-space: nowrap; }
.atk-curtain .ac-ic { font-size: .8em; vertical-align: .08em; }
.atk-curtain.big { height: 116px; } .atk-curtain.big b { font-size: 60px; }
@keyframes ac-band { 0% { opacity: 0; transform: scaleY(.2); } 12% { opacity: 1; transform: scaleY(1.08); } 20% { transform: scaleY(1); } 82% { opacity: 1; } 100% { opacity: 0; transform: scaleY(.6); } }
@keyframes ac-txt { 0% { opacity: 0; transform: translateX(-120px) scale(1.4); filter: blur(6px); } 18% { opacity: 1; transform: translateX(8px) scale(1); filter: none; } 30% { transform: translateX(0); } 80% { opacity: 1; } 100% { opacity: 0; transform: translateX(60px); } }
@keyframes ac-glint { from { transform: translateX(-60%); } to { transform: translateX(60%); } }
@media (max-height: 520px) { .atk-curtain { height: 64px; } .atk-curtain b { font-size: 30px; } .atk-curtain.big { height: 76px; } .atk-curtain.big b { font-size: 38px; } }
@media (prefers-reduced-motion: reduce) { .atk-curtain, .atk-curtain b, .atk-curtain .ac-ink::after { animation-duration: .01s; } }
.atk-curtain b { font-weight: 700; -webkit-text-stroke: 1.5px #1A0C06; paint-order: stroke fill; } .atk-curtain .ac-ink { background: linear-gradient(90deg, #0000, #050302EE 12%, #050302F7 50%, #050302EE 88%, #0000); }
/* 보스 의도 표시 · 말풍선은 한 줄로 (2026-11-29): 글이 길면 두 줄로 접지 말고 칸을 넓힌다 (game.js pinFighter 가 무대 밖으로 나가지 않게 옆으로 민다) */
.battle .fighter.enemy.pin-text > .intent, .battle .fighter.enemy.pin-text > .bubble { white-space: nowrap; width: max-content; max-width: none; }
.battle .fighter.hero.pin-text > .bubble { position: absolute; left: 50%; translate: -50% 0 !important; margin: 0; z-index: 4; white-space: nowrap; width: max-content; max-width: none; } /* 상담사 말풍선도 한 줄 */
/* 보스 쪽 말 · 피해 알림 (game.js .foe-msg, 2026-11-29): 오행 도표 아래 가운데 빈 칸에 한 줄로 */
.battle .center-info { position: relative; }
.battle .center-info > .foe-msg { position: absolute; left: 50%; top: calc(100% + 6px); translate: -50% 0; width: max-content; max-width: min(560px, 46vw); white-space: normal; text-align: center; z-index: 4; margin: 0; }
.battle .center-info > .foe-msg.hidden { display: none; }
body:not(.dream) .battle .center-info > .foe-msg { font: 700 18px/1.4 var(--serif); padding: 8px 18px; box-shadow: 0 0 0 2px #8A2A1E, 0 6px 14px #000A; }
@media (max-height: 520px) { body:not(.dream) .battle .center-info > .foe-msg { font-size: 13px; padding: 4px 10px; top: calc(100% + 2px); } }
/* 주술 · 5막 알림 (2026-11-29): 족자 줄 위 보라 상자 → 무대 한가운데 한 줄 (game.js .stage-banners, 길면 fitLine 으로 글자를 줄인다) */
.battle .stage > .stage-banners { position: absolute; left: 50%; bottom: 52px; translate: -50% 0; z-index: 5; width: calc(100% - 40px); display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; }
.battle .stage-banners:empty { display: none; }
.battle .stage-banners > .hex-banner, .battle .stage-banners .r5 { max-width: 100%; box-sizing: border-box; white-space: nowrap; overflow: hidden; margin: 0; font: 700 16px/1.3 var(--serif); padding: 7px 18px; border-radius: 4px; }
.battle .stage-banners > .r5-banner { max-width: 100%; display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 0; }
@media (max-height: 520px) { .battle .stage > .stage-banners { bottom: 30px; } .battle .stage-banners > .hex-banner, .battle .stage-banners .r5 { font-size: 12px; padding: 3px 10px; } }
.battle .center-info > .foe-msg { z-index: 6; } /* 잠깐 뜨는 피해 알림이 주술 알림 위로 */
/* 무대 한가운데 묶음 (2026-11-29): 보스 알림 · 족자 계산식 · 주술 알림을 위에서 아래로 한 줄씩 */
.battle .stage-banners > .foe-msg { position: static; translate: none; max-width: 100%; white-space: nowrap; overflow: hidden; margin: 0; font: 700 17px/1.35 var(--serif); padding: 6px 16px; }
body:not(.dream) .battle .stage-banners > .preview { display: flex; align-items: baseline; justify-content: center; gap: 8px; max-width: 100%; box-sizing: border-box; margin: 0; padding: 6px 20px; white-space: nowrap; overflow: hidden; background: linear-gradient(90deg, #0000, #0A0604E0 12%, #0A0604EE 50%, #0A0604E0 88%, #0000); border-top: 1px solid #C9A24B88; border-bottom: 1px solid #C9A24B88; font-size: 20px; min-height: 0; }
body:not(.dream) .battle .stage-banners > .preview b { font-size: 34px; }
@media (max-height: 520px) { body:not(.dream) .battle .stage-banners > .preview { font-size: 14px; padding: 2px 10px; } body:not(.dream) .battle .stage-banners > .preview b { font-size: 22px; } .battle .stage-banners > .foe-msg { font-size: 12px; padding: 3px 10px; } }
#fx-layer .fx-sig { object-fit: contain; image-rendering: auto; } /* 보스 기술 물건 그림(족자 대결): 비율 그대로 (attacks.js icon 'sig:…') */
/* 적 기술 이름 띠 (2026-11-29): 처음에 크게 떴다가 줄어드는 움직임 때문에 「글자가 점점 작아진다」 — 처음부터 제 크기로, 옆에서 미끄러져 들어온다 */
@keyframes ac-txt { 0% { opacity: 0; transform: translateX(-90px); filter: blur(4px); } 16% { opacity: 1; transform: translateX(0); filter: none; } 82% { opacity: 1; transform: translateX(0); } 100% { opacity: 0; transform: translateX(40px); } }
/* 손패가 두 줄로 넘칠 때 왼쪽 단추 · 펼치기 단추가 가운데로 내려가던 것 (2026-11-29) — 족자 첫 줄과 같은 높이에서 시작 */
@media (min-height: 521px) and (min-width: 1000px) {
  body:not(.dream) .battle .act-left { align-self: start; justify-content: flex-start; padding-top: 14px; }
  body:not(.dream) .battle .actions > .big { align-self: start; margin-top: 34px; }
}
@media (min-width: 1000px) and (max-height: 800px) and (min-height: 521px) { body:not(.dream) .battle .act-left { padding-top: 6px; } body:not(.dream) .battle .actions > .big { margin-top: 24px; } }
@media (min-height: 521px) and (min-width: 1000px) { body:not(.dream) .battle .actions > .st-btns { align-self: start; margin-top: 34px; } }
@media (min-width: 1000px) and (max-height: 800px) and (min-height: 521px) { body:not(.dream) .battle .actions > .st-btns { margin-top: 20px; } }
/* 「족자 → 줄」 안내 (2026-11-29): 줄 위 칸이 생겼다 없어지면 손패가 오르내렸다 — 손패 아래에 늘 자리를 두고 글만 켜고 끈다 */
.battle > .hand { position: relative; padding-bottom: 30px !important; }
.battle > .hand > .hand-hint { position: absolute; left: 0; right: 0; bottom: 4px; text-align: center; font: 700 15px/1.2 var(--serif); color: #E8D8B8; text-shadow: 0 1px 2px #000; pointer-events: none; flex: none; }
.battle > .hand > .hand-hint.off { visibility: hidden; }
@media (max-height: 520px) { .battle > .hand { padding-bottom: 20px !important; } .battle > .hand > .hand-hint { font-size: 12px; bottom: 2px; } }
@media (min-width: 1000px) and (min-height: 521px) { body:not(.dream) .battle .wslot:has(small.wn) { min-width: 250px; max-width: 250px; } } body:not(.dream) .battle .wslot small.wn { display: block; width: 0; min-width: 100%; max-width: 100%; white-space: nowrap; overflow: hidden; -webkit-line-clamp: unset; } /* 덧붙임 줄은 칸 테두리 안에 — 길면 글자를 줄인다 (fitLine) */
/* 보스 쪽 말 · 피해 알림은 적에게 가까운 오른쪽에, 말꼬리는 적을 가리킨다 (2026-11-29: 가운데 있으니 누가 한 말인지 몰랐다. 상담사 말은 상담사 머리 위 말풍선) */
.battle .stage-banners > .foe-msg { align-self: flex-end; margin-right: 7%; overflow: visible; box-shadow: 0 0 0 2px #8A2A1E, 0 6px 14px #000A; }
.battle .stage-banners > .foe-msg::after { content: ''; position: absolute; right: 22px; top: -11px; width: 0; height: 0; border: 7px solid transparent; border-bottom: 11px solid #F4E8C8; border-top: 0; filter: drop-shadow(0 -2px 0 #8A2A1E); transform: skewX(-30deg); }
/* 수련 승리 · 쓰러졌어요 · 그 밖의 결과 제목: 예전 픽셀 글꼴(Galmuri14) → 명조 (2026-11-29) */
body:not(.dream) .lv-burst { font: 800 38px/1.2 var(--serif); letter-spacing: .04em; color: #FFE08A; text-shadow: 0 2px 0 #5A3A10, 0 0 14px #FFB04A66; }
body:not(.dream) .tr-result .tr-xp { font: 700 22px/1.2 var(--serif); }
/* 2026-11-29: 무기 칸 — 그림은 왼쪽, 글은 오른쪽 (위아래를 줄이고 옆으로 넓힘) */
body:not(.dream) .battle .wslot { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-auto-rows: auto; column-gap: 10px; row-gap: 1px; align-content: center; align-items: center; justify-items: start; text-align: left; height: auto; max-height: none; min-height: 0; align-self: center; padding: 8px 12px 8px 10px; }
body:not(.dream) .battle .wslot > img { grid-column: 1; grid-row: 1 / span 4; width: 58px; height: 58px; align-self: center; }
body:not(.dream) .battle .wslot > :not(img) { grid-column: 2; }
body:not(.dream) .battle .wslot > .link-none { display: none; }
body:not(.dream) .battle .wslot small.wn { text-align: left; }
@media (min-width: 1000px) and (min-height: 521px) { body:not(.dream) .battle .wslot, body:not(.dream) .battle .wslot:has(small.wn) { min-width: 250px; max-width: 320px; } }
@media (min-width: 1000px) and (min-height: 521px) { body:not(.dream) .battle .wslot:has(small.wn) { min-width: 320px; } }
@media (max-height: 520px), (max-width: 999px) { body:not(.dream) .battle .wslot { max-width: 230px; padding: 5px 8px; column-gap: 6px; } body:not(.dream) .battle .wslot > img { width: 40px; height: 40px; } }
/* 2026-11-29: 무기 칸이 넓어진 만큼 족자 줄(빨간 깔개)도 옆으로 넓힘 — 족자 칸이 눌려 숫자가 아래로 밀리던 것 */
body:not(.dream) .battle .line > .slot { flex-shrink: 0; }
@media (min-width: 1000px) and (min-height: 521px) { body:not(.dream) .battle .wslot, body:not(.dream) .battle .wslot:has(small.wn) { min-width: clamp(226px, 17.6vw, 320px); max-width: clamp(226px, 17.6vw, 320px); } }
/* 재앙신 「최후의 판결」 (attacks.js judgeHammer) */
.fx-judge { position: absolute; pointer-events: none; transform-origin: 50% 50%; }
.fx-judge .jr { position: absolute; inset: 0; border-radius: 50%; }
.fx-judge .jr.a { border: 4px solid #FFC24A; box-shadow: 0 0 18px #FF6A1A, inset 0 0 26px #FF3A0A99; background: radial-gradient(circle, #FF3A0A44, #8A0A0022 60%, transparent 70%); animation: fxJudgeSpin 2.4s linear infinite; }
.fx-judge .jr.a::before { content: ''; position: absolute; inset: 14%; border-radius: 50%; border: 3px dashed #FF5A2A; }
.fx-judge .jr.b { inset: 30%; border: 3px double #FFE08A; box-shadow: 0 0 12px #FFB04A; animation: fxJudgeSpin 1.6s linear infinite reverse; }
.fx-judge b { position: absolute; left: 50%; top: 50%; font: 900 30px/1 var(--serif); color: #FFE9B8; text-shadow: 0 0 8px #FF5A1A, 0 0 16px #C8180A; transform: translate(-50%, -50%) rotate(var(--a)) translateY(calc(var(--r) * -1)); }
@keyframes fxJudgeSpin { to { transform: rotate(360deg); } }
.fx-ember { position: absolute; left: 0; top: 0; width: 7px; height: 7px; border-radius: 50%; background: #FFE08A; box-shadow: 0 0 8px #FF7A1A, 0 0 14px #FF3A0A; pointer-events: none; }
.fx-crack { position: absolute; height: 10px; margin-top: -5px; transform-origin: 0 50%; pointer-events: none; background: linear-gradient(90deg, #FFF2B0, #FF8A1A 30%, #C8280A 70%, transparent); clip-path: polygon(0 40%, 18% 0, 34% 60%, 52% 10%, 70% 70%, 86% 30%, 100% 50%, 86% 60%, 70% 100%, 52% 45%, 34% 100%, 18% 45%, 0 60%); filter: drop-shadow(0 0 6px #FF5A1A); }
.fx-firepillar { position: absolute; width: 44px; transform-origin: 50% 100%; pointer-events: none; border-radius: 50% 50% 10px 10px / 70% 70% 10px 10px; background: linear-gradient(to top, #FFF4C2, #FFC24A 18%, #FF6A1A 45%, #C8180A 75%, transparent); filter: blur(1px) drop-shadow(0 0 12px #FF5A1A); mix-blend-mode: screen; }
/* 2026-11-29: 줄에 놓인 작은 족자는 이름만 — 아래 숫자(기 · 괄호)와 i 단추는 빼서 칸이 좁아도 밀리지 않게 (기 값은 칸 아래 slot-q 에 나온다) */
body:not(.dream) .battle .line .slot .card .c-val, body:not(.dream) .battle .line .slot .card .i-btn { display: none !important; }
/* 2026-11-29: 줄 위 족자 — 숫자를 뺀 자리에 그림을 키우고 이름을 바로 아래로 (빈 데 없이), 덧붙임(📖+1)도 뺌 */
body:not(.dream) .battle .line .slot .card:not(.back) { justify-content: center; gap: 1px; }
body:not(.dream) .battle .line .slot .card .c-art { width: 82cqw; height: 82cqw; margin-top: 6cqw; flex: none; }
body:not(.dream) .battle .line .slot .card .c-name { font-size: max(12px, 16cqw); }
body:not(.dream) .battle .line .slot .card .c-grown { display: none !important; }
/* 2026-11-29: 향(턴 시계)을 오행 도표 오른쪽에 — 족자 줄 오른쪽 끝에 비워 두던 자리도 거둠 */
body .battle .center-info > .incense { position: absolute; left: calc(100% - 14px); right: auto; bottom: 10px; top: auto; transform: scale(.82); transform-origin: 0 100%; z-index: 2; }
body:not(.dream) .battle .line { padding-right: 6px !important; }
/* 족자 대결 보스 기술 (js/duelsig.js) */
#fx-layer .ds-pic { object-fit: contain; image-rendering: auto; pointer-events: none; }
#fx-layer .ds { display: block; pointer-events: none; }
#fx-layer .ds-sheet { background-repeat: no-repeat; image-rendering: auto; }
#fx-layer .ds-pop { border-radius: 50%; mix-blend-mode: screen; }
#fx-layer .ds-ring { border: 5px solid; border-radius: 50%; }
#fx-layer .ds-pool { border-radius: 50%; }
#fx-layer .ds-puff { border-radius: 50%; mix-blend-mode: screen; }
#fx-layer .ds-beam { border-radius: 0 50% 50% 0 / 0 50% 50% 0; mix-blend-mode: screen; }
#fx-layer .ds-bolt { width: 36px; background: linear-gradient(90deg, transparent 35%, #E8D8FF 45%, #FFFFFF 50%, #E8D8FF 55%, transparent 65%); clip-path: polygon(40% 0, 70% 0, 52% 30%, 78% 30%, 30% 100%, 46% 52%, 22% 52%); filter: drop-shadow(0 0 10px #C8A0FF) drop-shadow(0 0 20px #8A5AE0); }
#fx-layer .ds-line { height: 10px; }
#fx-layer .ds-line.links, #fx-layer .ds-wrap.links { background: repeating-linear-gradient(90deg, var(--c) 0 12px, transparent 12px 15px); border-radius: 5px; box-shadow: 0 0 0 2px #0008, 0 0 8px #FFFFFF55; }
#fx-layer .ds-line.hair { background: repeating-linear-gradient(80deg, var(--c) 0 3px, color-mix(in srgb, var(--c), #fff 25%) 3px 5px); border-radius: 5px; box-shadow: 0 0 6px #000A; height: 8px; }
#fx-layer .ds-wrap { border: 6px solid var(--c); border-radius: 50%; background: none !important; box-shadow: 0 0 8px #000A; }
#fx-layer .ds-wrap.hair { border-style: double; border-width: 7px; }
#fx-layer .ds-roar { border: 8px solid; border-radius: 50%; border-left-color: transparent; border-right-color: transparent; }
#fx-layer .ds-jaw { background: linear-gradient(#5A0A0AEE, #2A0404EE); border-radius: 50% 50% 0 0 / 80% 80% 0 0; filter: drop-shadow(0 0 8px #FF3A2A); }
#fx-layer .ds-jaw::after { content: ''; position: absolute; left: 6%; right: 6%; bottom: -16px; height: 22px; background: #FFF8E6; clip-path: polygon(0 0, 100% 0, 95% 100%, 88% 0, 80% 100%, 72% 0, 64% 100%, 56% 0, 48% 100%, 40% 0, 32% 100%, 24% 0, 16% 100%, 8% 0, 4% 100%); }
#fx-layer .ds-jaw.dn { border-radius: 0 0 50% 50% / 0 0 80% 80%; }
#fx-layer .ds-jaw.dn::after { top: -16px; bottom: auto; transform: scaleY(-1); }
#fx-layer .ds-slash { height: 14px; border-radius: 50%; background: linear-gradient(90deg, transparent, var(--c) 20%, #FFFFFF 50%, var(--c) 80%, transparent); box-shadow: 0 0 12px var(--c), 0 0 24px var(--c); }
#fx-layer .ds-slash.ink { background: linear-gradient(90deg, transparent, #1A1420 15%, #000 50%, #1A1420 85%, transparent); box-shadow: 0 0 6px #6A4A8A; height: 18px; }
#fx-layer .ds-ghost { left: 0; top: 0; image-rendering: pixelated; }
#fx-layer .ds-vortex { border-radius: 50%; background: conic-gradient(from 0deg, transparent, var(--c) 20%, transparent 35%, var(--c) 55%, transparent 70%, var(--c) 90%, transparent); -webkit-mask: radial-gradient(circle, transparent 18%, #000 22%, #000 68%, transparent 72%); mask: radial-gradient(circle, transparent 18%, #000 22%, #000 68%, transparent 72%); filter: drop-shadow(0 0 10px var(--c)); }
#fx-layer .ds-wave { border-radius: 60% 40% 0 0 / 90% 70% 0 0; background: linear-gradient(#E8F8FF 0 6%, #7FC8FF 14%, #2A78C8 55%, #144A8A); box-shadow: inset 0 10px 0 #FFFFFF99, 0 0 24px #5AB0F088; }
#fx-layer .ds-bubble { border-radius: 50%; background: radial-gradient(circle at 32% 28%, #FFFFFFCC 0 7%, #FFFFFF00 12%), radial-gradient(circle, #9FD8FF18 55%, #9FD8FF88 70%, #E8F8FFCC 72%, #9FD8FF00 75%); }
#fx-layer .ds-caw { border: 6px solid; border-radius: 50%; border-right-color: transparent; border-top-color: transparent; border-bottom-color: transparent; }
#fx-layer .ds-ledger { height: 70px; display: flex; align-items: center; justify-content: center; gap: 18px; background: linear-gradient(#F4E8C8, #E8D8B0); border: 3px solid #5A3A1A; border-radius: 6px; box-shadow: 0 0 0 2px var(--c), 0 0 18px var(--c); font: 900 34px/1 var(--serif); color: #2B1708; }
#fx-layer .ds-ledger s { position: absolute; left: 11%; top: 50%; height: 8px; margin-top: -4px; background: #C8180A; border-radius: 4px; }
#fx-layer .ds-thread { height: 3px; background: var(--c); box-shadow: 0 0 6px var(--c); }
#fx-layer .ds-coil { border: 10px solid var(--c); border-radius: 50%; box-shadow: inset 0 0 0 3px #0006, 0 0 0 2px #0008; }
#fx-layer .ds-sweep { border-bottom: 26px solid #C8E0A0AA; border-radius: 0 0 50% 50% / 0 0 100% 100%; filter: blur(1px) drop-shadow(0 0 10px #E8FFC8); }
#fx-layer .ds-dome { border-radius: 50% 50% 8% 8%; background: radial-gradient(ellipse at 50% 60%, transparent 55%, color-mix(in srgb, var(--c), transparent 55%) 75%, var(--c) 78%, transparent 82%); }
#fx-layer .ds-puff.smoke { mix-blend-mode: normal; filter: blur(5px); }
#fx-layer .ds-wave { border-radius: 0; opacity: .92; clip-path: polygon(0 100%, 0 62%, 6% 40%, 14% 22%, 24% 10%, 36% 5%, 47% 9%, 53% 18%, 49% 27%, 41% 29%, 37% 24%, 40% 34%, 52% 38%, 64% 40%, 76% 50%, 88% 62%, 100% 72%, 100% 100%); background: linear-gradient(170deg, #FFFFFF 0 4%, #BFE8FF 9%, #5AB0F0 22%, #2A78C8 50%, #12407A); box-shadow: none; filter: drop-shadow(0 0 10px #7FC8FF); }
#fx-layer .ds-jaw { background: linear-gradient(#2A060699, #2A060600); border-radius: 50% 50% 0 0 / 60% 60% 0 0; filter: drop-shadow(0 0 6px #FF3A2A) drop-shadow(0 2px 0 #000); }
#fx-layer .ds-jaw::after { left: 2%; right: 2%; bottom: -2px; height: 70%; background: linear-gradient(#FFF8E6, #E8D8B0); clip-path: polygon(0 0, 100% 0, 96% 70%, 90% 0, 82% 100%, 74% 0, 66% 85%, 58% 0, 50% 100%, 42% 0, 34% 85%, 26% 0, 18% 100%, 10% 0, 4% 70%); }
#fx-layer .ds-jaw.dn { background: linear-gradient(#2A060600, #2A060699); border-radius: 0 0 50% 50% / 0 0 60% 60%; }
#fx-layer .ds-jaw.dn::after { top: -2px; bottom: auto; transform: scaleY(-1); }
#fx-layer .ds-wave { background: radial-gradient(ellipse at 38% 10%, #FFFFFF 0 5%, #FFFFFF00 12%), repeating-linear-gradient(165deg, #FFFFFF00 0 26px, #E8F8FF55 26px 31px), linear-gradient(180deg, #E8F8FF 0 6%, #7FC8FF 16%, #3A8FE0 40%, #1A5AA8 70%, #0E3A72); }
/* 주술 알림: 3.5초 뒤 사라짐 (game.js hexBanner) */
body .battle .hex-banner.fade-soon { animation: hexFade 3.5s linear both; }
@keyframes hexFade { 0% { opacity: 0; transform: translateY(6px); } 6% { opacity: 1; transform: none; } 80% { opacity: 1; } 100% { opacity: 0; } }
/* 2026-11-29: 최강 공격 · 최강 방어 단추를 세로로 — 왼쪽 칸을 좁혀 손패 족자가 한 줄에 하나 더 들어가게 (9장이면 둘째 줄로 밀렸다) */
@media (min-height: 521px) and (min-width: 1000px) {
  body:not(.dream) .battle { grid-template-columns: minmax(140px, 176px) minmax(0, 1fr) minmax(130px, 176px); }
  body:not(.dream) .battle .act-left { grid-template-columns: 1fr; gap: 6px; }
  body:not(.dream) .battle button.special { min-height: 50px; padding: 6px 8px 7px; }
}
/* 2026-11-29: 왕 보스(도깨비 대왕 · 저승도깨비)만 예전 높이 규칙(:has(.king))이 남아 무대가 50px 낮았다 — 다른 보스와 똑같이 */
@media (min-height: 521px) and (min-width: 1000px) { body:not(.dream) .battle:has(.king) { grid-template-rows: clamp(300px, 44vh, 470px) auto auto auto auto; } }
@media (min-width: 1000px) and (max-height: 800px) and (min-height: 521px) { body:not(.dream) .battle:has(.king) { grid-template-rows: clamp(250px, 40vh, 330px) auto auto auto auto; } }
/* 오행 도표 새 모양 (game.js ohaengDiagram v2) */
.ohaeng-diagram.v2 { width: 176px; height: 176px; overflow: visible; }
.ohaeng-diagram.v2 path.gen { fill: none; stroke: #8FE09A; stroke-width: 3; stroke-linecap: round; opacity: .8; filter: drop-shadow(0 0 1.5px #2A8A3A); }
.ohaeng-diagram.v2 line.ctrl { stroke: #FF7A6A; stroke-width: 1.4; stroke-dasharray: 3.5 2.5; opacity: .6; }
.ohaeng-diagram.v2 .on { opacity: 1 !important; stroke-dasharray: none !important; animation: dgFlow 1.1s ease-in-out infinite; }
.ohaeng-diagram.v2 path.gen.on { stroke: #D8FFC8; stroke-width: 4.5; filter: drop-shadow(0 0 3px #7FFF8A); }
.ohaeng-diagram.v2 line.ctrl.on { stroke: #FFB0A0; stroke-width: 3.2; filter: drop-shadow(0 0 3px #FF4A3A); }
@keyframes dgFlow { 50% { opacity: .65; } }
.ohaeng-diagram.v2 .dg-orb { stroke: #E8C77A; stroke-width: 1.6; }
.ohaeng-diagram.v2 .dg-inner { fill: none; stroke: #FFF4D088; stroke-width: .6; }
.ohaeng-diagram.v2 .dg-han { font: 900 15px/1 var(--serif); paint-order: stroke; stroke: #0006; stroke-width: .8px; }
.ohaeng-diagram.v2 .dg-label { fill: #F4E8C8; font: 700 8.5px/1 var(--serif); paint-order: stroke; stroke: #000C; stroke-width: 2.2px; }
.ohaeng-diagram.v2 .dg-halo { fill: none; stroke: #FFE08A; stroke-width: 2.2; filter: drop-shadow(0 0 4px #FFC24A); animation: dgHalo 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes dgHalo { 50% { opacity: .45; transform: scale(1.12); } }
.ohaeng-diagram.v2 .dg-plate { opacity: .96; }
/* 향 시계 새 그림 (2026-11-29): 코덱스 향로 · 방울(assets/ui/duel/censer.webp · bell.webp), 백단향 막대 · 붉은 매듭 */
body .incense { width: 132px; height: 236px; }
body .incense .inc-censer { position: absolute; left: 50%; bottom: 12px; width: 126px; height: auto; transform: translateX(-50%); z-index: 3; pointer-events: none; filter: drop-shadow(0 4px 6px #000C); }
body .incense .inc-stick { bottom: 78px; width: 5px; z-index: 2; border-radius: 2px 2px 0 0; background: linear-gradient(to top, #D8B070 0 30px, #8A6A3A 30px 33px, #9A3A26 33px, #6A2014); box-shadow: inset 1px 0 0 #FFFFFF33, 0 0 0 1px #1A0A06; }
body .incense .inc-ember { width: 8px; height: 8px; top: -4px; background: radial-gradient(circle, #FFF4C2, #FF8A2A 55%, #C8280A); border-radius: 50%; box-shadow: 0 0 6px 2px #FF8A2Acc, 0 0 14px 4px #FF4A1A66; }
body .incense .inc-ash { width: 5px; height: 5px; top: -8px; border-radius: 2px 2px 0 0; background: #C8C0B8; }
body .incense .inc-smoke i { width: 12px; height: 12px; background: #F0F2F8AA; filter: blur(4px); }
body .incense .inc-thread { z-index: 4; }
body .incense .inc-knot { left: -6px; top: -3px; width: 12px; height: 6px; border-radius: 3px; background: linear-gradient(#E8484A, #9A1418); box-shadow: 0 0 0 1px #2A0606, inset 0 1px 0 #FFB0A0; }
body .incense .inc-knot::after { content: ''; position: absolute; left: 4px; top: 1px; width: 4px; height: 4px; border-radius: 50%; background: #FFD54A; box-shadow: 0 0 0 1px #5A3A0A; }
body .incense .inc-string { left: 5px; top: 2px; width: 2px; height: 10px; background: #C8323C; box-shadow: 0 0 0 .5px #2A0606; transform: rotate(-16deg); }
body .incense .inc-bell { left: 0; top: 9px; width: 22px; height: 22px; background: url(assets/ui/duel/bell.webp?v=1) center / contain no-repeat; border-radius: 0; box-shadow: none; filter: drop-shadow(0 1px 2px #000); }
body .incense .inc-bell::after { display: none; }
body .incense .inc-fallen { position: absolute; left: 0; right: 0; bottom: 70px; top: auto; display: flex; justify-content: center; gap: 2px; z-index: 3; }
body .incense .inc-bell.lying { position: static; width: 18px; height: 18px; transform: rotate(80deg); }
body .incense .inc-label { bottom: -8px; font: 700 12px/1.2 var(--serif); color: #FFE9B8; text-shadow: 0 1px 0 #000, 0 0 4px #000; z-index: 5; }
body .incense .inc-label small { color: #D8CBB0; }
body .battle .center-info > .incense { left: calc(100% - 22px); bottom: 4px; transform: scale(.8); }
/* 최강 공격은 HP 로 (2026-11-29): 막대는 남은 HP, 값은 ❤ */
body .battle button.special .sp-gauge.hp i { background: linear-gradient(90deg, #C8181E, #FF6A5A); }
body .battle button.special .sp-hint.hp { color: #FFC8C0; }
body .incense .inc-bell { left: 2px; top: 8px; width: 20px; height: 32px; }
body .incense .inc-bell.lying { width: 16px; height: 26px; }
body .battle .stage > .center-info { z-index: 4; } /* 향이 보스 칸 밑에 깔려 막대 · 방울이 안 보였다 (2026-11-29) */
/* 2026-11-29: 규칙 알약 높이 통일 — 막기(🛡) 그림이 커서 셋째 것만 키가 컸다 */
body:not(.dream) .battle .rules > span { display: inline-flex; align-items: center; gap: 3px; height: 26px; box-sizing: border-box; padding-top: 0; padding-bottom: 0; line-height: 1; white-space: nowrap; }
body:not(.dream) .battle .rules > span img, body:not(.dream) .battle .rules > span canvas, body:not(.dream) .battle .rules > span svg { width: 18px !important; height: 18px !important; margin: 0; flex: none; vertical-align: middle; }
body:not(.dream) .battle .rules > span i.ic { width: 18px !important; height: 18px !important; margin: 0 1px 0 0; flex: none; background-size: contain; }
/* 2026-11-30: 아직 잇지 않은 화살표는 옅게 — 이은 것(.on)과 차이가 안 났다 */
.ohaeng-diagram.v2 path.gen { stroke: #6FB87A; stroke-width: 2; opacity: .32; filter: none; }
.ohaeng-diagram.v2 line.ctrl { opacity: .32; }
.ohaeng-diagram.v2 path.gen.on { stroke: #E0FFD0; stroke-width: 5; opacity: 1; filter: drop-shadow(0 0 3px #7FFF8A) drop-shadow(0 0 6px #3AE05A); }
.ohaeng-diagram.v2 line.ctrl.on { opacity: 1; stroke-width: 3.4; }
.ohaeng-diagram.v2 path.gen:not(.on) { stroke-dasharray: 4 3; opacity: .45; } /* 잇지 않은 상생 = 옅은 점선, 이은 것 = 밝은 실선 */
/* 2026-11-30: 강화 표시(📖+1)가 기 숫자를 가렸다(영어처럼 글이 길면) — 오른쪽 위 구석으로, 용신 표시가 있으면 그 아래 */
body .card:not(.back) .c-grown { z-index: 3; left: auto; right: 5%; bottom: auto; top: 9%; padding: 1px 4px; font: 800 max(9px, 9cqw)/1.2 var(--serif); color: #FFFFFF; background: linear-gradient(#3A7FD0, #1E4A8A); border-radius: 3px; box-shadow: 0 0 0 1px #0A1A3A; white-space: nowrap; }
body .card:not(.back):has(.c-yong) .c-grown { top: 27%; }
/* 족자 위 기운 표시: 오행 도표와 같은 옥 구슬 + 한자 (2026-11-30) */
body .card:not(.back) .c-icon.c-orb { display: flex; align-items: center; justify-content: center; padding: 0; background: radial-gradient(circle at 36% 30%, #FFFFFFD0 0 6%, var(--oc) 34%, color-mix(in srgb, var(--oc), #000 62%) 100%); box-shadow: 0 0 0 max(1px, 1.2cqw) #E8C77A, 0 0 0 max(2px, 2.4cqw) #5A3A10, 0 2px 4px 2px #0008, inset 0 -2px 4px #0006; font: 900 23cqw/1 var(--serif); color: #FFF6E0; text-shadow: 0 1px 2px #000C; }
body .card:not(.back) .c-icon.c-orb.dark { color: #2E2010; text-shadow: 0 1px 0 #FFF4D088; }
.card:not(:has(.c-art)) .c-icon.c-orb { font-size: 30cqw; }
img.el-icon.el-orb { image-rendering: auto; object-fit: contain; border-radius: 50%; background: none !important; padding: 0 !important; box-shadow: none !important; }
/* 2026-11-30: 적 말풍선 꼬리가 말풍선 밖 무대 오른쪽 끝에 홀로 떠 있었다 — 꼬리는 뺀다 */
.battle .stage-banners > .foe-msg::after { display: none !important; content: none !important; }
/* 규칙 「방울이 세 번 울리기 전에」: 새 향로 · 방울 그림 */
.hw-bells { display: flex; align-items: flex-end; justify-content: center; gap: 8px; }
.hw-bells img.hw-censer { width: 120px; height: auto; filter: drop-shadow(0 3px 4px #0006); }
.hw-bells img.hw-bell { width: 34px; height: auto; align-self: center; filter: drop-shadow(0 2px 3px #0006); }
.hw-bells img.hw-censer { animation: none; }
body .battle .wslot .wl img.el-icon, body .battle .wslot .wl .el-icon { width: 17px !important; height: 17px !important; } /* 2026-11-30: 옥 구슬이 커서 무기 칸이 위아래로 늘어났다 */
#fx-layer .ds-drop { border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FFFFFF, #BFE8FF 40%, #5AB0F0 75%, #5AB0F000); }
#fx-layer .ds-fx { background-repeat: no-repeat; image-rendering: auto; pointer-events: none; }
/* 2026-11-30: 보스 쪽 알림(「3의 피해!」)이 흰 종이 상자라 안 어울렸다 — 검붉은 옻칠 패에 금테 · 붓글씨 금빛 글 */
body .battle .stage-banners > .foe-msg { background: linear-gradient(180deg, #4A120C 0%, #2A0806 55%, #1A0503 100%) !important; color: #FFE9B8 !important; border: 0 !important; border-radius: 4px; padding: 6px 18px 7px !important; font: 800 17px/1.2 var(--serif) !important; letter-spacing: .02em; text-shadow: 0 1px 0 #000, 0 0 8px #FF6A2A66; box-shadow: 0 0 0 1px #000, 0 0 0 2px #C9A24B, 0 0 0 3px #5A3A10, inset 0 1px 0 #FFD08A55, inset 0 0 14px #00000099, 0 6px 14px #000B !important; }
body .battle .stage-banners > .foe-msg::before { content: ''; position: absolute; left: 6px; right: 6px; top: 3px; bottom: 3px; border: 1px solid #C9A24B55; border-radius: 2px; pointer-events: none; }
body .battle .stage-banners > .foe-msg { position: relative; }
/* 족자 위 기운 그림 메달 (2026-11-30) */
body .card:not(.back) img.c-icon.c-pic { background: none !important; box-shadow: none !important; padding: 0 !important; border-radius: 50%; filter: drop-shadow(0 2px 3px #000A); object-fit: contain; }
body .battle .stage-banners > .foe-msg::before { content: none !important; display: none !important; } /* 2026-11-30: 안쪽 금선 뺌 */
#fx-layer .ds-ledger b { font-size: 24px; white-space: nowrap; letter-spacing: .04em; }
/* 2026-11-30: 아래 탁자 그림 — 좌우에만 있던 학 · 모란 테두리를 아래 가로 띠까지 (코덱스 table2.webp), 잘리지 않게 칸에 꽉 맞춤 */
@media (min-width: 1000px) { body:not(.dream) .battle::after { background: linear-gradient(#0000 60%, #0003), url(assets/ui/duel/table2.webp?v=1) center / 100% 100% no-repeat !important; } }
/* 2026-11-30: 기술 이름 띠가 사라질 때 위아래로만 납작해지던 것 — 비율 그대로 가운데로 작아지며 사라진다 (글자도 함께) */
@keyframes ac-band2 { 0% { opacity: 0; transform: scaleY(.2); } 12% { opacity: 1; transform: scaleY(1.08); } 20% { transform: none; } 78% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(.35); } }
@keyframes ac-txt2 { 0% { opacity: 0; transform: translateX(-90px); filter: blur(4px); } 16% { opacity: 1; transform: translateX(0); filter: none; } 100% { opacity: 1; transform: translateX(0); } }
.atk-curtain { animation-name: ac-band2 !important; transform-origin: 50% 50%; }
.atk-curtain b { animation-name: ac-txt2 !important; }
/* 2026-11-30: 명부 뜰 배경 — 바닥 돌이 끊기는 낭떠러지가 보여 어색했다. 그림을 내려 위쪽(기둥 · 계단 · 옥좌)이 보이게 */
body:not(.dream) .battle .stage[data-bg="myeongbu"] { background-position: center 22%; }
/* 2026-11-30: 먹물 가림막이 칸보다 왼쪽으로 치우치고 밖으로 삐져나왔다 — 칸에 딱 맞게, 한가운데 */
body .battle .slot.inked::after { inset: 0 !important; border-radius: 4px; background: radial-gradient(ellipse 70% 62% at 50% 50%, #0A0612F7 0 55%, #1A1028E6 72%, #0A061200 100%), radial-gradient(circle at 78% 82%, #0A0612E0 0 10%, #0A061200 18%), radial-gradient(circle at 22% 18%, #0A0612E0 0 8%, #0A061200 15%) !important; filter: none !important; }
/* 2026-11-30: 족자를 줄에 놓으면 화면이 조금 길어져 오른쪽 스크롤 막대가 생기고, 가운데 맞춘 화면이 그만큼 옆으로 밀려 단추가 왔다 갔다 했다 — 막대 자리를 늘 비워 둔다 */
html { scrollbar-gutter: stable; }
/* 처음 한 판 손가락 안내 (js/tutorial.js) */
.tut-tip { position: fixed; z-index: 90; pointer-events: none; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; gap: 2px; }
.tut-tip.below { transform: translate(-50%, 0); flex-direction: column-reverse; }
.tut-tip.nof { transform: translate(-50%, -50%); }
.tut-tip.side { transform: translate(0, -50%); flex-direction: row; gap: 4px; }
.tut-tip.side .tut-bubble { max-width: min(360px, 60vw); }
.tut-tip.side .tut-finger { transform: rotate(90deg); animation-name: tutPokeRight; }
@keyframes tutPokeRight { 50% { translate: 8px 0; } }
.tut-bubble { pointer-events: auto; max-width: min(420px, 86vw); padding: 10px 14px 8px; border-radius: 8px; font: 700 16px/1.45 var(--serif); color: #2B1708; text-align: center; background: linear-gradient(#FFF6E0, #F1DFB4); box-shadow: 0 0 0 2px #8A5A1A, 0 0 0 4px #F4D58A, 0 8px 18px #000A; animation: tutIn .35s ease-out both; }
.tut-skip { display: block; margin: 6px auto 0; padding: 2px 10px; font: 600 12px/1.3 var(--serif); color: #6A4A2A; background: none; border: 0; text-decoration: underline; cursor: pointer; box-shadow: none; }
.tut-finger { font-style: normal; font-size: 40px; line-height: 1; transform: rotate(180deg); filter: drop-shadow(0 2px 3px #000A); animation: tutPoke .8s ease-in-out infinite; }
.tut-tip.below .tut-finger { transform: none; animation-name: tutPokeUp; }
@keyframes tutPoke { 50% { translate: 0 8px; } }
@keyframes tutPokeUp { 50% { translate: 0 -8px; } }
@keyframes tutIn { from { opacity: 0; translate: 0 6px; } }
.tut-end .panel { text-align: center; max-width: 520px; }
.tut-end .tut-lesson { font: 600 16px/1.6 var(--serif); }
/* 2026-12-01: 안내가 배경에 묻혔다 — 스포트라이트 + 눈에 띄는 말풍선 */
.tut-hole { position: fixed; z-index: 89; pointer-events: none; border-radius: 10px; box-shadow: 0 0 0 9999px #000000A6, 0 0 0 3px #FFD54A, 0 0 22px 6px #FFB02A; animation: tutHole 1.2s ease-in-out infinite; transition: left .25s, top .25s, width .25s, height .25s; }
@keyframes tutHole { 50% { box-shadow: 0 0 0 9999px #000000A6, 0 0 0 4px #FFF2A8, 0 0 34px 12px #FFC24A; } }
.tut-bubble { max-width: min(460px, 88vw); padding: 14px 20px 10px; border-radius: 12px; font: 800 19px/1.5 var(--serif); color: #2B1708; background: linear-gradient(#FFFBEF, #FFE9B0); box-shadow: 0 0 0 3px #B3261E, 0 0 0 6px #FFD54A, 0 0 0 8px #5A1A10, 0 0 28px 6px #FFC24AAA, 0 12px 24px #000C; animation: tutIn .35s ease-out both, tutGlow 1.6s ease-in-out .35s infinite; }
@keyframes tutGlow { 50% { box-shadow: 0 0 0 3px #B3261E, 0 0 0 6px #FFE58A, 0 0 0 8px #5A1A10, 0 0 40px 12px #FFD54ACC, 0 12px 24px #000C; } }
.tut-finger { font-size: 48px; filter: drop-shadow(0 0 6px #FFD54A) drop-shadow(0 3px 3px #000C); }
.tut-skip { font-size: 13px; color: #8A5A2A; }
@keyframes tutIn { from { translate: 0 8px; } } /* 처음부터 밝게 (투명하게 시작하지 않는다) */
/* 처음 길 조작 안내 (js/roadtut.js) — 첫 대결 말풍선과 같은 모양, 게임 화면 위쪽 가운데 */
.road-tip { position: fixed; z-index: 85; transform: translateX(-50%); pointer-events: none; }
.road-tip .tut-bubble { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; max-width: min(620px, 92vw); }
.road-tip .rt-step { flex: none; min-width: 34px; padding: 2px 8px; border-radius: 10px; font: 800 13px/1.4 var(--serif); color: #FFF6E0; background: #B3261E; }
.road-tip .tut-skip { display: inline; margin: 0; }
/* 2026-12-01: 뒤에서 도는 햇살 빛줄기가 욱일기처럼 보일 수 있어 뺌(연꽃 원 문양도 사용자가 관둠) → 승리 화면은 밤하늘로 떠오르는 풍등(js/victory.js lanternSky, assets/ui/lantern.webp 코덱스),
   얻은 물건 뒤 작은 빛 무리는 무늬 없이 은은한 빛만 */
.vic { background: radial-gradient(ellipse 90% 55% at 50% 108%, #7A3A1255, transparent 70%), linear-gradient(#070611 0%, #140C18 45%, #2A140E 100%); }
.vc-rays { display: none; }
.vc-sky { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.vc-sky::before, .vc-sky::after { content: ''; position: absolute; inset: -10% 0 0; background:
  radial-gradient(3px 3px at 12% 22%, #FFC873CC, transparent), radial-gradient(2px 2px at 27% 61%, #FFB45A99, transparent), radial-gradient(4px 4px at 41% 13%, #FFD58ACC, transparent),
  radial-gradient(2px 2px at 58% 40%, #FFB45AAA, transparent), radial-gradient(3px 3px at 73% 18%, #FFC873BB, transparent), radial-gradient(2px 2px at 86% 52%, #FFB45A99, transparent),
  radial-gradient(3px 3px at 93% 9%, #FFD58ACC, transparent), radial-gradient(2px 2px at 7% 74%, #FFB45A88, transparent), radial-gradient(3px 3px at 66% 79%, #FFC87399, transparent);
  filter: blur(.6px); animation: vcBokeh 40s linear infinite; }
.vc-sky::after { inset: -10% 0 0; transform: scale(1.6); opacity: .55; filter: blur(1.4px); animation-duration: 62s; }
@keyframes vcBokeh { from { translate: 0 8%; } to { translate: 0 -8%; } }
.vc-lan { position: absolute; bottom: -24vh; left: var(--x); width: var(--w); aspect-ratio: .62; translate: -50% 0; animation: vcRise var(--d) linear var(--dl) infinite; opacity: 0; }
.vc-lan i { display: block; width: 100%; height: 100%; background: url(assets/ui/lantern.webp?v=1) center / contain no-repeat; filter: blur(var(--b)) drop-shadow(0 0 calc(var(--w) * .28) #FFA94Dcc) drop-shadow(0 0 calc(var(--w) * .7) #FF8A3055); animation: vcSway var(--sw) ease-in-out infinite alternate; }
@keyframes vcRise { 0% { transform: translateY(0); opacity: 0; } 8% { opacity: var(--o); } 80% { opacity: var(--o); } 100% { transform: translateY(-145vh); opacity: 0; } }
@keyframes vcSway { from { transform: translateX(calc(var(--w) * -.25)) rotate(-4deg); } to { transform: translateX(calc(var(--w) * .25)) rotate(4deg); } }
@media (prefers-reduced-motion: reduce) { .vc-lan, .vc-lan i, .vc-sky::before, .vc-sky::after { animation-duration: 0s; } .vc-lan { opacity: var(--o); bottom: auto; top: var(--y); } }
.vc-glow, .gf-glow, .loot-rays, .rr-ray { background: radial-gradient(circle, #FFE08A55 0, #FFC2602A 35%, transparent 64%); -webkit-mask: none; mask: none; animation: vcPulse 2.4s ease-in-out infinite alternate; }
.k-level .vc-glow { background: radial-gradient(circle, #8FC4FF66 0, #6AA8FF2A 35%, transparent 64%); }
.k-skill .vc-glow { background: radial-gradient(circle, #C79AFF66 0, #A774FF2A 35%, transparent 64%); }
.loot-rays { background: radial-gradient(circle, color-mix(in srgb, var(--lc) 45%, transparent) 0, color-mix(in srgb, var(--lc) 18%, transparent) 35%, transparent 64%); }
.rr-ray { animation: rrRay 2.2s linear both; }
@keyframes vcPulse { from { transform: scale(.92); opacity: .75; } to { transform: scale(1.06); opacity: 1; } }
/* 2026-12-01: 길 · 보스 결투 화면의 도트 글꼴 → 명조 굵게 (캔버스 글자는 index.html RF) */
.run-screen :is(div, span, b, small, p, button, kbd, label, em, strong) { font-family: var(--serif); font-weight: 700; }
/* 2026-12-01: 최강 공격 · 방어 · 펼치기가 탁자 테두리(학 · 모란 띠)에 걸쳐 있었다 — 탁자 그림을 옆 띠 폭만큼 밖으로 넓혀 단추 칸이 테두리 안쪽이 되게,
   단추는 작게 해서 아래 띠(탁자 높이의 19%) 위에 들어가게 */
@media (min-height: 521px) and (min-width: 1000px) {
  body:not(.dream) .battle::after { box-sizing: border-box; background: linear-gradient(#0000 60%, #0003), url(assets/ui/duel/table2.webp?v=1) center / 100% 100% no-repeat !important; background-clip: padding-box !important; background-origin: border-box !important;
    border-style: solid; border-color: transparent; border-width: 5px 60px 52px; border-image: url(assets/ui/duel/table2.webp?v=1) 14 172 150 172 fill / 5px 60px 52px round; } /* 학 · 모란 띠를 같은 비율로 작게(테두리 그림 조각) */
  body:not(.dream) .battle .act-left { display: flex !important; flex-direction: column; align-self: start; justify-content: start; gap: 3px; margin: 0 4px 0 64px; } /* 왼쪽 띠(60px) 안쪽 */
  body:not(.dream) .battle .act-left > .bt-reroll { min-height: 26px; padding: 2px 8px !important; font-size: 13px; }
  body:not(.dream) .battle button.special { min-height: 38px; padding: 3px 7px 4px !important; gap: 2px; width: 100%; }
  body:not(.dream) .battle .special .sp-label { font-size: 13px; white-space: nowrap; } body:not(.dream) .battle button.special .sp-hint { position: absolute !important; right: 5px; bottom: 1px; top: auto !important; margin: 0 !important; font-size: 10.5px; line-height: 1; } body:not(.dream) .battle button.special .sp-gauge { width: calc(100% - 34px); align-self: flex-start; } /* 값은 게이지 줄 오른쪽 끝에 (단추 높이를 줄이려고) */
  body:not(.dream) .battle .special .sp-gauge { height: 5px; }
  body:not(.dream) .battle .actions > .pile { padding-top: 4px; font-size: 12px; line-height: 1.35; margin-right: 62px; text-align: center; word-break: keep-all; }
  body:not(.dream) .battle .actions > .st-btns { align-self: start; margin: 44px 64px 0 4px !important; width: auto; } /* 오른쪽 띠 안쪽 (위에 남은 족자 두 줄) */
  body:not(.dream) .battle .st-btns button.big { min-height: 42px !important; height: 42px; flex-direction: row !important; gap: 4px; font-size: 16px; white-space: nowrap; }
}
/* 2026-12-01: 규칙 9쪽 그림 — 실제 족자 대결의 최강 단추 · 위쪽 신기 칸과 같은 모양 */
.hw-sp2 { display: grid; gap: 12px; justify-items: center; width: 100%; }
.hw-sp2 .hw-spb { position: relative; display: flex; flex-direction: column; gap: 4px; width: 200px; padding: 8px 12px 9px; border-radius: 6px; color: #fff; font: 700 17px/1.25 var(--serif); text-align: left; }
.hw-sp2 .hw-spb.special-attack { background: linear-gradient(#A8323A, #4E1218); box-shadow: 0 0 0 1px #000, 0 0 0 2px #E8A0A0, 0 3px 10px #0006; }
.hw-sp2 .hw-spb.special-defense { background: linear-gradient(#34629E, #142844); box-shadow: 0 0 0 1px #000, 0 0 0 2px #9FC8F0, 0 3px 10px #0006; }
.hw-sp2 .sp-gauge { display: block; width: calc(100% - 46px); height: 7px; border-radius: 4px; overflow: hidden; background: #0008; box-shadow: 0 0 0 1px #000; }
.hw-sp2 .sp-gauge i { display: block; height: 100%; background: linear-gradient(90deg, #6AB0FF, #CFF0FF); } .hw-sp2 .sp-gauge.hp i { background: linear-gradient(90deg, #C8181E, #FF6A5A); }
.hw-sp2 .sp-hint { position: absolute; right: 9px; bottom: 5px; font: 700 14px/1 var(--serif); }
.hw-sp2 .hw-sg { margin-top: 6px; font: 700 18px/1.2 var(--serif); padding: 7px 14px; color: #FFF3DC; background: linear-gradient(#2A1D18, #15100E); box-shadow: 0 0 0 1px #000, 0 0 0 2px #C8963A; border-radius: 5px; } .hw-sp2 .hw-sg small { color: #E4D6BC; }
/* 2026-12-01: 향이 거의 다 타면 — 아래 「n번 남음」은 흰 글자 그대로(빨간 깜빡임 없앰), 위에 흰 숫자로 5s → 1s */
body .incense.warn .inc-label { color: inherit; animation: none; }
.incense .inc-count { position: absolute; left: 50%; bottom: calc(100% + 16px); top: auto; translate: -50% 0; z-index: 3; pointer-events: none; font: 800 34px/1 var(--serif); color: #FFFFFF; -webkit-text-stroke: 6px #0A0612; paint-order: stroke fill; text-shadow: 0 0 14px #FF8A3A99; white-space: nowrap; }
.incense .inc-count:empty { display: none; }
.incense .inc-count.tick { animation: incCount 1s ease-out; }
@keyframes incCount { 0% { scale: 1.6; opacity: .3; } 18% { scale: 1; opacity: 1; } 100% { scale: 1; opacity: 1; } }
/* 2026-12-01: 족자 줄 바탕 남색 → 한지 (남색에서는 적의 먹물 공격이 잘 안 보였다 — 시안 넷 중 사용자가 고름)
   mat_hanji.webp = mat.webp 에서 안쪽 남색만 투명하게, 밑에 한지 결(hanji.webp 코덱스, tools/gen_hanji.py) */
body:not(.dream) .battle .line { border-image-source: url(assets/ui/duel/mat_hanji.webp?v=1) !important; background: url(assets/ui/duel/hanji.webp?v=1) center / auto 100% repeat-x, #EADCBC !important; background-clip: border-box !important; background-origin: border-box !important; }
body:not(.dream) .battle .slot { background: #7A5A2A1C; box-shadow: inset 0 0 0 1.5px #8A6A3A99, inset 0 2px 6px #5A3A1422; }
body:not(.dream) .battle .slot-empty { color: #9A7A48; }
body:not(.dream) .battle .line .link { text-shadow: 0 0 3px #FFF8E8, 0 0 1px #FFF8E8; }
body:not(.dream) .battle .line .link-생 { color: #2E7A3A; } body:not(.dream) .battle .line .link-극 { color: #B8282E; } body:not(.dream) .battle .line .link-비화 { color: #2A5A9A; }
/* 2026-12-01: 강철이 입의 불꽃 — 숨 쉬듯 커졌다 작아졌다 (game.js mouthFlame) */
.mouth-fire { position: absolute; width: 96px; height: 44px; translate: -100% -50%; transform-origin: 100% 50%; pointer-events: none; z-index: 2; mix-blend-mode: screen; transition: opacity .2s;
  background: radial-gradient(ellipse 60% 50% at 88% 50%, #FFF6D8 0 18%, #FFC24A 36%, #FF6A1A 60%, #C8200A00 78%), radial-gradient(ellipse 50% 40% at 40% 55%, #FF8A2ACC, #FF4A0A00 70%);
  filter: blur(1px) drop-shadow(0 0 8px #FF7A2A); animation: mouthFire 1.8s ease-in-out infinite; }
@keyframes mouthFire { 0%, 100% { scale: .45 .7; opacity: .7; } 50% { scale: 1.25 1.1; opacity: 1; } }
/* 2026-12-01: 못 읽는 저장을 지웠을 때 처음 화면에 한 번 알림 (save.js lostNote) */
.save-lost { margin: 6px auto 0; padding: 6px 14px; max-width: 520px; font: 700 14px/1.4 var(--serif); color: #FFE9B8; background: #2A0E0ECC; box-shadow: 0 0 0 1px #000, 0 0 0 2px #C8963A; border-radius: 5px; text-align: center; }
/* 2026-12-02: 폴드 · 좁은 가로 화면 — 상담사 칸이 좁아지면 배지는 줄을 바꾸고, 시작 버튼 글자는 한 줄로 */
.job .ft-gift { flex-wrap: wrap !important; max-width: 100%; } .job .ft-gift span { max-width: 100%; }
body:not(.dream) .job > button { white-space: nowrap; overflow: hidden; }
@media (max-width: 1180px) { body:not(.dream) .job > button { border-width: 10px 16px; font-size: 22px; } .ft-gift span { font-size: 11px; padding: 1px 5px; } }
/* 2026-12-02: 폴드처럼 정사각형에 가까운 화면 — 오행 원판 · 향로가 요괴를 가려서 작게 */
@media (max-aspect-ratio: 3/2) {
  .battle .ohaeng-diagram.v2 { width: clamp(112px, 14vw, 150px); height: clamp(112px, 14vw, 150px); }
  body .battle .center-info > .incense { transform: scale(.6); left: calc(100% - 30px); }
  body:not(.dream) .battle .turn { font-size: 24px; }
}
/* 2026-12-02: 길 화면 아래가 넉넉히 비면(폴드 등) 터치 버튼을 그 빈 곳으로 (js/run.js padPlace) */
.run-view.pad-below { margin-bottom: var(--below); }
.run-view.pad-below .run-pad { inset: 100% 0 auto 0; height: var(--below); align-items: center; padding: 6px clamp(12px, 3vw, 40px) 0; }
.run-view.pad-below .run-pad.classic .pad-atk { margin-bottom: 0 !important; }
/* 2026-12-02: 정사각형에 가까운 화면(폴드) — 단추 줄을 없애 한 화면에 (game.js squareBattle) */
body:not(.dream) .battle.bt-sq > .actions { display: none; }
body:not(.dream) .battle.bt-sq > .rules { flex-wrap: nowrap; align-items: center; gap: 6px; max-width: none; }
body:not(.dream) .battle.bt-sq > .rules > .act-left { display: flex; flex-direction: row; gap: 5px; margin: 0 auto 0 0; transform: none !important; }
body:not(.dream) .battle.bt-sq > .rules > .act-left > button { width: auto; min-width: 0; min-height: 0; height: 30px; padding: 0 9px; font-size: 13px; white-space: nowrap; }
body:not(.dream) .battle.bt-sq > .rules > .act-left button.special .sp-gauge { position: absolute; left: 4px; right: 4px; bottom: 2px; height: 3px; margin: 0; }
body:not(.dream) .battle.bt-sq > .rules > .act-left button.special .sp-hint { position: static; font-size: 11px; margin-left: 4px; }
body:not(.dream) .battle.bt-sq > .rules > .act-left button.special { display: inline-flex; flex-direction: row; align-items: center; }
body:not(.dream) .battle.bt-sq > .rules > .act-left button.special .sp-label b { display: none; }
body:not(.dream) .battle.bt-sq > .rules > .i-btn { margin-right: auto; }
body:not(.dream) .battle.bt-sq > .line { position: relative; }
body:not(.dream) .battle.bt-sq > .line > .sq-right { position: absolute; right: 70px; top: 50%; translate: 0 -50%; display: flex; flex-direction: column; align-items: center; gap: 6px; z-index: 3; }
body:not(.dream) .battle.bt-sq > .line > .sq-right .st-btns { display: flex; flex-direction: column; gap: 6px; margin: 0; }
body:not(.dream) .battle.bt-sq > .line > .sq-right .pile { font-size: 12px; text-align: center; margin: 0; }
body:not(.dream) .battle.bt-sq > .line { justify-content: flex-start; padding-left: 24px !important; }
body:not(.dream) .battle.bt-sq > .line > .sq-right { position: static; translate: none; margin: 0 8px 0 auto; align-self: center; }
body:not(.dream) .battle.bt-sq { display: grid !important; grid-template-columns: minmax(0, 1fr) !important; grid-template-rows: minmax(220px, 1fr) auto auto auto !important; min-height: 0 !important; row-gap: 6px !important; }
body:not(.dream) .battle.bt-sq > .stage { height: auto !important; min-height: 0 !important; max-height: none !important; }
body:not(.dream) .battle.bt-sq > *:not(.bt-bg) { grid-column: 1 / -1 !important; grid-row: auto !important; }
body:not(.dream) .battle.bt-sq > .rules { justify-self: stretch !important; margin-bottom: 0 !important; }
body:not(.dream) .battle.bt-sq .sq-right button { white-space: nowrap; }
body:not(.dream) .battle.bt-sq > .rules > .act-left > button { flex: none; } body:not(.dream) .battle.bt-sq > .rules > .act-left button.special .sp-label { flex: none; width: auto; overflow: visible; display: inline-flex; align-items: center; gap: 2px; font-size: 13px; white-space: nowrap; }
body:not(.dream) .battle.bt-sq > .rules > .act-left { margin: 0 auto 0 0 !important; align-self: center !important; }
body:not(.dream) .battle.bt-sq > .rules > .act-left > button { width: auto !important; min-height: 0 !important; height: 30px; padding: 0 9px 3px !important; }
body:not(.dream) .battle.bt-sq > .rules > .act-left button.special .sp-hint { position: static !important; margin: 0 0 0 5px !important; font-size: 11px; }
body:not(.dream) .battle.bt-sq > .rules > .act-left button.special .sp-gauge { position: absolute !important; left: 6px; right: 6px; bottom: 3px; width: auto !important; height: 3px !important; }
main:has(> .battle.bt-sq), #app:has(> .battle.bt-sq) { padding-bottom: 0 !important; }
#app:has(> .battle.bt-sq) { display: flex; flex-direction: column; height: 100vh; height: 100dvh; box-sizing: border-box; min-height: 0 !important; }
#app:has(> .battle.bt-sq) > .battle.bt-sq { flex: 1 1 0; height: auto; margin-bottom: 6px; }
#app:has(> .battle.bt-sq) > .topbar { flex: none; }
body:not(.dream) .battle.bt-sq > .rules > .act-left { flex-wrap: nowrap !important; flex-direction: row !important; }
@media (max-width: 940px) { body:not(.dream) .battle.bt-sq > .rules { gap: 4px; } body:not(.dream) .battle.bt-sq > .rules > .act-left > button { padding: 0 6px 3px !important; } body:not(.dream) .battle.bt-sq > .rules > .act-left button.special .sp-label { font-size: 12px; } body:not(.dream) .battle.bt-sq > .rules > span { padding: 0 7px; font-size: 12px; } }
/* 2026-12-02: 윗줄은 한 줄로 (game.js fitTopbar 가 넘치면 줄째 줄인다) */
.topbar { flex-wrap: nowrap !important; } .topbar > * { flex-shrink: 0; } .topbar .stat-pill, .topbar .gold, .topbar .lv { white-space: nowrap; }
@media (min-height: 521px) { .topbar { gap: 8px !important; } }
/* 최강 공격 · 방어: 글자를 감싼 어두운 상자를 걷어 뒤가 보이게 (단추 색만 남김) */
body:not(.dream) .battle.bt-sq > .rules > .act-left button.special .sp-label, body:not(.dream) .battle.bt-sq > .rules > .act-left button.special .sp-hint { background: none !important; box-shadow: none !important; padding: 0 !important; text-shadow: 0 1px 2px #000, 0 0 3px #000; }
body:not(.dream) .battle.bt-sq > .rules > .act-left button.special-attack { background: linear-gradient(#A8323AB3, #4E1218B3) !important; }
body:not(.dream) .battle.bt-sq > .rules > .act-left button.special-defend, body:not(.dream) .battle.bt-sq > .rules > .act-left button.special:not(.special-attack) { background: linear-gradient(#2A5AA8B3, #12284EB3) !important; }
@media (min-height: 521px) { .run-screen > .run-hud { flex-wrap: nowrap !important; } .run-screen > .run-hud > * { flex-shrink: 0; } }
/* 2026-12-02: 보통 폰 가로 — 왼쪽 무대 · 단추 줄 · 족자 줄, 오른쪽 손패 세로 칸(스크롤) + 펼치기 (game.js wideBattle) */
#app:has(> .battle.bt-wd) { display: flex; flex-direction: column; height: 100vh; height: 100dvh; box-sizing: border-box; min-height: 0 !important; padding-bottom: 0 !important; }
#app:has(> .battle.bt-wd) > .topbar { flex: none; }
body:not(.dream) .battle.bt-wd { flex: 1 1 0; min-height: 0 !important; height: auto !important; margin-bottom: 4px; display: grid !important; grid-template-columns: minmax(0, 1fr) var(--wdc, 186px) !important; grid-template-rows: minmax(0, 1fr) auto auto !important; gap: 4px 6px !important; }
body:not(.dream) .battle.bt-wd > .stage { grid-column: 1 !important; grid-row: 1 !important; height: auto !important; min-height: 0 !important; max-height: none !important; }
body:not(.dream) .battle.bt-wd > .rules { grid-column: 1 !important; grid-row: 2 !important; display: flex; flex-wrap: nowrap !important; align-items: center; gap: 4px; margin: 0 !important; justify-self: stretch !important; max-width: none !important; }
body:not(.dream) .battle.bt-wd > .line { grid-column: 1 !important; grid-row: 3 !important; margin: 0 !important; }
body:not(.dream) .battle.bt-wd > .hand { grid-column: 2 !important; grid-row: 1 / 3 !important; display: grid !important; grid-template-columns: 1fr 1fr; align-content: start; justify-items: center; gap: 6px 4px; overflow-y: auto; overflow-x: hidden; min-height: 0; padding: 4px 2px 18px !important; margin: 0 !important; background: #0A060480; border-radius: 6px; box-shadow: inset 0 0 0 1px #6A512888; scrollbar-width: thin; }
body:not(.dream) .battle.bt-wd > .hand > .card { margin: 0 !important; transform: none; }
body:not(.dream) .battle.bt-wd > .hand > .hand-hint { grid-column: 1 / -1; position: static !important; font-size: 10px; margin: 0; }
body:not(.dream) .battle.bt-wd > .actions { display: none !important; }
body:not(.dream) .battle.bt-wd > .wd-go { grid-column: 2; grid-row: 3; display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 4px; }
body:not(.dream) .battle.bt-wd > .wd-go .st-btns { display: flex; flex-direction: column; gap: 4px; margin: 0; }
body:not(.dream) .battle.bt-wd > .wd-go .st-btns button { width: 100%; white-space: nowrap; }
body:not(.dream) .battle.bt-wd > .wd-go .pile { font-size: 10px; text-align: center; line-height: 1.2; margin: 0; }
body:not(.dream) .battle.bt-wd > .rules > .act-left { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; gap: 4px; margin: 0 auto 0 0 !important; transform: none !important; }
body:not(.dream) .battle.bt-wd > .rules > .act-left > button { flex: none; width: auto !important; min-width: 0 !important; min-height: 0 !important; height: 24px; padding: 0 6px 2px !important; font-size: 11px !important; white-space: nowrap; position: relative; display: inline-flex; align-items: center; }
body:not(.dream) .battle.bt-wd > .rules > .act-left button.special .sp-label { flex: none; width: auto; overflow: visible; display: inline-flex; align-items: center; gap: 2px; font-size: 11px !important; white-space: nowrap; background: none !important; box-shadow: none !important; padding: 0 !important; text-shadow: 0 1px 2px #000; }
body:not(.dream) .battle.bt-wd > .rules > .act-left button.special .sp-label b { display: none; }
body:not(.dream) .battle.bt-wd > .rules > .act-left button.special .sp-hint { position: static !important; margin: 0 0 0 4px !important; font-size: 10px !important; background: none !important; box-shadow: none !important; padding: 0 !important; }
body:not(.dream) .battle.bt-wd > .rules > .act-left button.special .sp-gauge { position: absolute !important; left: 4px; right: 4px; bottom: 2px; width: auto !important; height: 2px !important; margin: 0 !important; }
body:not(.dream) .battle.bt-wd > .rules > .act-left button.special-attack { background: linear-gradient(#A8323AB3, #4E1218B3) !important; }
body:not(.dream) .battle.bt-wd > .rules > .act-left button.special:not(.special-attack) { background: linear-gradient(#2A5AA8B3, #12284EB3) !important; }
body:not(.dream) .battle.bt-wd > .rules > span { height: 22px !important; padding: 0 6px !important; font-size: 11px !important; }
body:not(.dream) .battle.bt-wd > .stage, body:not(.dream) .battle.bt-wd > .hand { height: 100% !important; align-self: stretch !important; box-sizing: border-box; }
/* 2026-12-02 보통 폰: 무대 그림은 0.56 이면 너무 작아 0.72 로 (화면 높이에 맞춰 채워진다) */
body:not(.dream) .battle.bt-wd > .stage { zoom: .72 !important; }
/* 2026-12-02 보통 폰: 캐릭터 발 아래로 내린 체력 막대 · 이름을 작게 */
body:not(.dream) .battle.bt-wd > .stage .fighter > .bar { height: 8px !important; }
body:not(.dream) .battle.bt-wd > .stage .fighter > .bar.mp-bar { height: 5px !important; }
body:not(.dream) .battle.bt-wd > .stage .fighter > .stat { font-size: 13px !important; line-height: 1.2; padding-top: 0; padding-bottom: 0; }
/* 보스 대사 말풍선이 발 아래 체력 막대를 가려서 무대 위쪽(기술 표시 아래)으로 */
body:not(.dream) .battle.bt-wd > .stage > .stage-banners { top: 60px !important; bottom: auto !important; }
/* 2026-12-02 보통 폰: 오행 원판 · 향로는 주인공이 아니니 작게 해서 무대 가운데 위쪽으로 */
body:not(.dream) .battle.bt-wd > .stage > .center-info { zoom: .85 !important; align-self: start !important; padding-top: 12px !important; padding-bottom: 0 !important; }
body:not(.dream) .battle.bt-wd > .stage > .stage-banners > .foe-msg { align-self: flex-end; } /* 보스 대사는 보스 쪽(오른쪽)에 — 가운데 원판을 가렸다 */
body:not(.dream) .battle.bt-wd > .stage > .stage-banners > .foe-msg { font-size: 10px !important; padding: 2px 8px !important; } /* 적 대사 더 작게 */
/* 2026-12-02: 길 화면 좌우 빈 칸(그림보다 화면이 넓을 때)에 족자 대결 테이블의 학 · 모란 테두리를 세로로 */
.run-view { background: url(assets/ui/duel/side_l.webp?v=1) left center / auto 100% no-repeat, url(assets/ui/duel/side_r.webp?v=1) right center / auto 100% no-repeat, #0B0606; }
/* 2026-12-02 폴드 안쪽 화면 길: 아래 빈 곳 = 학 · 모란 테두리 판 + 왼쪽 방향 · 가운데 큰 메뉴 · 오른쪽 회피 · 공격 · 점프(겹치지 않게 나란히) */
.run-view.pad-below .run-pad { background: url(assets/ui/duel/table2.webp?v=1) center / 100% 100% no-repeat; box-shadow: 0 0 0 1px #000, 0 6px 24px #0009; border-radius: 0 0 6px 6px; padding: 8px clamp(40px, 6vw, 90px) 18px !important; gap: 12px; }
.run-view.pad-below .run-pad.classic .pad-right { align-items: center; gap: clamp(10px, 1.6vw, 22px); }
.run-view.pad-below .run-pad.classic .pad-atk { margin: 0 !important; }
.run-view.pad-below .run-pad.classic .pad-dodge { margin: 0 !important; }
.run-view.pad-below .run-pad > .pad-menu { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; justify-content: center; align-content: center; gap: 10px 12px; pointer-events: auto; }
.pad-menu .pm-btn { pointer-events: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 74px; height: 74px; padding: 6px 8px; border-radius: 10px; background: linear-gradient(#2A1C16E8, #140C0AE8); border: 1px solid #8A6A2E; box-shadow: inset 0 0 0 1px #000A, 0 3px 8px #0008; color: #F2E2B8; font: 700 15px/1.1 var(--serif); cursor: pointer; }
.pad-menu .pm-btn small { font-size: 13px; color: #D8C28E; white-space: nowrap; }
.pad-menu .pm-btn .pm-ic { display: flex; align-items: center; justify-content: center; font-size: 26px; line-height: 1; }
.pad-menu .pm-btn .pm-ic img, .pad-menu .pm-btn .pm-ic svg { width: 34px; height: 34px; }
.pad-menu .pm-auto b { font-size: 20px; color: #9A8C78; } .pad-menu .pm-auto.on { border-color: #E0B050; box-shadow: inset 0 0 0 1px #000A, 0 0 14px #E0B05088; } .pad-menu .pm-auto.on b { color: #FFD76A; }
.pad-menu .pm-heal { display: flex; pointer-events: auto; } .pad-menu .pm-heal .heal-bag { display: flex; gap: 8px; } .pad-menu .pm-heal .heal-btn { width: 74px; height: 74px; } .pad-menu .pm-heal .heal-btn img { width: 52px; height: 52px; }
.run-view.pad-below .run-pad > .pad-menu { flex: none; display: grid; grid-template-columns: repeat(4, auto); }
.pad-menu .pm-heal .heal-btn { width: 74px; height: 74px; border-radius: 10px; }
/* 2026-12-02 (2): 가운데 메뉴는 남은 폭 안에서만 — 윗줄 주머니(넘치면 옆으로 밀기) · 아랫줄 단추. 오른쪽 회피 · 공격 · 점프는 줄어들지 않게 */
.run-view.pad-below .run-pad > .pad-left, .run-view.pad-below .run-pad > .pad-right { flex: none; }
.run-view.pad-below .run-pad > .pad-menu { flex: 1 1 0 !important; min-width: 0 !important; display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.pad-menu .pm-heal { max-width: 100%; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; touch-action: pan-x; padding: 6px 2px 4px; }
.pad-menu .pm-heal .heal-bag { flex-wrap: nowrap; gap: 6px; } .pad-menu .pm-heal .heal-btn { flex: none; width: 62px !important; height: 62px !important; } .pad-menu .pm-heal .heal-btn img { width: 44px !important; height: 44px !important; }
.pad-menu .pm-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 100%; } .pad-menu .pm-row .pm-btn { min-width: 64px; height: 64px; flex: none; }
.pad-menu .pm-heal:empty, .pad-menu .pm-heal .heal-bag:empty { display: none; }
/* 2026-12-02: 전리품 화면을 화면 가득 크게 — 폴드 안쪽 · PC 처럼 높은 화면에서 카드 · 글자 · 아이콘이 작아 잘 안 보였다 */
@media (min-height: 600px) {
  .vc-card { width: clamp(520px, calc(100vw - 580px), 760px); max-width: 92vw; padding: 30px 40px 24px; } .vc-from { font-size: 22px; } .vc-art, .vc-card.k-level .vc-art { height: clamp(200px, 30vh, 320px); } .vc-art img, .vc-card.k-level .vc-art img { height: clamp(190px, 29vh, 310px); max-height: none; max-width: 420px; }
  .vc-art .vc-ic { font-size: 130px; } .vc-art .vc-ic .ic { width: 180px; height: 180px; } .vc-art .yp { width: 160px !important; height: 160px !important; } .vc-art .vc-el, .vc-art .el-icon { width: 170px !important; height: 170px !important; } .vc-glow { width: 440px; height: 440px; margin: -220px; }
  .vc-card h2 { font-size: 64px; } .vc-amt b { font-size: 58px; } .vc-row { font-size: 28px; } .vc-row span { min-width: 140px; } .vc-row b { font-size: 34px; min-width: 80px; } .vc-card p { font-size: 21px; } .vc-next { font-size: 19px; margin-top: 18px; }
  .vc-list { width: 260px; gap: 10px; } .vc-list > b { font-size: 40px; } .vc-got { font-size: 19px; padding: 8px 14px; } .vc-got img, .vc-got .vc-ic { width: 46px; height: 46px; font-size: 34px; } .vc-got .yp { width: 40px !important; height: 40px !important; } .vc-got .el-icon { width: 42px !important; height: 42px !important; }
  .vc-sum { max-width: min(96vw, 1240px); } .vc-sum h2 { font-size: clamp(54px, 8vh, 84px); margin-bottom: 26px; } .vc-grid { gap: 18px; max-height: 70vh; margin-bottom: 30px; }
  .vc-cell { width: clamp(180px, 18vw, 230px); padding: 20px 10px 18px; gap: 10px; } .vc-cell img { height: clamp(90px, 11vh, 120px); max-width: 180px; } .vc-cell .vc-ic { font-size: 80px; } .vc-cell .vc-ic .ic { width: 110px; height: 110px; } .vc-cell .yp { width: 100px !important; height: 100px !important; } .vc-cell .el-icon { width: 104px !important; height: 104px !important; } .vc-cell b { font-size: 24px; } .vc-cell small { font-size: 18px; }
  .vc-sum .big { font-size: 28px; padding: 16px 48px; }
}
/* 2026-12-02: 장터 아래 줄 — 자리가 모자라면 「오늘의 운세」 · 「장날 · 모두 2할 싸게」가 좁아져 글자가 세로로 쌓였다 → 글자는 한 줄, 넘치면 두 줄로 */
.sh-foot { flex-wrap: wrap; row-gap: 8px; column-gap: clamp(10px, 2vw, 34px) !important; } .sh-foot > :is(.sh-fortune, .sh-sale, .sh-purse, button.big) { white-space: nowrap; flex: none; writing-mode: horizontal-tb; } .sh-foot > .sh-dum { flex: 0 1 auto; min-width: max-content; }
/* 2026-12-02: 폰에서 오행 원판의 초록(상생) · 빨강(상극) 안내선이 잘 안 보였다 — 조금 더 굵고 밝게, 검은 테두리로 배경과 떨어지게 (이은 줄 .on 은 그대로 더 밝다) */
.ohaeng-diagram.v2 path.gen:not(.on) { stroke: #8FE89A; stroke-width: 2.6; opacity: .72; filter: drop-shadow(0 0 1px #000) drop-shadow(0 0 1px #000); }
.ohaeng-diagram.v2 line.ctrl:not(.on) { stroke: #FF8A78; stroke-width: 1.9; opacity: .7; filter: drop-shadow(0 0 1px #000) drop-shadow(0 0 1px #000); }
body .battle:is(.bt-wd, .bt-sq) .ohaeng-diagram.v2 path.gen:not(.on) { stroke-width: 3.2; opacity: .85; } body .battle:is(.bt-wd, .bt-sq) .ohaeng-diagram.v2 line.ctrl:not(.on) { stroke-width: 2.4; opacity: .82; }
/* 🖼 갤러리 (2026-12-02, js/gallery.js) — 이야기 그림 · 길의 주인 그림. 그림 칸은 16:9, 닫힌 그림은 자물쇠 */
.gallery-screen { max-width: 1200px; margin: 0 auto; padding: 10px 16px 24px; } .gl-head { display: flex; align-items: center; gap: 14px; } .gl-head h2 { margin: 0; font: 400 clamp(30px, 5vh, 46px)/1.1 var(--disp); color: #FFE9B8; text-shadow: 0 3px 0 #1A0C06; } .gl-head .gl-count { font: 800 20px/1 var(--serif); color: #FFD54A; } .gl-head button { margin-left: auto; }
.gl-tabs { margin-top: 10px; } .gl-note { margin: 6px 0 0; font-size: 14px; color: #CDBB98; }
.gl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(180px, 22vw, 270px), 1fr)); gap: 14px; margin-top: 12px; }
.gl-tile { display: flex; flex-direction: column; gap: 4px; padding: 6px 6px 10px; text-align: left; color: #FFE9B8; background: linear-gradient(#2B1F1AF2, #14100EF2); box-shadow: 0 0 0 1px #000, 0 0 0 2px #6A5128; border-radius: 4px; cursor: pointer; transition: transform .12s, box-shadow .12s; } .gl-tile:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px #000, 0 0 0 2px #E8C77A, 0 6px 18px #000A; }
.gl-pic { aspect-ratio: 16 / 9; overflow: hidden; border-radius: 2px; background: #0B0606; display: grid; place-items: center; } .gl-pic img { width: 100%; height: 100%; object-fit: cover; display: block; } .gl-lock { font-size: 34px; opacity: .55; }
.gl-tile b { padding: 0 4px; font: 700 16px/1.25 var(--serif); } .gl-tile small { padding: 0 4px; font-size: 12px; color: #B8A888; } .gl-tile.locked { color: #8A7A62; } .gl-tile.locked .gl-pic { background: repeating-linear-gradient(45deg, #120C0A 0 10px, #1A1210 10px 20px); }
@media (max-height: 520px) { .gallery-screen { padding: 4px 10px 12px; } .gl-head h2 { font-size: 26px; } .gl-note { display: none; } .gl-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 6px; } .gl-tile b { font-size: 13px; } }
/* 2026-12-03: 아이폰 가로처럼 낮은 화면(높이 520 이하)에서는 위 메뉴(제목 · 상담사 · 회전 기술 · 탭)가 고정이라 아래 목록이 100px 남짓만 보였다
   → 화면 전체가 함께 굴러가고(제목 · 상담사 줄은 위로 사라짐) 탭 줄만 위에 붙는다. 상담사 줄 · 회전 기술 줄도 작게 */
@media (max-height: 520px) {
  body[data-scr="train"] .train-screen { height: auto; overflow: visible; gap: 6px; }
  body[data-scr="train"] .train-screen > .tr-body-wrap { flex: none; min-height: 0; }
  body[data-scr="train"] .tr-body { height: auto; overflow: visible; padding: 0 2px 16px; }
  body[data-scr="train"] .tr-scroll { display: none !important; }
  body[data-scr="train"] .tr-body .dex-chips { position: static; padding: 4px 0 6px; background: transparent !important; box-shadow: none !important; }
  body[data-scr="train"] .train-screen > .shop-tabs { position: sticky; top: 0; z-index: 5; padding: 4px 0; background: #EDE6D8F2; box-shadow: 0 6px 8px -6px #3A2A1A66; }
  body[data-scr="train"] .tr-jobs { gap: 6px; } body[data-scr="train"] .tr-job { flex-direction: row; gap: 4px; padding: 1px 8px 1px 4px; } body[data-scr="train"] .tr-job canvas { height: 28px !important; } body[data-scr="train"] .tr-job small { font-size: 12px; }
  body[data-scr="train"] .train-screen .tr-spin { font-size: 12px; line-height: 1.3; } body[data-scr="train"] .train-screen .tr-spin .i-btn { scale: .7; }
}
@media (max-height: 520px) { body[data-scr="train"] .tr-body-in { flex: none; min-height: 0; } } /* 2026-12-03: 위 묶음과 함께 — 목록 칸이 높이 0으로 접혀 있었다 */
/* 2026-12-03: 폰(낮은 화면)의 외전 카드 — 큰 그림(CG)에 이미 그 요괴들이 있는데 작은 도트 그림을 또 얹어 가운데 · 보상 글자와 겹쳤다 → 뺀다. 상담사 칸도 카드 윗선에 걸쳐 있었다 → 띄운다 */
@media (max-height: 520px) { .side-screen .side-foes { display: none; } .side-screen > .tr-jobs { margin-bottom: 6px; } .side-screen .side-card small { max-width: 92%; } }
/* 2026-12-03 낮은 가로 화면(아이폰 852x393 등) 처음 화면: 왼쪽 = 제목 글씨 + 상담사 다섯, 오른쪽 = 이어서 하기 + 세 단추 세로, 아래 = 고리 단추 */
@media (max-height: 520px) and (min-width: 640px) {
  .title-screen { display: grid !important; grid-template-columns: minmax(0, 1.3fr) minmax(210px, 1fr); grid-template-rows: auto auto 1fr auto; grid-template-areas: "logo res" "logo menu" "spr menu" "sub sub"; column-gap: 22px; row-gap: 6px; align-items: center; justify-items: center; height: 100vh; height: 100dvh; min-height: 0; box-sizing: border-box; padding: 40px max(18px, env(safe-area-inset-right)) 4px max(18px, env(safe-area-inset-left)) !important; }
  .title-screen .title-logo { position: static; transform: none; grid-area: logo; width: min(330px, 38vw, calc((100vh - 230px) / .44)); align-self: end; animation-name: logo-in-s; }
  .title-screen .title-sprites, .title-screen:has(.title-resume) .title-sprites { grid-area: spr; display: flex !important; align-self: start; gap: clamp(4px, 1.4vw, 16px); margin: 0; }
  .title-screen .title-sprites canvas, .title-screen .title-sprites canvas:first-child, .title-screen:has(.title-resume) .title-sprites canvas { width: clamp(46px, 7.4vw, 70px) !important; }
  .title-screen .title-resume { grid-area: res; width: 100%; max-width: 360px; align-self: end; }
  .title-screen .title-menu { grid-area: menu; grid-template-columns: 1fr; width: 100%; max-width: 300px; gap: 6px; padding: 0; align-self: start; }
  .title-screen .title-menu .mode-btn { min-height: 42px !important; font-size: 30px !important; display: flex; align-items: center; justify-content: center; gap: 10px; }
  .title-screen .title-menu small { margin: 0; }
  .title-screen .title-sub { grid-area: sub; }
}
@keyframes logo-in-s { from { opacity: 0; transform: translateY(-14px) scale(.96); } }
/* 2026-12-03 낮은 가로 화면 사주판: 귀인 명패가 넷째 촛불을 가리던 것 → 판 · 제목을 왼쪽으로 조금 옮기고 명패는 옆으로 넓고 낮게(얼굴 왼쪽 · 글 오른쪽) */
@media (max-height: 520px) and (min-width: 640px) {
  .saju-screen > h2, .saju-screen > .sj-board { translate: calc(-1 * clamp(40px, 9vw, 90px)) 0; }
  .saju-screen .ft-plaque { --w: clamp(220px, 28vw, 270px); right: calc(-1 * var(--w) - 14px); top: -24px; display: grid; grid-template-columns: 58px 1fr; grid-template-areas: "s s" "f b" "f p" "e e" "r r"; column-gap: 8px; align-items: center; text-align: left; padding: 6px 10px 6px; }
  .saju-screen .ft-plaque > small { grid-area: s; text-align: center; font-size: 15px; margin-bottom: 2px; }
  .saju-screen .ft-face { grid-area: f; width: 58px; margin: 0; }
  .saju-screen .ft-plaque > b { grid-area: b; font-size: 22px; align-self: end; }
  .saju-screen .ft-plaque > p { grid-area: p; font-size: 11px; line-height: 1.3; margin: 0; align-self: start; }
  .saju-screen .ft-plaque > em { grid-area: e; text-align: center; font-size: 11px; margin-top: 2px; }
  .saju-screen .ft-row { grid-area: r; justify-content: center; }
}
/* 2026-12-03 뽑은 사주의 태어난 때 한 줄 */
.sj-born { margin: -4px 0 4px; font: 700 14px/1.3 var(--serif); color: #E6DDF2; text-shadow: 0 1px 3px #000; } .sj-born b { color: #FFE08A; }
@media (max-height: 520px) { .sj-born { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); margin: 0; font-size: 12px; white-space: nowrap; padding: 2px 12px; background: #0D0908B8; border-radius: 12px; z-index: 2; } }
@media (max-height: 520px) and (min-width: 640px) { .sj-born { translate: calc(-1 * clamp(40px, 9vw, 90px)) 0; } }
/* 2026-12-03 환경설정 「게임기처럼」 그림: 공격 단추를 너무 당겨 회피 · 점프 동그라미가 겹치던 것 */
.set-pad.classic .tp-hand { margin-left: -6px !important; margin-right: -6px !important; margin-bottom: 30px; }
@media (max-height: 520px) { .set-pad.classic .tp-hand { margin-left: -4px !important; margin-right: -4px !important; margin-bottom: 18px; } }
@media (min-height: 521px) { .sj-born { display: table; margin: -2px auto 6px; padding: 3px 14px; background: #0D0908B8; border-radius: 12px; font-size: 15px; } }
@media (min-height: 521px) and (min-width: 1101px) { .saju-screen .ft-face { width: 50%; margin: 4px auto 2px; } .saju-screen .ft-plaque { top: 2vh; } } /* PC: 귀인 명패 끝이 다섯째 촛불에 닿지 않게 */
/* 2026-12-03 길 화면 윗줄: 회복 아이템이 많으면 줄을 바꿔 세로로 쌓여 윗줄이 아래로 늘어나고 오른쪽 단추가 눌리지 않던 것 → 한 줄로, 넘치면 그 안에서 옆으로 밀어 보기 */
.run-hud .heal-bag { flex-wrap: nowrap !important; flex-direction: row !important; overflow-x: auto; overflow-y: hidden; min-width: 0; max-width: min(34vw, 330px); flex-shrink: 1 !important; padding: 2px 6px 5px 2px; scrollbar-width: none; overscroll-behavior: contain; }
.run-hud .heal-bag::-webkit-scrollbar { display: none; } .run-hud .heal-bag .heal-btn { flex: none; }
@media (max-height: 520px) { .run-hud .heal-bag { max-width: min(26vw, 230px); gap: 5px; } }
/* 2026-12-03 보상 화면: 스크롤해도 제목 · 탭은 위에 붙어 있다, 오늘 출석 카드에 「눌러요」 */
.reward-hub > .rh-top { position: sticky; top: 0; z-index: 20; display: flex; flex-direction: column; gap: inherit; margin: 0 -12px; padding: 4px 12px 6px; background: linear-gradient(#1A100CF2 70%, #1A100CC0 90%, #1A100C00); }
.tagc.today { position: relative; } .tagc .tag-tap { position: absolute; left: 50%; bottom: -12px; transform: translateX(-50%) rotate(var(--r, 0deg)); padding: 1px 7px; font: 700 11px/1.4 var(--serif); font-style: normal; white-space: nowrap; color: #FFF4D8; background: #A3201C; border-radius: 8px; box-shadow: 0 0 0 1px #000, 0 0 10px #FFD54A; pointer-events: none; animation: tag-tap 1s ease-in-out infinite alternate; }
@keyframes tag-tap { to { transform: translateX(-50%) translateY(-3px); } }
@media (max-height: 520px) { .tagc .tag-tap { font-size: 9px; bottom: -10px; padding: 0 5px; } }
/* body 의 overflow-x:hidden 이 스크롤 틀이 되어 sticky 가 듣지 않았다 → clip (스크롤 틀을 만들지 않는다) */
body[data-scr="reward"], body[data-scr="train"] { overflow-x: clip !important; overflow-y: visible !important; }
/* 2026-12-03 길 윗줄: 글자 대신 그림 + 숫자 (체력 · 기운 · 엽전 · 백성) */
.run-hud .rh-bar .rh-ic { width: 22px; height: 22px; object-fit: contain; image-rendering: auto; flex: none; }
.run-hud .rh-got { display: inline-flex !important; align-items: center; gap: 4px; font: 700 16px/1 var(--serif) !important; color: #FFE08A; overflow: visible !important; }
.run-hud .rh-got .rh-ic { width: 24px; height: 24px; object-fit: contain; } .run-hud .rh-got .rh-pt { width: 24px; height: 24px; object-fit: cover; object-position: top; border-radius: 50%; box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--brass2); margin-left: 4px; } .run-hud .rh-got .rh-dj { font-style: normal; font-size: 16px; margin-left: 2px; }
.run-hud .rh-gold { font-size: 16px; }
@media (max-height: 520px) { .run-hud .rh-bar .rh-ic { width: 16px; height: 16px; } .run-hud .rh-got { font-size: 13px !important; } .run-hud .rh-got .rh-ic, .run-hud .rh-got .rh-pt { width: 18px; height: 18px; } .run-hud .rh-gold { font-size: 13px; } }
.run-hud .rh-bar .bar { width: clamp(90px, 15vw, 220px) !important; height: 14px; } @media (max-height: 520px) { .run-hud .rh-bar .bar { width: clamp(70px, 12vw, 130px) !important; height: 11px; } }
/* 2026-12-03 큰 화면 전리품의 엽전이 흐릿했다(32px 그림을 160px 로 부드럽게 늘림) → 픽셀 그대로, 32 의 배수(큰 화면 4배 · 보통 3배)로만 키운다 */
.vc-art .yp, .vc-cell .yp, .vc-got .yp, .vc-coins .yp { image-rendering: auto; }
.vc-art .yp { width: 96px !important; height: 96px !important; } @media (min-height: 600px) { .vc-art .yp { width: 128px !important; height: 128px !important; } .vc-cell .yp { width: 96px !important; height: 96px !important; } } @media (max-height: 520px) { .vc-art .yp { width: 64px !important; height: 64px !important; } }
/* 송월 대운 계절 명패 (2026-12-03): 옻칠 바탕 + 놋쇠 테 + 계절 도장 */
.battle .season { flex-direction: row; align-items: center; gap: 9px; padding: 5px 12px 5px 6px; border-radius: 26px; color: #E9DCC0; background: radial-gradient(120% 140% at 0% 50%, color-mix(in srgb, var(--el) 26%, transparent), transparent 55%), linear-gradient(#2A1B14, #140D0A); box-shadow: inset 0 0 0 1px #000, inset 0 0 0 2px color-mix(in srgb, var(--brass) 70%, #000), inset 0 0 0 4px #1A110C, inset 0 0 0 5px color-mix(in srgb, var(--brass) 35%, transparent), 0 4px 12px #000B, 0 0 16px color-mix(in srgb, var(--el) 30%, transparent); white-space: nowrap; }
.battle .season .ss-seal { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; font: 400 24px/1 var(--disp); font-style: normal; color: #FFF6DE; text-shadow: 0 0 2px #000, 0 0 4px #000C, 0 1px 0 #000; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--el) 70%, #fff) 0, var(--el) 45%, color-mix(in srgb, var(--el) 55%, #000) 100%); box-shadow: inset 0 0 0 2px #0006, 0 0 0 2px color-mix(in srgb, var(--brass) 80%, #000), 0 0 10px color-mix(in srgb, var(--el) 60%, transparent); }
.battle .season .ss-seal.sm { width: 22px; height: 22px; font-size: 14px; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--nx) 65%, #fff) 0, var(--nx) 45%, color-mix(in srgb, var(--nx) 50%, #000) 100%); box-shadow: inset 0 0 0 1px #0006, 0 0 0 1px color-mix(in srgb, var(--brass) 70%, #000); opacity: .85; }
.battle .season .ss-body { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; line-height: 1.1; }
.battle .season .ss-body b { font: 400 22px/1 var(--disp); color: #FFE08A; text-shadow: 0 2px 0 #000; }
.battle .season .season-fx { font-size: 12px; color: #E9DCC0; }
.battle .season .ss-next { display: flex; align-items: center; gap: 4px; padding-left: 9px; margin-left: 1px; border-left: 1px solid color-mix(in srgb, var(--brass) 40%, transparent); }
.battle .season .ss-next small { font-size: 10px; color: #A8987C; }
.battle .season .ss-pips { display: inline-flex; gap: 3px; } .battle .season .ss-pips i { width: 6px; height: 6px; border-radius: 50%; background: #3A2A20; box-shadow: inset 0 0 0 1px #0008; } .battle .season .ss-pips i.on { background: var(--brass); box-shadow: 0 0 4px var(--brass); }
.battle .season .ss-left { display: none; }
@media (max-height: 520px) { .battle .season .ss-next small:first-child { display: none; } } /* 폰은 싸움 무대가 통째로 0.6배쯤 줄어 있어 명패 크기는 그대로 */
/* 승리 요약 (2026-12-03): 큰 화면에서 여섯 장까지 한 줄, 넘치면 고른 두 줄 — 카드는 화면 폭에 맞춰 줄어 스크롤이 생기지 않게 */
@media (min-height: 600px) { .vc-sum { max-width: 96vw; } .vc-grid { max-height: none; overflow: visible; } .vc-cell { width: min(230px, calc((90vw - 40px - (var(--cols, 4) - 1) * 18px) / var(--cols, 4))); padding: 16px 8px 14px; gap: 8px; } .vc-cell img { height: clamp(80px, 10vh, 112px); } }
/* 2026-12-03: 처음 화면 상담사 줄을 폭이 아닌 키로 맞춘다 — 폭을 같게 하면 부채를 옆으로 든 서하(그림이 넓다)만 작아 보였다. 그림은 모두 152 높이 (폭 118~143) */
.title-sprites canvas, .title-sprites canvas:first-child { width: auto !important; height: clamp(64px, 10.6vw, 145px) !important; }
@media (min-height: 521px) { .title-screen:has(.title-resume) .title-sprites canvas { width: auto !important; height: clamp(59px, 8.6vw, 118px) !important; } }
@media (min-height: 521px) and (max-height: 820px) { html:not([data-lang=ko])[data-lang] .title-screen:has(.title-resume) .title-sprites canvas { width: auto !important; height: 71px !important; } }
@media (max-height: 520px) { .title-sprites canvas, .title-sprites canvas:first-child { width: auto !important; height: 66px !important; } }
@media (max-height: 520px) and (min-width: 640px) { .title-screen .title-sprites canvas, .title-screen .title-sprites canvas:first-child, .title-screen:has(.title-resume) .title-sprites canvas { width: auto !important; height: clamp(57px, 9.1vw, 86px) !important; } }
/* 2026-12-03: 팔기 고르개(먹을거리 · 무기)는 윤달이 말풍선 위 (js/shop.js sellHead) */
.sh-host > .sh-kinds { position: relative; z-index: 3; margin: 0 0 10px; }
.sh-host > .sh-kinds button { white-space: nowrap; }
@media (max-width: 1000px) and (min-height: 521px) { .sh-host > .sh-kinds { order: 2; flex-direction: column; flex: none; align-self: center; margin: 0; } }
@media (max-height: 520px) { .sh-host > .sh-kinds { flex-direction: column; gap: 4px; margin: 0 0 4px; } .sh-host > .sh-kinds button { min-height: 30px !important; padding: 0 12px !important; font-size: 13px !important; } }
/* 2026-12-03: 휴대폰 윗줄 — 작은 칸이 줄줄이 늘어서 보이지도 누르기도 힘들었다 → 무기 가방 · 주머니 · 소리 · 저장 · 처음 화면만 크게 (체력 · 기운은 무대 아래에 이미 있다) */
@media (max-height: 520px) { .topbar > :is(.stat-pill, .gold, .lv, .stage-no, .path, .tb-read, .tb-i, .pause-btn, button[title="내 덱"]) { display: none !important; } .topbar { justify-content: flex-end; gap: 10px !important; padding: 4px 10px !important; } .topbar > .tb-bag { margin-right: auto; height: 42px; padding: 0 12px !important; } .topbar > .tb-bag .tbb-ic { width: 30px; height: 30px; } .topbar > .tb-bag .tbb-n { display: inline !important; font-size: 15px; } .topbar > #sound-toggle, .topbar > .home-btn, .topbar > .save-btn { width: 48px !important; height: 42px !important; } .topbar > .heal-bag { gap: 6px; } .topbar > .heal-bag .heal-btn { width: 48px; height: 42px; } .topbar > .heal-bag .heal-btn img { width: 32px; height: 32px; } .topbar > .heal-bag .heal-btn em { display: none; } .topbar > #sound-toggle svg { width: 24px; height: 24px; } .topbar > .save-btn img { width: 28px; height: 28px; } .topbar > .home-btn { font-size: 22px; } .topbar > .tr-back-btn { height: 42px; } }
/* 2026-12-03: 송월이 공격하러 다가갈 때 오행판 · 향로 뒤로 숨었다 → 상담사는 늘 맨 앞, 보스는 기술을 쓰는 동안만 맨 앞 (가만히 있을 땐 향로가 보스 막대 위) */
body .battle .stage > .fighter.hero, body .battle .stage > .fighter.acting { z-index: 6; }
/* 2026-12-05: 휴대폰 족자 대결 — 최강 공격 · 방어 글자를 단추 한가운데로 (아래 여백만 2px 있어 위로 붙고 왼쪽에 쏠렸다) */
body:not(.dream) .battle.bt-wd > .rules > .act-left > button.special { padding: 1px 8px !important; justify-content: center; }
body:not(.dream) .battle.bt-wd > .rules > .act-left > button.special .sp-label { line-height: 1 !important; }
/* 2026-12-05: 에너지바 아래 이름 글자가 막대 금테(바깥 4px 그림자)에 겹쳤다 → 금테 밖으로 내린다 */
body .battle .stage > .fighter > .stat, body .battle .stage > .fighter.pin-text > .stat { margin-top: 5px; }
/* 2026-12-05: 휴대폰 족자 대결 — 무기 칸이 족자 칸보다 작게 떠 있었다 → 족자 칸 높이만큼 크게, 그림 · 글자도 크게 */
body:not(.dream) .battle.bt-wd .line .wslot { height: 132px; max-height: 132px; min-width: 220px; max-width: 250px !important; padding: 8px 14px 8px 10px; column-gap: 10px; }
body:not(.dream) .battle.bt-wd .line .wslot > img { width: 76px; height: 76px; }
body:not(.dream) .battle.bt-wd .line .wslot b { font-size: 19px; }
body:not(.dream) .battle.bt-wd .line .wslot .wl, body:not(.dream) .battle.bt-wd .line .wslot .wd { font-size: 16px; }
body:not(.dream) .battle.bt-wd .line .wslot small { font-size: 13px; }
/* 2026-12-05: 휴대폰 윗줄 순서 — 가방 · 먹는 아이템(가방 오른쪽부터 가운데를 넓게) · 저장 · 소리 · 홈(맨 오른쪽). 아이템 단추를 크게 해 누르기 쉽게 */
@media (max-height: 520px) {
  .topbar > .tb-bag { order: 0; margin-right: 0; }
  .topbar > .heal-bag { order: 1; flex: 1 1 auto; min-width: 0; display: flex; justify-content: flex-start; gap: 10px; margin-right: auto; }
  .topbar > .heal-bag .heal-btn { width: auto; flex: 0 1 104px; min-width: 56px; }
  .topbar > .save-btn { order: 2; }
  .topbar > #sound-toggle { order: 3; }
  .topbar > .home-btn { order: 4; }
}
