/* =========================
   증강 윷놀이 확장전 (2026-11-18) — 맵 5종 배경·특수 칸·함정·보스·진화 말·패널
   그림은 CSS 그라데이션·SVG·이모지로만 (외부 그림 파일 없음 → 저작권 걱정 없음, 가벼움)
   ========================= */
.yu-modes:has(.yu-mode.x) { grid-template-columns: repeat(3, 1fr); }
.yu-mode.x b { color: #c2410c; }
.yu-mode.x.on { background: linear-gradient(135deg, #fff1d6, #ffe0c2); }
.yx-lobby { margin: 4px 0 12px; padding: 10px 12px; background: #fff8ec; box-shadow: 0 0 0 2px var(--yu-ink); }
.yx-map-card { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.yx-map-card p { font-size: 12.5px; margin: 0; line-height: 1.5; }
.yx-lobby-note { font-size: 12px; margin: 8px 0 0; }
.yu-map-prev { flex: 0 0 64px; height: 64px; box-shadow: 0 0 0 2px var(--yu-ink); position: relative; overflow: hidden; }
.yu-map-prev::after { content: ""; position: absolute; inset: 10px; border: 2px solid rgba(0,0,0,.35); background: linear-gradient(45deg, transparent 48%, rgba(0,0,0,.35) 49% 51%, transparent 52%), linear-gradient(-45deg, transparent 48%, rgba(0,0,0,.35) 49% 51%, transparent 52%); }
.yu-map-prev.map-random { background: conic-gradient(#e0b25a, #d9473b, #7cc4f0, #3f9b5a, #8b5cf6, #e0b25a); }
.yu-map-prev.map-classic { background: radial-gradient(circle at 35% 30%, #fbf3df, #e1cd9e); }
.yu-map-prev.map-volcano { background: radial-gradient(circle at 50% 110%, #ff7a1a, #7a1d0e 55%, #2a0f0a); }
.yu-map-prev.map-ice { background: linear-gradient(160deg, #f4fbff, #bfe3f7 60%, #8cc5ea); }
.yu-map-prev.map-forest { background: radial-gradient(circle at 30% 30%, #b6e3a1, #4f8f4a 60%, #24452a); }
.yu-map-prev.map-chaos { background: conic-gradient(from 30deg, #2a1550, #8b5cf6, #ec4899, #2a1550, #22d3ee, #2a1550); }

/* ---------- 윷판 테마 ---------- */
.yu-board { transition: background .6s; }
.yu-board.map-classic { background: radial-gradient(circle at 35% 30%, #fff6e2, #ecdcb5 70%, #dcc38e); }
.yu-board.map-volcano { background: radial-gradient(circle at 50% 120%, #ff8a2a 0%, #b8321a 28%, #5a160e 58%, #241010 100%); --yu-line: #ffb28a; }
.yu-board.map-volcano::before { background-image: radial-gradient(rgba(255,170,90,.18) 1.2px, transparent 1.4px), radial-gradient(circle at 20% 80%, rgba(255,120,40,.35), transparent 30%), radial-gradient(circle at 80% 85%, rgba(255,90,30,.3), transparent 28%); background-size: 11px 11px, 100% 100%, 100% 100%; animation: yxEmber 4s ease-in-out infinite alternate; }
.yu-board.map-ice { background: linear-gradient(160deg, #f7fdff 0%, #d7eefb 45%, #a9d6f2 100%); --yu-line: #3f7fae; }
.yu-board.map-ice::before { background-image: radial-gradient(rgba(255,255,255,.95) 1px, transparent 1.6px), linear-gradient(115deg, transparent 40%, rgba(255,255,255,.45) 50%, transparent 60%); background-size: 14px 14px, 100% 100%; }
.yu-board.map-forest { background: radial-gradient(circle at 30% 25%, #d6f2c2, #8cc77a 45%, #3f7a40 85%, #2a5530); --yu-line: #2b4a24; }
.yu-board.map-forest::before { background-image: radial-gradient(rgba(255,255,190,.9) 1px, transparent 2px), radial-gradient(rgba(20,60,20,.18) 1px, transparent 1.5px); background-size: 37px 41px, 8px 8px; animation: yxFirefly 6s linear infinite; }
.yu-board.map-chaos { background: conic-gradient(from 0deg at 50% 50%, #241045, #5b2a9e, #a3246f, #241045, #156e8a, #241045); --yu-line: #f0d7ff; }
.yu-board.map-chaos::before { background-image: repeating-radial-gradient(circle at 50% 50%, rgba(255,255,255,.07) 0 6px, transparent 6px 14px); animation: yxHue 12s linear infinite; }
.yu-board.map-volcano .yu-node, .yu-board.map-chaos .yu-node { background: #3a1f1a; box-shadow: 0 0 0 2px var(--yu-line), inset 0 -2px 0 rgba(0,0,0,.4); }
.yu-board.map-chaos .yu-node { background: #2b1650; }
.yu-board.map-volcano .yu-node.start, .yu-board.map-chaos .yu-node.start { background: #ffd36a; }
.yu-board.map-volcano .yu-node.start::after, .yu-board.map-chaos .yu-node.start::after { color: #ffe9c2; }
.yu-board.map-volcano .yu-lines line, .yu-board.map-chaos .yu-lines line { stroke: var(--yu-line); }
.yu-board.map-ice .yu-node { background: #f4fbff; }
.yu-board.map-forest .yu-node { background: #f3f9e8; }

/* ---------- 칸·함정 표시 ---------- */
.yx-layer { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.yx-tile, .yx-trap, .yx-weak, .yx-spirit, .yx-warn { position: absolute; transform: translate(-50%, -50%); }
.yx-tile { width: 6.4%; height: 6.4%; border-radius: 50%; display: flex; align-items: center; justify-content: center; pointer-events: auto; cursor: help; }
.yx-tile i { font-style: normal; font-size: clamp(10px, 2.1vw, 17px); filter: drop-shadow(0 1px 0 rgba(0,0,0,.4)); }
.yx-tile.t-q { background: radial-gradient(circle, #fff3b0, #f2c84b); box-shadow: 0 0 0 2px #8a6a10, 0 0 10px #ffd34d; }
.yx-tile.t-lava, .yx-tile.t-fire { background: radial-gradient(circle, #ffd27a, #ff5a1f 55%, #8a1c0a); box-shadow: 0 0 0 2px #3a0d05, 0 0 12px #ff6a2a; animation: yxLava 1.6s ease-in-out infinite; }
.yx-tile.t-fire { box-shadow: 0 0 0 2px #3a0d05, 0 0 16px 4px #ff3a0a; }
.yx-tile.t-ice { background: radial-gradient(circle at 35% 30%, #ffffff, #bfe6ff 50%, #6fb6e6); box-shadow: 0 0 0 2px #2b6b9a, inset 0 0 6px #fff; }
.yx-tile.t-frost { background: radial-gradient(circle, #e8f7ff, #7cc4f0); box-shadow: 0 0 0 2px #1d4f7a, 0 0 10px #a8e1ff; }
.yx-tile.t-heal { background: radial-gradient(circle, #e7ffd9, #59c26a); box-shadow: 0 0 0 2px #1f6b2c, 0 0 10px #8df59a; }
.yx-tile.t-portal { background: conic-gradient(#8b5cf6, #22d3ee, #8b5cf6); box-shadow: 0 0 0 2px #2a1550, 0 0 12px #a78bfa; animation: yxSpin 3s linear infinite; }
.yx-tile.t-portal i { animation: yxSpin 3s linear infinite reverse; }
.yx-tile.t-sanct { background: radial-gradient(circle, #fffbe8, #e8d58a); box-shadow: 0 0 0 2px #7a5a10, 0 0 0 5px rgba(255,236,150,.5); }
.yx-tile.t-boost { background: radial-gradient(circle, #fff7c2, #ffb21a); box-shadow: 0 0 0 2px #7a4a00, 0 0 10px #ffd34d; }
.yx-tile.t-curse { background: radial-gradient(circle, #d9c7ff, #3b2363); box-shadow: 0 0 0 2px #1a0b30, 0 0 10px #8b5cf6; }
.yx-trap { right: auto; width: 4.4%; height: 4.4%; margin: -3.4% 0 0 3.2%; border-radius: 6px; background: #fff; box-shadow: 0 0 0 2px var(--tc), 0 0 0 3.5px var(--yu-ink); display: flex; align-items: center; justify-content: center; font-size: clamp(9px, 1.7vw, 14px); pointer-events: auto; cursor: help; z-index: 3; }
.yx-trap.boss { background: #f3e6ff; animation: yxLava 1.2s ease-in-out infinite; }
.yx-trap.mine { opacity: .85; }
.yx-weak { width: 7.6%; height: 7.6%; display: flex; align-items: center; justify-content: center; font-size: clamp(13px, 2.6vw, 22px); border-radius: 50%; background: radial-gradient(circle, rgba(255,230,120,.9), rgba(255,200,40,.15) 70%); animation: yxPulse 1s ease-in-out infinite; pointer-events: auto; cursor: help; }
.yx-warn { width: 9%; height: 9%; border-radius: 50%; border: 3px dashed #ff3b30; animation: yxSpin 4s linear infinite; }
.yx-warn.freeze { border-color: #38bdf8; }
.yx-warn.shock { width: 18%; height: 18%; border-color: #c026d3; }
.yx-spirit { font-size: clamp(16px, 3vw, 26px); animation: yxFloat 1.6s ease-in-out infinite; pointer-events: auto; cursor: help; filter: drop-shadow(0 0 6px #b7ffb0); }
.yx-closed { position: absolute; inset: 0; width: 100%; height: 100%; }
.yx-closed polyline { fill: none; stroke: #38bdf8; stroke-width: 2.4; stroke-dasharray: 2 2; opacity: .85; }
.yx-hidden-note { position: absolute; left: 50%; bottom: -2%; transform: translate(-50%, 100%); font-size: 12px; background: var(--yu-ink); color: #fff; padding: 2px 8px; border-radius: 10px; white-space: nowrap; }

/* ---------- 진화한 말 ---------- */
.yu-pc .lvb { position: absolute; left: 50%; bottom: -30%; transform: translateX(-50%); background: var(--yu-ink); color: #ffe27a; font-family: var(--yu-font); font-size: clamp(8px, 1.4vw, 11px); padding: 0 4px; border-radius: 8px; white-space: nowrap; z-index: 3; }
.yu-pc.lv2 .tok { box-shadow: 0 0 0 2px var(--yu-ink), 0 0 0 4px #ffd34d, 0 4px 0 3px var(--yu-ink), 0 9px 6px rgba(0,0,0,.35); }
.yu-pc.lv3 .tok { box-shadow: 0 0 0 2px var(--yu-ink), 0 0 0 4px #ffd34d, 0 0 0 6px var(--yu-ink), 0 0 16px 6px color-mix(in srgb, var(--tc) 70%, #fff); }
.yu-pc.lv3::before { content: ""; position: absolute; inset: -22%; border-radius: 50%; background: conic-gradient(from 0deg, transparent, rgba(255,226,122,.75), transparent 40%, rgba(255,226,122,.6), transparent 75%); animation: yxSpin 2.4s linear infinite; z-index: -1; }
.yu-pc.lv2 .tok::before, .yu-pc.lv3 .tok::before { border-color: #ffe27a; border-style: double; border-width: 3px; }
.yu-pc[data-evo="charge"].lv2 .tok::after, .yu-pc[data-evo="charge"].lv3 .tok::after { content: ""; position: absolute; top: -18%; left: 50%; width: 30%; height: 30%; transform: translateX(-50%) rotate(45deg); background: #ffd34d; box-shadow: 0 0 0 2px var(--yu-ink); }
.yu-pc[data-evo="guard"].lv2 .tok, .yu-pc[data-evo="guard"].lv3 .tok { border-radius: 30%; }
.yu-pc[data-evo="mobile"].lv2 .tok::after, .yu-pc[data-evo="mobile"].lv3 .tok::after { content: ""; position: absolute; left: -26%; right: -26%; top: 30%; height: 26%; background: radial-gradient(ellipse at 10% 50%, #fff 40%, transparent 42%), radial-gradient(ellipse at 90% 50%, #fff 40%, transparent 42%); z-index: -1; }
.yu-pc[data-evo="luck"].lv2 .tok, .yu-pc[data-evo="luck"].lv3 .tok { background: radial-gradient(circle at 35% 30%, #fff, var(--tc) 50%, color-mix(in srgb, var(--tc) 50%, #2e7d32)); }
.yu-pc[data-evo="hinder"].lv2 .tok::after, .yu-pc[data-evo="hinder"].lv3 .tok::after { content: ""; position: absolute; top: -14%; left: 14%; right: 14%; height: 24%; background: linear-gradient(135deg, transparent 45%, #3b0d0d 46% 54%, transparent 55%) left/50% 100% no-repeat, linear-gradient(45deg, transparent 45%, #3b0d0d 46% 54%, transparent 55%) right/50% 100% no-repeat; }

/* ---------- 위쪽 정보 줄 ---------- */
.yx-bar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; margin: 6px 0 2px; }
.yx-chip { font-size: 12.5px; padding: 3px 9px; background: #fff; color: var(--yu-ink); box-shadow: 0 0 0 2px var(--yu-ink); white-space: nowrap; }
.yx-chip.map { background: #fff4c7; font-weight: 700; }
.yx-chip.warn { background: #ffe1dc; animation: yxBlink 1.2s ease-in-out infinite; }
.yx-chip.good { background: #dcfce7; }
.yx-boss { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; background: linear-gradient(90deg, #3a0d2e, #6b1d3a); color: #fff; box-shadow: 0 0 0 2px var(--yu-ink), 0 0 12px rgba(255,80,80,.45); flex-wrap: wrap; }
.yx-boss .bi { font-size: 22px; animation: yxWobble 1.4s ease-in-out infinite; }
.yx-boss b { font-family: var(--yu-font); }
.yx-boss .hp { letter-spacing: -2px; }
.yx-boss small { font-size: 11px; opacity: .85; }
.yx-boss.b-tiger { background: linear-gradient(90deg, #0b3a5a, #1e6aa0); }
.yx-boss.b-jangseung { background: linear-gradient(90deg, #5a1a08, #a5360e); }

/* ---------- 보스 등장 연출 ---------- */
.yx-cutin { position: fixed; left: 0; right: 0; top: 30%; z-index: 90; display: flex; align-items: center; justify-content: center; gap: 18px; padding: 18px; background: linear-gradient(90deg, transparent, rgba(30,6,20,.92) 15%, rgba(30,6,20,.92) 85%, transparent); color: #fff; animation: yxCutIn .45s cubic-bezier(.2,.9,.3,1.2); pointer-events: none; }
.yx-cutin.out { animation: yxCutOut .5s ease-in forwards; }
.yx-cutin .art { width: 110px; height: 110px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle, #ff5b5b, #6b0f2a 70%); box-shadow: 0 0 0 4px #fff, 0 0 40px 10px rgba(255,60,60,.6); }
.yx-cutin.b-tiger .art { background: radial-gradient(circle, #9be3ff, #0b4a7a 70%); box-shadow: 0 0 0 4px #fff, 0 0 40px 10px rgba(80,200,255,.6); }
.yx-cutin.b-jangseung .art { background: radial-gradient(circle, #ffb35a, #7a2a08 70%); box-shadow: 0 0 0 4px #fff, 0 0 40px 10px rgba(255,140,40,.7); }
.yx-cutin .face { font-size: 70px; animation: yxWobble .9s ease-in-out infinite; }
.yx-cutin .txt { display: flex; flex-direction: column; max-width: 420px; }
.yx-cutin small { letter-spacing: 6px; color: #ff9d9d; font-family: var(--yu-font); }
.yx-cutin b { font-family: var(--yu-font); font-size: clamp(24px, 5vw, 40px); text-shadow: 0 3px 0 #000; }
.yx-cutin span { font-size: 14px; opacity: .9; }
.yu-banner.boss { background: linear-gradient(90deg, #3a0d2e, #7a1d3a); color: #fff; }
.yu-banner.warn { background: #ffe1dc; }

/* ---------- 내 말·팀 능력 패널 ---------- */
.yx-panel h3 { margin-bottom: 8px; }
.yx-ab { width: 100%; display: flex; align-items: center; gap: 8px; text-align: left; padding: 8px 10px; background: #f6f1ff; border: 0; box-shadow: 0 0 0 2px var(--yu-ink); font-family: var(--yu-body); cursor: pointer; margin-bottom: 8px; color: var(--yu-ink); }
.yx-ab.ready { background: #ece2ff; box-shadow: 0 0 0 2px var(--yu-ink), 0 0 0 5px #a78bfa; }
.yx-ab:disabled { cursor: default; opacity: .8; }
.yx-ab .ic { font-size: 24px; }
.yx-ab .tx { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.yx-ab .tx small { font-size: 11.5px; line-height: 1.35; }
.yx-ab .cd { font-family: var(--yu-font); font-size: 12px; background: var(--yu-ink); color: #fff; padding: 2px 6px; white-space: nowrap; }
.yx-pcs { display: flex; flex-direction: column; gap: 6px; }
.yx-pc { display: flex; align-items: center; gap: 8px; }
.yx-pc .tk { width: 24px; height: 24px; border-radius: 50%; background: var(--tc); color: #fff; font-family: var(--yu-font); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px var(--yu-ink); flex: 0 0 auto; }
.yx-pc.lv2 .tk { box-shadow: 0 0 0 2px var(--yu-ink), 0 0 0 4px #ffd34d; }
.yx-pc.lv3 .tk { box-shadow: 0 0 0 2px var(--yu-ink), 0 0 0 4px #ffd34d, 0 0 10px 3px #ffd34d; }
.yx-pc .info { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; min-width: 0; }
.yx-pc .bar { height: 7px; background: #e8e1d2; box-shadow: 0 0 0 1.5px var(--yu-ink); overflow: hidden; }
.yx-pc .bar i { display: block; height: 100%; background: linear-gradient(90deg, #ffd34d, #ff9d2e); transition: width .4s; }
.yx-pc small { font-size: 11px; color: var(--yu-muted); }
.yx-abtag { display: inline-flex; align-items: center; gap: 1px; margin-right: 2px; }
.yx-abtag small { font-size: 10px; background: var(--yu-ink); color: #fff; padding: 0 3px; border-radius: 6px; }
.yx-tag { font-style: normal; font-size: 10px; background: #c2410c; color: #fff; padding: 1px 4px; border-radius: 4px; vertical-align: 1px; }

/* ---------- 진화·팀 능력 고르기 ---------- */
.yx-evo-cards, .yx-ab-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 10px 0; }
.yx-evo-card, .yx-ab-card { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; text-align: left; padding: 10px; background: #fff; border: 0; box-shadow: 0 0 0 2px var(--yu-ink); cursor: pointer; font-family: var(--yu-body); color: var(--yu-ink); transition: transform .12s; }
.yx-evo-card:hover, .yx-ab-card:hover, .yx-evo-card:focus-visible, .yx-ab-card:focus-visible { transform: translateY(-3px); box-shadow: 0 0 0 2px var(--yu-ink), 0 0 0 5px var(--yu-gold); }
.yx-evo-card .ic, .yx-ab-card .ic { font-size: 28px; }
.yx-evo-card b, .yx-ab-card b { font-family: var(--yu-font); font-size: 15px; }
.yx-evo-card small, .yx-ab-card small { font-size: 12px; line-height: 1.4; }
.yx-pick-ab { margin: 0 0 10px; color: #fff; }
.yx-ab-h { font-size: 13px; margin: 4px 0; }
.yx-ab-picked { font-size: 14px; padding: 6px 10px; background: rgba(255,255,255,.12); display: inline-block; }
.yu-pick-cards.wait-ab { opacity: .45; filter: grayscale(.4); }

@keyframes yxSpin { to { transform: rotate(360deg); } }
@keyframes yxPulse { 50% { transform: translate(-50%, -50%) scale(1.18); } }
@keyframes yxFloat { 50% { transform: translate(-50%, -64%); } }
@keyframes yxLava { 50% { filter: brightness(1.25); } }
@keyframes yxWobble { 25% { transform: rotate(-8deg); } 75% { transform: rotate(8deg); } }
@keyframes yxBlink { 50% { background: #ffc4bb; } }
@keyframes yxEmber { to { background-position: 0 -22px, 0 0, 0 0; } }
@keyframes yxFirefly { to { background-position: 37px -41px, 0 0; } }
@keyframes yxCutIn { from { transform: scaleY(0); opacity: 0; } }
@keyframes yxCutOut { to { transform: translateX(30%); opacity: 0; } }
@media (max-width: 560px) {
  .yu-modes:has(.yu-mode.x) { grid-template-columns: 1fr; }
  .yx-cutin .art { width: 76px; height: 76px; } .yx-cutin .face { font-size: 48px; }
  .yx-boss small { display: none; }
  .yx-evo-cards, .yx-ab-list { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .yu-board::before, .yx-tile, .yx-tile i, .yx-weak, .yx-warn, .yx-spirit, .yu-pc.lv3::before, .yx-boss .bi, .yx-cutin, .yx-cutin .face, .yx-chip.warn, .yx-trap.boss { animation: none !important; }
}
@keyframes yxHue { to { filter: hue-rotate(360deg); } }
