/* ===== v6.4 결투판 정리 ===== */
/* 상단: 얇은 한 줄(턴 · 현재 행동 · 점수 · ?). 오른쪽 112px 은 고정 상단 버튼(언어·설정) 자리 */
.board-wrap { width: min(880px, 100%); }
.board-wrap > .battle-top { flex-wrap: nowrap; justify-content: flex-start; gap: 8px; margin: 0 0 4px; padding: 0 118px 0 10px; min-height: 40px; height: 40px; border-radius: 12px; box-shadow: none; overflow: hidden; }
.board-wrap > .battle-top .battle-phase { font: 15px/1.1 "Jua", sans-serif; white-space: nowrap; }
.board-wrap > .battle-top .battle-meta { font: 12.5px/1.1 "Jua", sans-serif; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.board-wrap > .battle-top .help-btn { margin-left: auto; flex: 0 0 auto; width: 32px; height: 32px; min-height: 32px; padding: 0; border-radius: 50%; font: 700 16px/1 "Jua", sans-serif; }
.board-wrap > .board-stage { margin: 0; }
.board-wrap .board-grid { padding: 3px; border-radius: 14px; }
.board-wrap > .board-status { margin: 4px 2px 4px; font-size: 12.5px; line-height: 1.3; min-height: 16px; }
.board-wrap.is-duel > .battle-top { display: flex; }
.board-wrap.is-duel .battle-top .battle-meta { display: none; }
.board-wrap > .board-actions { margin-top: 4px; }
.board-wrap > .board-actions .seed-btn { min-height: 40px; }

/* 가운데 자막 */
.cap64 { position: fixed; z-index: 30; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 7px; padding: 5px 10px 5px 6px; border-radius: 14px; background: rgba(12, 14, 26, .66); border: 1px solid rgba(255, 255, 255, .22); color: #fff; font: 13px/1.25 "Jua", sans-serif; text-shadow: 0 1px 3px #000; pointer-events: none; animation: cap64-in .16s ease-out; box-shadow: 0 4px 14px rgba(0, 0, 0, .35); }
.cap64[hidden] { display: none; }
.cap64.is-enemy { border-color: rgba(255, 143, 179, .6); }
.cap64.is-player { border-color: rgba(245, 197, 24, .6); }
.cap64 .cap64-pic { width: 30px; height: 30px; flex: 0 0 auto; border-radius: 50%; object-fit: cover; background: #111; border: 1.5px solid rgba(255, 255, 255, .5); }
.cap64 svg.cap64-pic { padding: 1px; }
.cap64-body { display: flex; flex-direction: column; min-width: 0; }
.cap64-name { font-size: 10.5px; color: var(--gold); line-height: 1.1; }
.cap64-text { font-size: 13px; overflow-wrap: anywhere; }
@keyframes cap64-in { from { opacity: 0; transform: translate(-50%, -42%) scale(.9); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
html[data-fx="low"] .cap64, .reduce-motion .cap64 { animation: none; }

/* 출정 카드 */
.sc64 { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 56px 12px 12px; background: rgba(6, 8, 16, .72); cursor: pointer; }
.sc64-card { width: min(420px, 100%); max-height: 100%; overflow-y: auto; padding: 14px 16px 12px; border-radius: 18px; border: 1px solid rgba(245, 197, 24, .55); background: linear-gradient(160deg, rgba(34, 28, 20, .97), rgba(16, 14, 26, .97)); box-shadow: 0 16px 40px rgba(0, 0, 0, .55); color: #f3ead6; font: 14px/1.4 "Jua", sans-serif; }
.sc64-kicker { margin: 0; font-size: 11px; letter-spacing: .12em; color: var(--gold); }
.sc64-card h2 { margin: 2px 0 2px; font: 700 20px/1.2 "Noto Serif KR", serif; }
.sc64-hint { margin: 0 0 8px; color: #cfc6b0; font-size: 12.5px; }
.sc64-facts { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 4px; font-size: 12.5px; }
.sc64-facts b { color: var(--gold); margin-right: 4px; }
.sc64-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.sc64-chip { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px 1px 2px; border-radius: 99px; background: rgba(255, 255, 255, .09); font-size: 11.5px; }
.sc64-chip .sc64-pic { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.sc64-sub { margin: 6px 0 2px; color: var(--gold); font-size: 12px; }
.sc64-rules ol { margin: 0; padding-left: 18px; font-size: 12.5px; display: grid; gap: 2px; }
.sc64-course { margin: 6px 0 0; font-size: 12px; color: #ffd36a; }
.sc64-hide { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; font-size: 12px; color: #cfc6b0; min-height: 32px; }
.sc64-hide input { width: 18px; height: 18px; }
.sc64-go { width: 100%; margin-top: 10px; min-height: 44px; }

/* 주사위: 던질 때만 판 한가운데에 큰 큐브(눈금 1~6). 평소엔 DOM 자체가 없음 */
.dice-overlay .dice-wrap { width: 150px; height: 150px; perspective: 760px; }
.dice-overlay .dice-cube6 { position: relative; width: 104px; height: 104px; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); filter: drop-shadow(0 14px 12px rgba(0, 0, 0, .45)); }
.dice-overlay .dice-cube6.is-idle { transform: rotateX(-26deg) rotateY(-34deg); animation: dc-idle 1.8s ease-in-out infinite; }
.dice-overlay .dice-cube6.is-roll { animation: dc-roll var(--roll, .8s) cubic-bezier(.2, .75, .3, 1) both; }
.dice-overlay .dc-f { position: absolute; inset: 0; display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); padding: 14px; border-radius: 20px; background: linear-gradient(145deg, #fffaf0, #e9dfc6); box-shadow: inset 0 0 0 3px #c9a227, inset 0 0 18px rgba(201, 162, 39, .3); backface-visibility: hidden; }
.dice-overlay .dc-f i { width: 17px; height: 17px; margin: auto; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #5a4a30, #1c1608); }
.dice-overlay .dc-f.f1 i { background: radial-gradient(circle at 35% 30%, #ff7b6b, #b3261e); width: 22px; height: 22px; }
.dice-overlay .dc-f.f1 { transform: translateZ(52px); }
.dice-overlay .dc-f.f2 { transform: rotateY(90deg) translateZ(52px); }
.dice-overlay .dc-f.f3 { transform: rotateX(90deg) translateZ(52px); }
.dice-overlay .dc-f.f4 { transform: rotateX(-90deg) translateZ(52px); }
.dice-overlay .dc-f.f5 { transform: rotateY(-90deg) translateZ(52px); }
.dice-overlay .dc-f.f6 { transform: rotateY(180deg) translateZ(52px); }
@keyframes dc-idle { 0%, 100% { transform: rotateX(-26deg) rotateY(-34deg) translateY(0); } 50% { transform: rotateX(-20deg) rotateY(-22deg) translateY(-7px); } }
@keyframes dc-roll { from { transform: rotateX(calc(var(--rx) + 450deg)) rotateY(calc(var(--ry) + 540deg)); } to { transform: rotateX(var(--rx)) rotateY(var(--ry)); } }
.dice-overlay .dice-tapnote { margin: 0; font: 13px/1.2 "Jua", sans-serif; color: var(--gold); text-shadow: 0 2px 6px #000; }
html[data-fx="low"] .dice-overlay .dice-cube6.is-roll { --roll: .45s; }
html[data-fx="high"] .dice-overlay .dice-cube6.is-roll { --roll: 1s; }
html[data-fx="low"] .dice-overlay .dice-cube6.is-idle { animation: none; }
@media (prefers-reduced-motion: reduce) { .dice-overlay .dice-cube6.is-idle { animation: none; } .dice-overlay .dice-cube6.is-roll { animation-duration: .01ms; } }
@media (max-height: 640px) { .dice-overlay .dice-wrap { width: 120px; height: 120px; } .dice-overlay .dice-cube6 { width: 84px; height: 84px; } .dice-overlay .dc-f { padding: 11px; } .dice-overlay .dc-f i { width: 14px; height: 14px; } .dice-overlay .dc-f.f1 { transform: translateZ(42px); } .dice-overlay .dc-f.f2 { transform: rotateY(90deg) translateZ(42px); } .dice-overlay .dc-f.f3 { transform: rotateX(90deg) translateZ(42px); } .dice-overlay .dc-f.f4 { transform: rotateX(-90deg) translateZ(42px); } .dice-overlay .dc-f.f5 { transform: rotateY(-90deg) translateZ(42px); } .dice-overlay .dc-f.f6 { transform: rotateY(180deg) translateZ(42px); } }

/* 판 크기: 칸 안에 말 + 아래쪽 HP/MP 막대(항상 표시) */
.board-cell .board-token { inset: 4% 11% 27% 11%; border-radius: 50%; }
.board-cell .board-token img { object-position: center 14%; }
.tk-bars { position: absolute; left: 7%; right: 7%; bottom: 3%; z-index: 4; display: grid; gap: 1px; pointer-events: none; }
.tk-bars i { position: relative; display: block; height: 5px; border-radius: 3px; background: rgba(0, 0, 0, .72); overflow: hidden; box-shadow: 0 0 0 .5px rgba(255, 255, 255, .35); }
.tk-bars i b { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; transition: width .35s ease-out; }
.tk-bars .tk-hp b { background: linear-gradient(#7dff9a, #2fbf5a); }
.tk-bars .tk-hp.is-low b { background: linear-gradient(#ff9a8a, #e0412e); }
.tk-bars .tk-mp { height: 4px; }
.tk-bars .tk-mp b { background: linear-gradient(#8fd0ff, #3a7be0); }
.tk-bars em { position: absolute; right: 1px; top: 50%; transform: translateY(-50%); font: 700 4.6px/1 "Jua", sans-serif; font-style: normal; color: #fff; text-shadow: 0 0 2px #000, 0 0 2px #000; letter-spacing: -.02em; }
.tk-bars .tk-mp em { font-size: 4px; }
.tk-bars.is-big { position: static; gap: 2px; margin-top: 2px; width: 100%; max-width: 92px; }
.tk-bars.is-big i { height: 9px; }
.tk-bars.is-big .tk-mp { height: 8px; }
.tk-bars.is-big em { font-size: 7.5px; right: 3px; }
.tk-bars.is-big .tk-mp em { font-size: 7px; }
@media (min-width: 400px) { .tk-bars em { font-size: 5.2px; } .tk-bars .tk-mp em { font-size: 4.6px; } .tk-bars i { height: 6px; } .tk-bars .tk-mp { height: 5px; } }
.board-cell .tk-high { top: 4%; }
.board-token .board-owner { display: none; }
.board-token .tk-range { bottom: 4%; }

/* 칸 효과 */
.tile-mark { position: absolute; right: 6%; top: 4%; z-index: 2; font: 700 10px/1 "Jua", sans-serif; text-shadow: 0 0 3px #000; pointer-events: none; opacity: .92; }
.tile-mark.t-heal { color: #ff8fa8; } .tile-mark.t-mana { color: #8fd0ff; } .tile-mark.t-trap { color: #ffcf5a; } .tile-mark.t-star { color: #fff07a; }
.tile-pop { position: fixed; z-index: 40; transform: translate(-50%, -100%); padding: 2px 7px; border-radius: 10px; background: rgba(12, 14, 26, .82); color: #fff; font: 12px/1.2 "Jua", sans-serif; pointer-events: none; animation: tile-pop 1s ease-out forwards; white-space: nowrap; }
.tile-pop.k-trap { color: #ffcf5a; } .tile-pop.k-heal { color: #ff9fb4; } .tile-pop.k-mana { color: #9fd8ff; }
@keyframes tile-pop { 0% { opacity: 0; transform: translate(-50%, -60%); } 18% { opacity: 1; transform: translate(-50%, -100%); } 100% { opacity: 0; transform: translate(-50%, -190%); } }
html[data-fx="low"] .tile-pop { animation-duration: .7s; }
.board-wrap > .board-stage { width: 100%; }
@media (max-width: 520px) { .board-wrap { width: calc(100% + 12px); margin-left: -6px; margin-right: -6px; } }

/* 몬스터 그림(코드로 그린 SVG) */
.mon-art { display: inline-block; line-height: 0; }
.mon-art .mon-svg, .board-token .mon-svg, .duel-who .mon-svg { width: 100%; height: 100%; display: block; }
.board-token .mon-art { width: 100%; height: 100%; }
.board-token .mon-art .mon-svg { filter: drop-shadow(0 1px 1px rgba(0,0,0,.35)); }
.duel-who .mon-art { width: 56px; height: 56px; }
.quote-pic .mon-art, .sc64-pic.mon-art { width: 100%; height: 100%; }
.card-medal { width: 100%; height: 100%; display: block; }

/* ===== 여정(Path64) · 장비/스탯창 ===== */
.p64 { position: fixed; inset: 0; z-index: 60; display: grid; align-items: center; justify-items: center; padding: 10px; background: rgba(8, 7, 18, .86); overflow-y: auto; }
.p64[hidden] { display: none; }
.p64-card { width: min(100%, 440px); max-height: 100%; overflow-y: auto; padding: 12px; border-radius: 16px; background: linear-gradient(#211c3a, #171428); border: 1px solid rgba(255, 255, 255, .16); color: #f1ecda; font-size: 13px; }
.p64-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.p64-lv { font-size: 22px; color: #ffd166; } .p64-lv small { font-size: 12px; color: #b9b2d0; }
.p64-tier { padding: 1px 8px; border-radius: 10px; border: 1px solid var(--tc, #aaa); color: var(--tc, #ddd); font-size: 12px; }
.p64-kind { margin-left: auto; font-size: 12px; color: #d9d2f0; }
.p64-next { margin: 4px 0 6px; font-size: 12px; color: #9fd8ff; }
.p64-bar { position: relative; height: 6px; border-radius: 3px; background: rgba(255,255,255,.12); margin-bottom: 8px; }
.p64-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #7ec850, #ffd166); border-radius: 3px; }
.p64-bar u { position: absolute; top: -3px; width: 4px; height: 12px; background: #fff; border-radius: 2px; text-decoration: none; }
.p64-body { display: grid; grid-template-columns: 72px 1fr; gap: 10px; align-items: start; }
.p64-art { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 14px; background: rgba(255,255,255,.07); }
.p64-art .p64-pic, .p64-art .mon-svg { width: 100%; height: 100%; object-fit: contain; }
.p64-glyph { font-size: 34px; color: var(--tc, #fff); border: 2px solid var(--tc, #888); }
.p64-body h3 { margin: 0 0 2px; font-size: 16px; } .p64-place { margin: 0; font-size: 11px; color: #b9b2d0; }
.p64-text { margin: 4px 0; line-height: 1.4; } .p64-goal { margin: 2px 0; font-size: 12px; color: #ffd166; }
.p64-mats { margin: 4px 0 0; font-size: 12px; color: #8fe3b0; }
.p64-act { display: flex; gap: 8px; margin: 10px 0 6px; flex-wrap: wrap; } .p64-act .seed-btn { flex: 1 1 120px; min-height: 44px; }
.p64-party { margin: 2px 0; font-size: 11px; color: #b9b2d0; }
.p64-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.p64-chip { width: 32px; height: 32px; padding: 0; border-radius: 50%; border: 2px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); overflow: hidden; }
.p64-chip.is-party { border-color: #ffd166; } .p64-chip img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.p64-tip { margin: 4px 0 0; font-size: 10px; color: #8f89aa; }
.p64-goalnext { margin: 8px 0 2px; font-size: 12px; color: #9fd8ff; } .p64-trans { margin: 8px 0; padding: 8px; border-radius: 10px; background: rgba(255, 209, 102, .12); color: #ffe9a8; }
.p64-res { margin: 10px 0; padding: 10px; border-radius: 12px; background: rgba(255,255,255,.07); text-align: left; } .p64-res-t { margin: 0 0 4px; font-weight: 700; }
.p64-res.is-win { border: 1px solid #7ec850; } .p64-res.is-lose { border: 1px solid #ff9a8a; }
.p64-offer { border: 1px dashed #ffd166; }
body.p64-open { overflow: hidden; }
/* 장비 */
.g64-drops { margin: 10px 0; text-align: left; } .g64-title { margin: 0 0 4px; font-weight: 700; color: #ffd166; } .g64-drops ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.g64-drop { padding: 8px; border-radius: 10px; background: rgba(255,255,255,.07); border: 1px solid var(--tc); animation: g64-in .5s ease-out both; }
@keyframes g64-in { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
.g64-top { display: flex; gap: 8px; align-items: center; } .g64-name { display: grid; line-height: 1.25; } .g64-name small { font-size: 11px; color: #b9b2d0; }
.g64-badge { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; border: 2px solid var(--tc, #888); color: var(--tc, #fff); background: #171428; font-size: 17px; }
.g64-badge.is-empty { border-style: dashed; opacity: .6; }
.g64-cmp { margin-top: 4px; font-size: 11px; color: #cfc8e6; } .g-up { color: #8fe3b0; font-style: normal; } .g-down { color: #ff9a8a; font-style: normal; } .g-same { color: #aaa; font-style: normal; }
.g64-act { display: flex; gap: 6px; margin-top: 6px; } .g64-act select { flex: 1; min-width: 0; background: #171428; color: #f1ecda; border: 1px solid rgba(255,255,255,.25); border-radius: 8px; padding: 4px; } .g64-act .seed-btn { flex: 0 0 auto; min-height: 36px; }
.sp64 { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 8px; background: rgba(8,7,18,.8); }
.sp-card { width: min(100%, 420px); max-height: 100%; overflow-y: auto; padding: 10px; border-radius: 14px; background: linear-gradient(#211c3a, #171428); border: 1px solid rgba(255,255,255,.18); color: #f1ecda; font-size: 12px; }
.sp-head { display: grid; grid-template-columns: 52px 1fr 28px; gap: 8px; align-items: center; } .sp-pic { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: rgba(255,255,255,.08); display: block; } .sp-pic img, .sp-pic .mon-svg { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.sp-head h3 { margin: 0; font-size: 15px; } .sp-head h3 em { font-size: 10px; color: #ff9a8a; } .sp-head p { margin: 0; color: #b9b2d0; font-size: 11px; }
.sp-x { width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; }
.sp-lv { display: flex; align-items: center; gap: 6px; } .sp-xp { flex: 1; height: 5px; border-radius: 3px; background: rgba(255,255,255,.14); overflow: hidden; } .sp-xp i { display: block; height: 100%; background: #9fd8ff; }
.sp-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 8px 0; } .sp-chip { padding: 4px 6px; border-radius: 8px; background: rgba(255,255,255,.07); text-align: center; } .sp-chip small { display: block; font-size: 10px; color: #b9b2d0; } .sp-chip b { font-size: 13px; }
.sp-skills { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 2px; } .sp-skills li { display: flex; gap: 6px; align-items: baseline; } .sp-oh { flex: none; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: #3a3358; font-size: 11px; } .sp-weak { color: #ffcf9a; font-size: 11px; }
.sp-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; } .sp-slot { display: flex; gap: 6px; align-items: center; padding: 4px; border-radius: 8px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); color: #f1ecda; text-align: left; min-height: 44px; } .sp-slot span { display: grid; line-height: 1.2; min-width: 0; } .sp-slot small { font-size: 10px; color: #b9b2d0; } .sp-slot b { font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-syn { margin: 6px 0 0; font-size: 11px; color: #9fd8ff; } .sp-list { margin-top: 6px; display: grid; gap: 4px; } .sp-opt { display: flex; gap: 6px; align-items: center; padding: 4px; border-radius: 8px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #f1ecda; text-align: left; flex-wrap: wrap; } .sp-none { margin: 0; color: #b9b2d0; }
@media (max-width: 340px) { .p64-body { grid-template-columns: 56px 1fr; } .p64-art { width: 56px; height: 56px; } .sp-slots { grid-template-columns: 1fr; } }
.info64 { margin-left: 6px; padding: 1px 8px; border-radius: 10px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.1); color: #fff; font-size: 11px; }

/* ===== 맵 테마 (Theme64) ===== */
.board-grid[data-theme] { background: var(--th-bg); border-color: var(--th-edge); box-shadow: inset 0 0 0 5px color-mix(in srgb, var(--th-bg) 75%, #000), 0 18px 40px rgba(0, 0, 0, .4); }
.board-grid[data-theme] .board-cell.is-light { background: var(--th-a); }
.board-grid[data-theme] .board-cell.is-dark { background: var(--th-b); }
.board-grid[data-theme] .board-cell.is-home.is-light { background: color-mix(in srgb, var(--th-a) 76%, #52c45f); }
.board-grid[data-theme] .board-cell.is-home.is-dark { background: color-mix(in srgb, var(--th-b) 76%, #3fa04c); }
.board-grid[data-theme] .board-cell.is-away.is-light { background: color-mix(in srgb, var(--th-a) 78%, #d0506a); }
.board-grid[data-theme] .board-cell.is-away.is-dark { background: color-mix(in srgb, var(--th-b) 78%, #b03a55); }
.board-grid[data-theme] .board-cell.is-diag.is-light { background: color-mix(in srgb, var(--th-a) 70%, #ffd166); }
.board-grid[data-theme] .board-cell.is-diag.is-dark { background: color-mix(in srgb, var(--th-b) 70%, #e0b04a); }
.board-obst { position: absolute; inset: 4%; display: grid; place-items: center; z-index: 1; filter: drop-shadow(0 2px 1px rgba(0, 0, 0, .45)); }
.board-obst svg { width: 100%; height: 100%; }
.cell-deco { position: absolute; width: 30%; height: 30%; opacity: .78; pointer-events: none; z-index: 0; }
.cell-deco svg { width: 100%; height: 100%; display: block; }
.cell-deco.p-tl { left: 5%; top: 5%; } .cell-deco.p-tr { right: 5%; top: 5%; } .cell-deco.p-bl { left: 5%; bottom: 5%; } .cell-deco.p-br { right: 5%; bottom: 5%; }
.board-fx { position: absolute; inset: 3px; overflow: hidden; pointer-events: none; z-index: 1; border-radius: 12px; contain: strict; }
.board-fx i { position: absolute; left: var(--x); top: -8%; width: calc(7px * var(--s)); height: calc(7px * var(--s)); opacity: 0; will-change: transform, opacity; animation: fxfall var(--d) linear var(--dl) infinite; }
.fx-leaf i { background: #8fd65a; border-radius: 0 100% 0 100%; } .fx-petal i { background: #ffb3c7; border-radius: 100% 0 100% 0; }
.fx-snow i { background: #fff; border-radius: 50%; animation-name: fxsnow; } .fx-dust i { background: rgba(243, 213, 138, .8); border-radius: 50%; top: var(--y); animation-name: fxdrift; }
.fx-steam i { background: rgba(255, 255, 255, .55); border-radius: 50%; top: 100%; animation-name: fxrise; } .fx-ember i { background: #ff9a4d; border-radius: 50%; top: 100%; animation-name: fxrise; box-shadow: 0 0 4px #ff7a45; }
.fx-bubble i { border: 1.5px solid rgba(220, 245, 255, .85); border-radius: 50%; top: 100%; animation-name: fxrise; } .fx-glow i { background: #ffd166; border-radius: 50%; top: 100%; animation-name: fxrise; box-shadow: 0 0 6px #ffb347; }
.fx-spark i, .fx-twinkle i { background: #ffe9a8; top: var(--y); transform: rotate(45deg); animation-name: fxtwinkle; } .fx-paper i { background: #fffaf0; top: var(--y); border-radius: 1px; animation-name: fxdrift; }
.fx-drip i { background: #bfe8ff; border-radius: 50% 50% 50% 0; animation-name: fxfall; }
@keyframes fxfall { 0% { transform: translate(0, 0) rotate(0); opacity: 0; } 10% { opacity: .75; } 50% { transform: translate(8px, 55vw) rotate(160deg); } 100% { transform: translate(-6px, 112vw) rotate(320deg); opacity: 0; } }
@keyframes fxsnow { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: .85; } 100% { transform: translate(14px, 112vw); opacity: 0; } }
@keyframes fxrise { 0% { transform: translate(0, 0); opacity: 0; } 15% { opacity: .75; } 100% { transform: translate(6px, -112vw); opacity: 0; } }
@keyframes fxdrift { 0% { transform: translate(-10px, 0); opacity: 0; } 20% { opacity: .55; } 100% { transform: translate(60vw, 10px); opacity: 0; } }
@keyframes fxtwinkle { 0%, 100% { opacity: 0; transform: rotate(45deg) scale(.4); } 50% { opacity: .9; transform: rotate(45deg) scale(1); } }
html[data-fx="low"] .board-fx { display: none; }
@media (prefers-reduced-motion: reduce) { .board-fx { display: none; } }
.world-view .wv-top { padding-right: calc(var(--safe-right, 0px) + 122px); }
.p64-lab { margin: 8px 0; padding: 8px; border-radius: 10px; background: rgba(159, 216, 255, .1); border: 1px dashed #9fd8ff; text-align: left; }
.p64-lab p { margin: 2px 0; font-size: 12px; } .p64-lab-t { font-weight: 700; color: #9fd8ff; } .p64-lab-out { color: #ffe9a8; min-height: 16px; }
.p64-lab .p64-act { margin: 4px 0; } .p64-lab .seed-btn { min-height: 40px; }

/* ===== v6.5 스킬/카드 설명 · 슬롯 채움 ===== */
.slot-basic { display: grid; justify-items: center; align-content: center; gap: 1px; text-align: center; padding: 2px; }
.slot-basic em { font-style: normal; font-size: 11px; font-weight: 700; }
.slot-basic small { font-size: 9.5px; line-height: 1.15; opacity: 0.8; max-width: 92px; }
.sk-list { display: grid; gap: 2px; margin-top: 3px; }
.sk-row { display: flex; align-items: center; gap: 5px; width: 100%; min-width: 0; padding: 2px 6px; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; background: rgba(20,16,40,.55); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.sk-row .ohang { flex: none; width: 18px; height: 18px; line-height: 18px; font-size: 11px; text-align: center; border-radius: 50%; padding: 0; }
.sk-row b { flex: none; max-width: 38%; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sk-row small { flex: 1; min-width: 0; font-size: 10.5px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sk-row.is-weak b { color: #ffcf9a; }
.sk-row.is-used { opacity: .45; }
.sp-sk { list-style: none; } .sp-sk .sk-row { padding: 3px 6px; }
.sk64 { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(8,6,20,.62); padding: 14px; }
.sk-card { width: min(92vw, 360px); background: #231c3f; border: 1px solid rgba(255,255,255,.2); border-radius: 14px; padding: 12px 14px 14px; color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.sk-card header { display: flex; align-items: center; gap: 8px; } .sk-card h3 { flex: 1; margin: 0; font-size: 17px; }
.sk-card .ohang { width: 26px; height: 26px; line-height: 26px; text-align: center; border-radius: 50%; padding: 0; }
.sk-x { border: 0; background: transparent; color: #fff; font-size: 18px; padding: 4px 8px; cursor: pointer; }
.sk-desc { margin: 10px 0 6px; font-size: 14px; line-height: 1.45; } .sk-eff { margin: 0 0 6px; font-size: 12.5px; color: #cfe3ff; }
.sk-heal { margin: 0 0 6px; font-size: 12.5px; color: #9df0b4; } .sk-next { margin: 0; font-size: 11.5px; opacity: .75; }
.slot-basic small { max-width: 52px; font-size: 9.5px; }
.sk-row { padding: 1px 6px; gap: 4px; } .sk-row .ohang { width: 16px; height: 16px; line-height: 16px; font-size: 10px; }
.sk-list { gap: 1px; margin-top: 2px; }
@media (max-width: 345px) {
  .board-wrap > .duel-table .duel-row { grid-template-columns: 44px 48px minmax(0, 1fr); gap: 4px; }
  .board-wrap > .duel-table .duel-slot { width: 48px; height: 72px; }
  .board-wrap > .duel-table .duel-card { width: 42px; height: 60px; flex: 0 1 42px; min-width: 38px; }
  .board-wrap > .duel-table .duel-hand { gap: 3px; }
}
@media (max-width: 345px) {
  .slot-basic { gap: 0; padding: 1px; }
  .slot-basic svg { width: 18px; height: 18px; }
  .slot-basic em { font-size: 10px; line-height: 1.1; }
  .slot-basic small { font-size: 8.5px; line-height: 1.1; max-width: 44px; }
}

/* 정찰 정보 */
.sc64-scout { margin: 6px 0 4px; padding: 6px 8px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.sc64-foes, .sc64-tips { list-style: none; margin: 2px 0 6px; padding: 0; display: grid; gap: 4px; }
.sc64-foe { display: flex; gap: 8px; align-items: center; min-width: 0; }
.sc64-foe .sc64-pic { flex: none; width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.sc64-foe > div { min-width: 0; flex: 1; } .sc64-foe b { font-size: 13px; margin-right: 4px; }
.sc64-foe .ohang { display: inline-block; width: 16px; height: 16px; line-height: 16px; font-size: 10px; text-align: center; border-radius: 50%; padding: 0; margin-right: 2px; }
.sc64-foe small { display: block; font-size: 10.5px; opacity: .85; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; }
.sc64-foe .sc64-warn { color: #ffcf9a; }
.sc64-tips li { font-size: 12px; line-height: 1.4; padding-left: 12px; position: relative; } .sc64-tips li::before { content: "▸"; position: absolute; left: 0; color: #f5c518; }
.sc64-go { position: sticky; bottom: 0; }
