/* 냥도사 운빨 디펜스
   밤 마당 디펜스. 냥냥대군과 같은 남보라 밤 톤에, 포인트는 등급 색(흔함 회색, 드묾 파랑, 귀함 보라, 전설 금색, 신화 빨강). */
:root {
  --bg: #15122f;
  --surface: #241e48;
  --surface-2: #2f2860;
  --ink: #f3f0ff;
  --sub: #aaa3d6;
  --line: #3a3270;
  --accent: #ffd23f;
  --accent-ink: #2a1d00;
  --red: #ff5a4e;
  --jade: #6fe3c8;
  --shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
  --game: "Jua", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --body: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color-scheme: dark;
}
body { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.55; }
h1, h2, h3 { font-family: var(--game); font-weight: 400; margin: 0; text-wrap: balance; }
p { margin: 0; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.stage { max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: calc(env(safe-area-inset-top, 0px) + 10px) 16px 6px; }
.logo { font-family: var(--game); font-size: 18px; color: var(--ink); text-decoration: none; letter-spacing: 0.04em; }
.logo b { color: #ff4867; font-weight: 400; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 0; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); display: grid; place-items: center; }
.icon-btn svg { width: 20px; height: 20px; }

.screen { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 12px; padding: 8px 16px calc(env(safe-area-inset-bottom, 0px) + 16px); }
.screen.measuring > * { flex-shrink: 0; }
.sub { color: var(--sub); }
.small { font-size: 13px; }
.center { text-align: center; }
.fine { font-size: 12px; color: var(--sub); text-align: center; }

.btn { min-height: 52px; border-radius: 16px; border: 0; padding: 10px 16px; font-size: 16px; font-weight: 700; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); transition: transform .08s ease; text-decoration: none; display: grid; place-items: center; text-align: center; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; }
.btn.primary { background: var(--accent); color: var(--accent-ink); font-family: var(--game); font-weight: 400; font-size: 22px; box-shadow: 0 6px 0 #b8860b, var(--shadow); }
.btn.primary:active { transform: translateY(3px); box-shadow: 0 3px 0 #b8860b, var(--shadow); }
.btn.ghost { background: transparent; box-shadow: none; color: var(--sub); font-weight: 400; min-height: 44px; }
.actions { display: grid; gap: 10px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 5px 12px; border-radius: 99px; background: var(--surface); border: 0; color: var(--ink); font-size: 13px; font-weight: 700; box-shadow: var(--shadow); }
.chip .ico { width: 18px; height: 18px; }
.chip.new { background: var(--accent); color: var(--accent-ink); animation: pop .5s ease-out both .9s; }
.ico { width: 28px; height: 28px; object-fit: contain; flex: none; }
.seg { display: flex; align-items: center; justify-content: center; gap: 2px; background: var(--surface); border-radius: 99px; padding: 4px; box-shadow: var(--shadow); align-self: center; }
.seg-lbl { font-size: 12px; color: var(--sub); padding: 0 6px 0 8px; }
.seg button { border: 0; background: transparent; border-radius: 99px; min-width: 38px; min-height: 34px; font-weight: 700; font-size: 14px; color: var(--sub); }
.seg button[aria-checked="true"] { background: var(--accent); color: var(--accent-ink); }
.toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 24px); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 99px; font-size: 14px; z-index: 20; }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }

/* ---- 살아 있는 마당(시작·결과) */
.result .bubble { animation: pop .4s ease-out .3s both; }
.stamp { position: absolute; right: 5%; top: 8%; border: 4px solid var(--red); color: var(--red); font-family: "Gowun Batang", serif; font-weight: 700; font-size: 20px; padding: 2px 10px; border-radius: 6px; transform: rotate(-10deg); background: rgba(255, 255, 255, .85); animation: stamp .5s cubic-bezier(.2, 1.6, .4, 1) .5s both; z-index: 3; }
@keyframes stamp { from { transform: rotate(-10deg) scale(2.4); opacity: 0; } }
.hero-pose { width: 100%; display: block; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .45)); animation: idle 2.4s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes idle { 50% { transform: scaleY(.97) scaleX(1.02); } }
.bubble { position: absolute; left: 4%; top: 5%; max-width: 44%; background: #fff; color: #1d1838; border-radius: 16px 16px 16px 4px; padding: 7px 12px; font-family: var(--game); font-size: 15px; line-height: 1.35; box-shadow: var(--shadow); word-break: keep-all; z-index: 4; }
.bubble.sul { background: #efe6ff; }
.bubble.pop { animation: pop .3s ease-out; }
.hero-title { text-align: center; display: flex; flex-direction: column; gap: 4px; }
.hero-title h1 { font-size: 44px; line-height: 1.05; letter-spacing: -0.01em; text-shadow: 0 3px 0 #000a; }
.hero-title h1 em { font-style: normal; color: var(--accent); }
.hero-title .lede { color: var(--sub); font-size: 15px; word-break: keep-all; }

.res-title { text-align: center; }
.res-title h2 { font-size: 30px; color: var(--accent); animation: pop .5s ease-out .6s both; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.stats div { background: var(--surface); border-radius: 14px; padding: 8px 4px; text-align: center; display: flex; flex-direction: column; }
.stats b { font-family: var(--game); font-weight: 400; font-size: 22px; font-variant-numeric: tabular-nums; }
.stats span { font-size: 11px; color: var(--sub); }
.earn { display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 700; flex-wrap: wrap; }
.earn b { font-family: var(--game); font-weight: 400; font-size: 22px; color: var(--accent); }
.unlocks { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }

/* ---- 상점 */
.shop-head { display: flex; align-items: flex-end; gap: 8px; }
.shop-sul { width: 84px; height: 84px; object-fit: contain; flex: none; }
.say { flex: 1; background: var(--surface); border-radius: 18px 18px 18px 6px; padding: 10px 14px; margin-bottom: 12px; font-size: 15px; word-break: keep-all; }
.say .who { display: block; font-size: 11px; color: var(--sub); }
.purse { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 15px; }
.purse b { font-family: var(--game); font-weight: 400; font-size: 26px; color: var(--accent); }
.shop-list, .dex-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.shop-row { display: flex; align-items: center; gap: 10px; background: var(--surface); border-radius: 16px; padding: 8px 10px; }
.shop-row > .ico { width: 44px; height: 44px; }
.shop-txt { flex: 1; display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.pips { display: flex; gap: 3px; margin-top: 4px; }
.pips i { width: 14px; height: 6px; border-radius: 3px; background: var(--line); }
.pips i.on { background: var(--accent); }
.btn.buy { min-height: 42px; min-width: 76px; padding: 4px 10px; font-family: var(--game); font-weight: 400; font-size: 17px; display: flex; gap: 2px; background: var(--surface-2); }
.btn.buy .ico { width: 20px; height: 20px; }

/* ---- 도감 */
.screen-title { font-size: 26px; text-align: center; }
.dex-grid { grid-template-columns: 1fr 1fr; }
.dex-grid li { display: contents; }
.dex-card { width: 100%; border: 2px solid transparent; color: var(--ink); font: inherit; background: var(--surface); border-radius: 16px; padding: 10px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; }
.dex-card img { width: 72px; height: 72px; object-fit: contain; }
.dex-card.unseen img { filter: brightness(0) opacity(.5); }
.dex-card.on { border-color: var(--accent); }
.dex-grid { grid-template-columns: 1fr 1fr 1fr; }
.dex-card b { font: 15px var(--game); }
.dex-card .cnt { font-size: 12px; color: var(--accent); font-weight: 700; }

/* ---- 판 */
.stage.playing .topbar { display: none; }
.stage.playing .screen { padding: 0; }
.play { position: relative; flex: 1; min-height: 0; overflow: hidden; background: #221c40; touch-action: none; }
.play canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.hud { position: absolute; left: 0; right: 0; top: 0; padding: calc(env(safe-area-inset-top, 0px) + 6px) 10px 0; pointer-events: none; display: flex; flex-direction: column; gap: 6px; }
.hud-row { display: grid; grid-template-columns: 44px 1fr 92px; align-items: center; }
.hud .pause { pointer-events: auto; width: 40px; height: 40px; background: rgba(0, 0, 0, .45); box-shadow: none; }
.hud .pause svg { width: 18px; height: 18px; }
.where { text-align: center; font: 18px/1.1 var(--game); color: #fff; text-shadow: 0 2px 0 #000a; }
.peak { text-align: right; font: 14px/1.2 var(--game); color: #ffe14a; text-shadow: 0 1px 2px #000; }
.prog { height: 8px; margin: 0 6px; border-radius: 4px; background: rgba(0, 0, 0, .45); overflow: hidden; }
.prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #7cc8ff, #ffe14a); }
.banner { position: absolute; left: 50%; top: 32%; transform: translate(-50%, -50%); white-space: nowrap; font: 24px/1.2 var(--game); color: #fff; text-shadow: 0 3px 0 #000, 0 0 12px #000; pointer-events: none; opacity: 0; }
.banner.on { animation: banner 1s ease-out forwards; }
@keyframes banner { 0% { opacity: 0; transform: translate(-50%, -50%) scale(1.6); } 20% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 1; } }
.overlay { position: absolute; inset: 0; background: rgba(10, 8, 30, .72); display: grid; place-items: center; padding: 16px; z-index: 5; backdrop-filter: blur(2px); }
.panel { width: 100%; max-width: 400px; background: var(--surface); border-radius: 22px; padding: 18px 14px; display: flex; flex-direction: column; gap: 12px; align-items: stretch; text-align: center; box-shadow: var(--shadow); animation: pop .3s ease-out; }
.panel h2 { font-size: 24px; }
.kicker { font: 16px var(--game); color: var(--accent); }

.cardimg { width: 100%; border-radius: 18px; box-shadow: var(--shadow); -webkit-touch-callout: default; user-select: auto; }

/* ---- 아래 설명 글 */
.guide { max-width: 480px; margin: 0 auto; padding: 32px 16px 64px; display: flex; flex-direction: column; gap: 28px; }
.guide section { display: flex; flex-direction: column; gap: 10px; }
.guide h2 { font-size: 24px; }
.guide p, .guide li { font-size: 15px; max-width: 65ch; }
.guide a { color: var(--accent); }
.guide ul, .guide ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.arcana { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; list-style: none; padding: 0 !important; }
.arcana li { background: var(--surface); border-radius: 14px; padding: 8px 12px; font-size: 13px; }
.arcana b { display: block; font-family: var(--game); font-weight: 400; font-size: 16px; }
.log { font-size: 14px; }
.site-foot { border-top: 1px solid var(--line); padding-top: 16px; display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; }
.site-foot a { color: var(--sub); }

/* ---- 작은 화면 */
.stage.fit1 .hall { width: 86%; align-self: center; }
.stage.fit1 .hero-title h1 { font-size: 36px; }
.stage.fit1 .btn { min-height: 46px; }
.stage.fit1 .shop-sul { width: 60px; height: 60px; }
.stage.fit2 .hall { width: 66%; }
.stage.fit2 .hero-title .lede, .stage.fit2 .screen > .fine { display: none; }
.stage.fit2 .bubble { font-size: 12px; }

@media (prefers-reduced-motion: reduce) {
  .hall .bg, .motes i, .pull, .hero-pose, .top-unit, .cbtn.ready, .myth-row.can { animation: none !important; }
}

.village-won { text-align: center; background: linear-gradient(90deg, #4a2a10, #7a4a14); border: 2px solid var(--accent); border-radius: 16px; padding: 10px 14px; margin: 0; word-break: keep-all; animation: pop .5s ease-out both .6s; }
.village-won b { color: var(--accent); }
/* 행운 부적 안내 */
.lucky-tip { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: center; margin: 0; padding: 9px 12px; border-radius: 14px; background: rgba(255,255,255,.08); border: 1px dashed rgba(255,255,255,.35); color: inherit; text-decoration: none; font-size: 14px; line-height: 1.4; text-align: center; word-break: keep-all; }
.lucky-tip i { width: 12px; height: 12px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px rgba(0,0,0,.25); }
.lucky-tip span { flex-basis: 100%; }
.lucky-tip b { color: var(--accent); }
.lucky-tip u { color: #ffe14a; text-underline-offset: 3px; }
.lucky-tip.known { border-style: solid; }
.lucky-tip.known i { margin-right: 4px; }

/* ---- 마당 그림(시작·결과) */
.hall { position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: 24px; overflow: hidden; background: #1b1440; box-shadow: var(--shadow); isolation: isolate; flex: none; }
.hall .bg { position: absolute; inset: 0; background: url("sprites/bg-start.webp") center 62% / cover no-repeat, linear-gradient(#1b1440, #563067); }
.hall.result .bg { background-image: url("sprites/bg-yard.webp"); background-position: center 18%; animation: none; }
.hall.lose .bg { filter: saturate(.6) brightness(.7); }
.hall .bg { animation: kenburns 18s ease-in-out infinite alternate; }
@keyframes kenburns { to { transform: scale(1.06) translateY(-1.5%); } }
.motes i { position: absolute; left: calc(6% + var(--i) * 9.5%); bottom: 8%; width: 6px; height: 6px; border-radius: 50%; background: #ffe9a0; box-shadow: 0 0 10px 3px rgba(255, 220, 120, .7); opacity: 0; animation: mote 5.5s ease-in infinite; animation-delay: calc(var(--i) * -.57s); }
.motes i:nth-child(3n) { background: #b9e8ff; box-shadow: 0 0 10px 3px rgba(140, 200, 255, .7); }
@keyframes mote { 0% { opacity: 0; transform: translate(0, 0); } 20% { opacity: .9; } 100% { opacity: 0; transform: translate(14px, -260%) translateY(-180px); } }
.pull { position: absolute; bottom: 40%; width: 22%; translate: -50% 0; opacity: 0; z-index: 2; pointer-events: none; }
.pull img { position: relative; width: 100%; display: block; filter: drop-shadow(0 0 10px var(--c)) drop-shadow(0 4px 6px rgba(0, 0, 0, .5)); }
.pull .orb { position: absolute; left: 50%; top: 55%; width: 120%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c) 80%, white) 0%, transparent 65%); }
.pull b { position: absolute; left: 50%; top: -14%; translate: -50% 0; font: 15px/1 var(--game); font-weight: 400; color: #fff; background: var(--c); padding: 3px 8px; border-radius: 99px; white-space: nowrap; box-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
.pull.go { animation: pullin 2s ease-out both; }
.pull.go .orb { animation: orb 2s ease-out both; }
@keyframes pullin { 0% { opacity: 0; transform: translateY(30%) scale(.3); } 15% { opacity: 1; transform: translateY(-12%) scale(1.15); } 25% { transform: translateY(0) scale(1); } 80% { opacity: 1; transform: translateY(-4%); } 100% { opacity: 0; transform: translateY(-14%); } }
@keyframes orb { 0% { transform: scale(0); opacity: 1; } 30% { transform: scale(1.3); opacity: .9; } 100% { transform: scale(.8); opacity: 0; } }
.hero-title h1 { font-size: 38px; }
.hall .bubble { left: auto; right: 4%; top: 6%; max-width: 52%; border-radius: 16px 16px 4px 16px; }
.top-unit { position: absolute; left: 50%; bottom: 2%; width: 44%; translate: -50% 0; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .5)); animation: cheer2 1.1s ease-in-out infinite; transform-origin: 50% 100%; }
.hall.lose .top-unit { animation: none; filter: grayscale(.4) drop-shadow(0 6px 10px rgba(0, 0, 0, .5)); }
.hall.result .bubble { left: 4%; right: auto; border-radius: 16px 16px 16px 4px; }
@keyframes cheer2 { 50% { transform: translateY(-5%) scale(1.03); } }
.btn.primary small { display: block; font-family: var(--body); font-size: 12px; font-weight: 700; opacity: .75; }
.btn.primary { line-height: 1.15; }

/* ---- 오행 점 */
.eld { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--c); color: #1b1440; font: 700 12px/1 "Gowun Batang", serif; font-style: normal; flex: none; box-shadow: 0 0 0 2px rgba(255, 255, 255, .25); }
.lucky-tip .eld { width: 22px; height: 22px; }
.ico.big { width: 52px; height: 52px; }

/* ---- 도감 */
.dex-h { display: flex; align-items: center; gap: 6px; font-size: 18px; margin-top: 4px; }
.dex-grid.four { grid-template-columns: repeat(4, 1fr); gap: 6px; }
.dex-grid.four .dex-card { padding: 6px 2px; }
.dex-grid.four .dex-card img { width: 56px; height: 56px; }
.dex-grid.four .dex-card b { font-size: 12px; line-height: 1.2; word-break: keep-all; }
.dex-card { border-color: color-mix(in srgb, var(--c, transparent) 60%, transparent); }
.dex-card.unseen { border-color: transparent; }
.dex-card .cnt { color: var(--c, var(--accent)); }

/* ---- 판 */
.stage.playing .screen { gap: 0; padding-bottom: 0; }
.play { background: #1a1830; }
.play.danger::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 60px 10px rgba(255, 50, 50, .55); animation: danger 1s ease-in-out infinite alternate; }
@keyframes danger { from { opacity: .4; } }
.hud-row { grid-template-columns: 44px 1fr 56px; }
.where { font-size: 17px; }
.where span { font-size: 14px; color: #d8d2ff; }
.spd { pointer-events: auto; justify-self: end; width: 52px; height: 40px; border-radius: 12px; border: 0; background: rgba(0, 0, 0, .45); color: #fff; font: 17px/1 var(--game); }
.mobbar, .bossbar { display: flex; align-items: center; gap: 8px; font: 13px/1 var(--game); color: #fff; text-shadow: 0 1px 2px #000; }
.mobbar div, .bossbar div { flex: 1; height: 10px; border-radius: 99px; background: rgba(0, 0, 0, .5); overflow: hidden; border: 1.5px solid rgba(255, 255, 255, .7); }
.mobbar i, .bossbar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #b8f36a, #ffd23f); transition: width .2s; }
.mobbar i.low { background: linear-gradient(90deg, #ff9f6a, #ff3a3a); }
.mobbar b, .bossbar b { min-width: 52px; text-align: right; font-weight: 400; font-variant-numeric: tabular-nums; }
.bossbar[hidden] { display: none; }
.bossbar i { background: linear-gradient(90deg, #ff3a5a, #ff8a4a); width: 100%; }
.bossbar span { color: #ffb0b8; }

/* 고른 병사 */
.sel { position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex; align-items: center; gap: 8px; background: rgba(20, 16, 50, .92); border: 2px solid rgba(255, 255, 255, .25); border-radius: 18px; padding: 8px 10px; z-index: 4; animation: pop .2s ease-out; }
.sel[hidden] { display: none; }
.sel img { width: 56px; height: 56px; object-fit: contain; flex: none; }
.sel-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.sel-txt b { font: 17px var(--game); font-weight: 400; }
.sel-txt em { font-style: normal; color: #ffe14a; }
.tier { font-size: 12px; font-weight: 700; color: var(--c); }
.sel-btns { display: flex; flex-direction: column; gap: 6px; }
.btn.mini { min-height: 36px; padding: 4px 12px; font-size: 14px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); }
.btn.mini.ghosty { background: var(--surface-2); color: var(--ink); }

/* 아래 조작 버튼 */
.ctrl { display: grid; grid-template-columns: 1fr 1.5fr 1fr; gap: 8px; padding: 8px 10px 4px; background: #15122f; }
.cbtn { position: relative; overflow: hidden; min-height: 64px; border: 0; border-radius: 18px; background: var(--surface); color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; box-shadow: var(--shadow); touch-action: manipulation; transition: transform .08s; }
.cbtn:active { transform: scale(.95); }
.cbtn b { position: relative; z-index: 1; font: 20px/1 var(--game); font-weight: 400; }
.cbtn small { position: relative; z-index: 1; display: flex; align-items: center; gap: 3px; font-size: 13px; font-weight: 700; color: var(--sub); }
.cbtn.summon { background: var(--accent); color: var(--accent-ink); box-shadow: 0 5px 0 #b8860b, var(--shadow); }
.cbtn.summon small { color: #5a4300; font-size: 15px; }
.cbtn.summon b { font-size: 26px; }
.cbtn.summon.off { filter: saturate(.3) brightness(.75); }
.cbtn.fortune i { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: linear-gradient(#b46cff, #6a3ad0); transition: height .2s; }
.cbtn.ready { animation: skillglow .8s ease-in-out infinite alternate; }
.cbtn.myth { background: #3a1e3e; }
.cbtn.myth.ready { background: #a8243a; }
@keyframes skillglow { from { box-shadow: 0 0 0 0 rgba(255, 225, 74, .9), var(--shadow); } to { box-shadow: 0 0 0 8px rgba(255, 225, 74, 0), var(--shadow); } }
.coins-line { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 2px 0 calc(env(safe-area-inset-bottom, 0px) + 8px); background: #15122f; font-size: 14px; }
.coins-line b { font: 22px/1 var(--game); font-weight: 400; color: var(--accent); font-variant-numeric: tabular-nums; }
.coin { display: inline-block; width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle, transparent 3px, #ffd23f 3.5px, #e0a020 7px); box-shadow: inset 0 0 0 1px #8a5a00; flex: none; }
.coin.bok { width: 20px; height: 20px; background: radial-gradient(circle, transparent 3.5px, #ff7a8a 4px, #e0304a 9px); box-shadow: inset 0 0 0 1px #7a0018; }

/* 신화 조합 */
.myth-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 52vh; overflow-y: auto; }
.myth-row { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; background: var(--surface-2); border: 2px solid transparent; border-radius: 14px; padding: 6px 10px; color: var(--ink); font: inherit; }
.myth-row img { width: 48px; height: 48px; object-fit: contain; flex: none; }
.myth-row img.unseen { filter: brightness(0) opacity(.5); }
.myth-row span { flex: 1; display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.myth-row b { font: 16px var(--game); font-weight: 400; }
.myth-row small { font-size: 12px; color: var(--sub); }
.myth-row em { font-style: normal; font: 15px var(--game); color: #fff; background: #e8413a; padding: 4px 10px; border-radius: 99px; }
.myth-row:disabled { opacity: .7; }
.myth-row.can { border-color: #ff4a5a; animation: skillglow .8s ease-in-out infinite alternate; }
