/* 삼각형 쟁탈 — 결투실. 검은 돌 탁자 위 촛불, 양피지 카드, 핏빛 삼각형 */
body.in-duel > .desk, body.in-duel > .shell { visibility: hidden; }
.duel {
  position: fixed; inset: 0; z-index: 60; display: none; flex-direction: column; color: #e9dcc0; font-family: var(--kr);
  background: radial-gradient(ellipse 70% 55% at 50% 42%, rgba(120, 30, 12, .28), transparent 70%), radial-gradient(ellipse at 50% 120%, rgba(90, 0, 8, .55), transparent 60%), #0d0907;
}
.duel.show { display: flex; animation: duIn .35s ease; }
@keyframes duIn { from { opacity: 0; } to { opacity: 1; } }
.du-top { display: flex; align-items: center; justify-content: space-between; padding: 10px 18px; border-bottom: 1px solid rgba(201, 162, 74, .2); }
.du-title b { font-family: var(--black); font-weight: 400; font-size: 26px; color: #e8cf8f; margin-right: 10px; }
.du-title span { font-size: 13px; color: #b9a983; letter-spacing: .1em; }
.du-x { background: none; border: 1px solid rgba(232, 207, 143, .35); color: #e8cf8f; width: 34px; height: 34px; font-size: 15px; cursor: pointer; border-radius: 2px; }
.du-x:hover { background: rgba(232, 207, 143, .12); }
.du-body { flex: 1; overflow: auto; padding: 14px 18px 20px; }
.du-btn { font-family: var(--kr); font-size: 13px; background: transparent; color: #e8cf8f; border: 1px solid rgba(232, 207, 143, .45); padding: 7px 14px; cursor: pointer; border-radius: 2px; }
.du-btn:hover:not(:disabled) { background: rgba(232, 207, 143, .12); }
.du-btn.go { background: linear-gradient(180deg, #8f1013, #5d0709); border-color: #c0392b; color: #f6e7c8; }
.du-btn.go:hover:not(:disabled) { background: linear-gradient(180deg, #a71518, #6d090b); }
.du-btn:disabled { opacity: .4; cursor: default; }
.du-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.du-empty { color: #9c8d6c; font-size: 13px; margin: 6px 0; }

/* 카드 — 양피지에 계급 금속 인장, 왼쪽 위 값(촛불), 오른쪽 아래 힘(밀랍 봉인) */
.dc {
  position: relative; width: 96px; height: 142px; flex-shrink: 0; border-radius: 5px; padding: 8px 6px 6px; box-sizing: border-box;
  background: radial-gradient(ellipse at 40% 25%, #f5ead0, #e2d1aa 70%, #cbb68a); color: #2a1d10;
  box-shadow: 0 0 0 1px rgba(60, 35, 10, .55) inset, 0 0 0 3px rgba(236, 223, 193, .08) inset, 0 4px 10px rgba(0, 0, 0, .5);
  display: flex; flex-direction: column; align-items: center; text-align: center; user-select: none;
}
.dc.t3 { box-shadow: 0 0 0 1px #8a6a1a inset, 0 0 0 3px rgba(201, 162, 74, .35) inset, 0 4px 10px rgba(0, 0, 0, .5); }
.dc.t4 { box-shadow: 0 0 0 1px #8f1013 inset, 0 0 0 3px rgba(201, 162, 74, .55) inset, 0 4px 12px rgba(0, 0, 0, .55), 0 0 10px rgba(170, 20, 20, .35); }
.dc.prince { background: radial-gradient(ellipse at 40% 25%, rgba(var(--pc), .35), transparent 70%), radial-gradient(ellipse at 40% 25%, #2a2018, #120c08 75%); color: #f0e2c2;
  box-shadow: 0 0 0 1px rgb(var(--pc)) inset, 0 0 0 3px rgba(var(--pc), .3) inset, 0 4px 12px rgba(0, 0, 0, .6), 0 0 14px rgba(var(--pc), .35); }
.dc.shade { background: radial-gradient(ellipse at 50% 35%, #4a4540, #23201d 70%); color: #b3aba0; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08) inset, 0 4px 10px rgba(0, 0, 0, .5); }
.dc-cost { position: absolute; left: 4px; top: 4px; min-width: 20px; height: 20px; padding: 0 3px; box-sizing: border-box; border-radius: 10px 10px 10px 2px; background: #2a1d10; color: #ffd27a;
  font: 700 12px/20px var(--fell); box-shadow: 0 0 6px rgba(255, 170, 60, .45); }
.dc.prince .dc-cost { background: #000; }
.dc-pow { position: absolute; right: 3px; top: 3px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 700 15px var(--fell);
  background: radial-gradient(circle at 35% 30%, #c0392b, #7d0a0c 70%); color: #fff2dc; box-shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 0 0 1px rgba(60, 0, 0, .6) inset; transition: transform .25s; }
.dc-pow.up { background: radial-gradient(circle at 35% 30%, #e6b84a, #8a6a1a 70%); color: #1a1204; }
.dc-pow.down { background: radial-gradient(circle at 35% 30%, #5a5a5a, #222 70%); color: #ff9a9a; }
.dc-seal { width: 52px; height: 52px; margin-top: 6px; }
.dc-seal .seal-frame { width: 100%; margin: 0; }
.dc-ns { width: 100%; height: 100%; }
.dc-ns svg { width: 100%; height: 100%; }
.dc-shade { width: 100%; height: 100%; border-radius: 50%; background: radial-gradient(circle, rgba(0, 0, 0, .7), rgba(0, 0, 0, .2) 60%, transparent 70%); filter: blur(2px); }
.dc-nm { margin-top: 4px; font-size: 12.5px; font-weight: 700; line-height: 1.15; }
.dc-ab { font-size: 10px; line-height: 1.25; color: #850b0d; margin-top: 3px; word-break: keep-all; }
.dc.prince .dc-ab { color: rgb(var(--pc)); }
.dc.shade .dc-ab { color: #777; }

/* 덱 꾸리기 */
.du-prep { max-width: 980px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.du-sec h3 { margin: 0 0 10px; font-family: var(--fell); font-weight: 400; font-size: 20px; color: #e8cf8f; }
.du-sec h3 small { font-family: var(--kr); font-size: 12px; color: #a8987a; margin-left: 8px; }
.du-deck, .du-pool { display: flex; flex-wrap: wrap; gap: 10px; }
.du-pool { max-height: 300px; overflow: auto; padding: 4px; }
.dc.pick { cursor: pointer; transition: transform .15s; }
.dc.pick:hover { transform: translateY(-4px); }
.dc.blocked { opacity: .55; }
.du-vs { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 14px 16px; border: 1px solid rgba(201, 162, 74, .25); background: rgba(0, 0, 0, .25); }
.du-opp { display: flex; flex-direction: column; }
.du-k { font-size: 11px; letter-spacing: .14em; color: #a8987a; }
.du-opp b { font-family: var(--fell); font-weight: 400; font-size: 24px; color: #f0e2c2; }
.du-opp small { color: #a8987a; }
.du-vs .du-row { margin-top: 0; }
.du-rules { font-size: 13px; color: #cdbf9f; line-height: 1.6; }
.du-rules summary { cursor: pointer; color: #e8cf8f; font-family: var(--fell); font-size: 17px; }
.du-rules ul { padding-left: 18px; }
.du-abs { list-style: none; margin-left: -18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px 14px; }
.du-abs b { color: #e8cf8f; font-weight: 700; }

/* 결투 판 */
.du-game { position: relative; max-width: 1060px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; min-height: 100%; }
.du-foe { display: flex; align-items: center; gap: 12px; font-family: var(--fell); font-size: 20px; color: #f0e2c2; }
.du-foe small { font-family: var(--kr); font-size: 12px; color: #a8987a; }
.du-backs { display: flex; gap: 3px; }
.du-backs i { width: 16px; height: 22px; border-radius: 2px; background: repeating-linear-gradient(45deg, #5d0709 0 3px, #3a0406 3px 6px); box-shadow: 0 0 0 1px #8f1013 inset; }
.du-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.du-tri { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 4px; border-radius: 4px; border: 1px solid rgba(201, 162, 74, .12); background: rgba(0, 0, 0, .22); transition: background .2s, border-color .2s; }
.du-tri.can { cursor: pointer; border-color: rgba(255, 210, 122, .7); background: rgba(255, 190, 80, .07); box-shadow: 0 0 18px rgba(255, 170, 60, .18) inset; }
.du-tri.won { border-color: rgba(232, 207, 143, .8); background: rgba(232, 207, 143, .08); }
.du-tri.lost { border-color: rgba(192, 57, 43, .7); background: rgba(120, 10, 10, .15); }
.du-side { display: flex; gap: 4px; justify-content: center; min-height: 96px; }
.du-side .dc.unit { width: 68px; height: 94px; padding-top: 6px; }
.du-side .dc.unit .dc-seal { width: 38px; height: 38px; margin-top: 4px; }
.du-side .dc.unit .dc-nm { font-size: 11px; }
.du-side .dc.unit .dc-ab { font-size: 9.5px; }
.du-side .dc.unit .dc-cost { display: none; }
.du-side .dc.unit .dc-pow { width: 22px; height: 22px; font-size: 13px; }
.du-side.theirs .dc.unit { filter: brightness(.92) sepia(.15); }
.dc.unit.pend { opacity: .6; outline: 1px dashed #ffd27a; outline-offset: 2px; cursor: pointer; }
.dc.unit.new { animation: duNew .5s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes duNew { from { transform: scale(1.35); opacity: 0; } to { transform: none; opacity: 1; } }
.du-slot { width: 68px; height: 94px; border-radius: 5px; border: 1px dashed rgba(201, 162, 74, .18); }
.du-mid { position: relative; width: 100%; height: 62px; display: grid; place-items: center; }
.du-mid svg { position: absolute; height: 60px; width: auto; fill: none; stroke: rgba(176, 20, 20, .75); stroke-width: 3; filter: drop-shadow(0 0 6px rgba(200, 20, 20, .35)); }
.du-tri.mine .du-mid svg { stroke: rgba(232, 190, 90, .85); filter: drop-shadow(0 0 6px rgba(255, 190, 80, .4)); }
.du-score { position: relative; top: 8px; font-family: var(--fell); font-size: 20px; display: flex; gap: 4px; align-items: baseline; }
.du-score b { color: #ffe0a0; font-weight: 400; }
.du-score i { color: #8c7c5c; font-style: normal; }
.du-score em { color: #ff9a8a; font-style: normal; }
.du-fx { position: absolute; top: -6px; white-space: nowrap; font-size: 12px; padding: 2px 8px; border-radius: 2px; animation: duFx 1s ease both; z-index: 2; }
.du-fx.me { background: #e8cf8f; color: #1a1204; }
.du-fx.foe { background: #8f1013; color: #f6e7c8; }
@keyframes duFx { from { opacity: 0; transform: translateY(6px); } 20% { opacity: 1; transform: none; } to { opacity: 1; } }

.du-me { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid rgba(201, 162, 74, .2); padding-top: 10px; }
.du-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.du-turn { font-family: var(--fell); font-size: 18px; color: #e8cf8f; }
.du-turn b { font-weight: 400; color: #fff2d0; }
.du-candles { display: inline-flex; gap: 5px; align-items: flex-end; margin-right: auto; }
.du-candles i { width: 8px; height: 22px; border-radius: 2px 2px 1px 1px; background: #3a332b; position: relative; }
.du-candles i.on { background: linear-gradient(#efe4cc, #cbbd9e); }
.du-candles i.on::before { content: ""; position: absolute; left: 50%; top: -11px; width: 7px; height: 11px; margin-left: -3.5px; border-radius: 50% 50% 40% 40%; background: radial-gradient(ellipse at 50% 70%, #fff6d0, #ffb347 55%, rgba(255, 90, 20, 0) 75%); filter: drop-shadow(0 0 4px rgba(255, 170, 60, .9)); }
.du-info { margin: 0; font-size: 12.5px; color: #b9a983; min-height: 1.4em; }
.du-hand { display: flex; gap: 10px; overflow-x: auto; padding: 8px 2px 6px; }
.dc.hand { cursor: pointer; transition: transform .15s, box-shadow .15s; }
.dc.hand:hover { transform: translateY(-5px); }
.dc.hand.sel { transform: translateY(-10px); box-shadow: 0 0 0 2px #ffd27a, 0 8px 20px rgba(255, 170, 60, .35); }
.dc.hand.dim { filter: saturate(.4) brightness(.6); }
.du-game.busy .dc.hand { pointer-events: none; }

.du-result { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(5, 3, 2, .55); animation: duIn .4s ease; }
.du-result .du-card { text-align: center; padding: 22px 28px; border: 1px solid rgba(232, 207, 143, .5); background: #120c08; box-shadow: 0 20px 50px rgba(0, 0, 0, .6); max-width: 92vw; }
.du-result b { display: block; font-family: var(--black); font-weight: 400; font-size: 48px; color: #e8cf8f; }
.du-result.lose b { color: #c0392b; }
.du-result span { display: block; font-size: 14px; }
.du-result small { display: block; color: #8c7c5c; margin-top: 6px; }
.du-result .du-row { justify-content: center; }

@media (max-width: 720px) {
  .du-body { padding: 10px 8px 16px; }
  .du-title b { font-size: 20px; }
  .du-board { gap: 4px; }
  .du-side { gap: 2px; min-height: 64px; flex-wrap: wrap; }
  .du-side .dc.unit, .du-slot { width: 34px; height: 46px; }
  .du-side .dc.unit { padding: 3px 2px; }
  .du-side .dc.unit .dc-seal { width: 22px; height: 22px; margin-top: 2px; }
  .du-side .dc.unit .dc-nm, .du-side .dc.unit .dc-ab { display: none; }
  .du-side .dc.unit .dc-pow { width: 16px; height: 16px; font-size: 10px; right: 1px; bottom: 1px; }
  .dc { width: 76px; height: 108px; }
  .dc-seal { width: 42px; height: 42px; }
  .du-mid { height: 48px; }
  .du-mid svg { height: 44px; }
  .du-score { font-size: 16px; }
  .du-fx { font-size: 10.5px; }
}
@media (prefers-reduced-motion: reduce) { .duel.show, .dc.unit.new, .du-fx, .du-result { animation: none; } }

/* 상대 카드 — 검붉은 바탕·붉은 테(내 카드는 양피지) */
.dc.foe { background: radial-gradient(ellipse at 40% 25%, #3a1210, #1a0706 75%); color: #f0d9d0;
  box-shadow: 0 0 0 1px #b3201c inset, 0 0 0 3px rgba(179, 32, 28, .25) inset, 0 4px 10px rgba(0, 0, 0, .6); }
.dc.foe .dc-ab { color: #ff9a8a; }
.dc.foe.shade { background: radial-gradient(ellipse at 50% 35%, #3a2422, #1a0d0c 70%); }
.dc.foe.prince { box-shadow: 0 0 0 1px #b3201c inset, 0 0 0 3px rgba(var(--pc), .45) inset, 0 4px 12px rgba(0, 0, 0, .6), 0 0 12px rgba(var(--pc), .35); }
.du-side.theirs { background: rgba(150, 12, 12, .13); border-radius: 4px; padding: 4px; }
.du-side.mine { background: rgba(232, 190, 90, .07); border-radius: 4px; padding: 4px; }
.du-side.theirs .du-slot { border-color: rgba(200, 40, 40, .25); }
.du-tag { font-family: var(--kr); font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 2px; letter-spacing: .04em; }
.du-tag.foe { background: #8f1013; color: #fff0e0; }
.du-tag.me { background: #e8cf8f; color: #1a1204; }
.du-q { margin-left: auto; width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(232, 207, 143, .5); background: transparent; color: #e8cf8f; font: 700 15px var(--fell); cursor: pointer; }
.du-q:hover { background: rgba(232, 207, 143, .12); }
.du-cl { font-size: 12px; color: #d8c79a; margin-left: -6px; }
.du-score em { order: 0; }
.du-state { position: absolute; bottom: -4px; font-size: 11px; color: #a8987a; white-space: nowrap; }
.du-tri.mine .du-state { color: #ffe0a0; }
.du-tri.theirs .du-state { color: #ff9a8a; }
.du-info { font-size: 13.5px; color: #e9dcc0; }

/* 하는 법 */
.du-how { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.du-how li { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; line-height: 1.55; color: #d8cbb0; }
.du-how b { color: #ffe0a0; font-size: 15px; }
.du-how em { font-style: normal; color: #ffd27a; }
.du-how-ex { position: relative; width: 300px; height: 150px; margin: 12px auto 4px; }
.du-how-ex .dc { position: absolute; left: 102px; top: 4px; }
.du-arrow { position: absolute; font-size: 12px; color: #ffd27a; white-space: nowrap; }
.du-arrow.c { left: 6px; top: 6px; }
.du-arrow.p { right: 0; top: 6px; }
.du-arrow.a { left: 104px; top: 148px; }
.du-how-foot { font-size: 12.5px; color: #b9a983; margin: 18px 0 0; }
.du-how-foot b.foe { color: #ff8a7a; }
.du-how-foot b.me { color: #ffe0a0; }
.du-howbox { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(5, 3, 2, .7); z-index: 5; }
.du-howbox .du-card { max-width: 520px; padding: 18px 22px; border: 1px solid rgba(232, 207, 143, .5); background: #120c08; box-shadow: 0 20px 50px rgba(0, 0, 0, .6); }
.du-howbox h3 { margin: 0 0 6px; font-family: var(--fell); font-weight: 400; color: #e8cf8f; font-size: 20px; }
@media (max-width: 720px) {
  .dc { width: 82px; height: 126px; }
  .dc-ab { font-size: 9.5px; }
  .du-side.theirs, .du-side.mine { padding: 2px; }
  .du-howbox .du-card { padding: 14px; max-height: 92%; overflow: auto; }
  .du-how li { font-size: 12.5px; }
  .du-state { font-size: 9.5px; }
}
/* 판 위 카드는 작아서 하는 일 글자는 빼고(드러날 때 띠로, 올리면 풍선으로) — 점수는 위(상대)·아래(나)로 카드 자리와 맞춤 */
.du-side .dc.unit .dc-ab { display: none; }
.du-side .dc.unit { height: 84px; }
.du-score { flex-direction: column; align-items: center; gap: 0; line-height: 1.05; top: 6px; }
.du-score i { display: none; }
.du-slot { height: 84px; }
@media (max-width: 720px) { .du-side .dc.unit, .du-slot { height: 46px; } }
/* 삼각형 가운데: 위에 상대 점수(붉은)·아래 내 점수(금빛)를 삼각형 안에, 누가 앞서는지는 삼각형 밑에 */
.du-mid { height: 84px; display: block; }
.du-mid svg { left: 50%; top: 0; transform: translateX(-50%); height: 62px; }
.du-score { position: absolute; left: 50%; top: 18px; transform: translateX(-50%); font-size: 17px; }
.du-state { bottom: 2px; left: 50%; transform: translateX(-50%); }
.du-fx { left: 50%; transform: translateX(-50%); top: -8px; }
@keyframes duFx { from { opacity: 0; transform: translate(-50%, 6px); } 20% { opacity: 1; transform: translateX(-50%); } to { opacity: 1; transform: translateX(-50%); } }
@media (max-width: 720px) { .du-mid { height: 70px; } .du-mid svg { height: 50px; } .du-score { top: 15px; font-size: 14px; } }

/* ── 글자 또렷하게(2026-11-15) ──
   카드의 작은 글자·숫자가 옛 활자체(IM Fell)·명조 10px대로 깨져 보였다 → 작은 글자는 고딕, 숫자는 Georgia 굵게, 최소 11px.
   글자가 있는 상자엔 filter를 걸지 않는다(흐릿해짐) — 흐리게 할 땐 opacity만 */
.duel { --du-ui: "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.dc { width: 106px; height: 156px; }
.dc-seal { width: 54px; height: 54px; }
.dc-nm { font-family: var(--du-ui); font-size: 13.5px; font-weight: 700; letter-spacing: -.01em; margin-top: 6px; }
.dc-ab { font-family: var(--du-ui); font-size: 11.5px; line-height: 1.3; font-weight: 600; margin-top: 4px; }
.dc-cost, .dc-pow { font-family: Georgia, "Times New Roman", serif; font-weight: 700; }
.dc-cost { font-size: 13px; min-width: 22px; height: 22px; line-height: 22px; }
.dc-pow { width: 28px; height: 28px; font-size: 15px; }
.du-side .dc.unit { width: 72px; height: 90px; }
.du-slot { width: 72px; height: 90px; }
.du-side .dc.unit .dc-nm { font-size: 12px; }
.du-side .dc.unit .dc-pow { width: 24px; height: 24px; font-size: 13px; }
.du-side.theirs .dc.unit { filter: none; }
.dc.hand.dim { filter: none; opacity: .45; }
.du-score { font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: 18px; }
.du-state, .du-fx, .du-cl, .du-info, .du-foe small, .du-tag, .du-sec h3 small, .du-empty, .du-opp small, .du-how li, .du-how-foot, .du-arrow { font-family: var(--du-ui); }
.du-state { font-size: 12px; font-weight: 600; }
.du-fx { font-size: 13px; font-weight: 700; }
.du-cl { font-size: 13px; }
.du-info { font-size: 14px; }
.du-turn b { font-family: Georgia, serif; font-weight: 700; }
.du-how-ex { height: 168px; }
.du-arrow.a { top: 166px; }
.du-how-foot { margin-top: 26px; }
@media (max-width: 720px) {
  .dc { width: 92px; height: 142px; }
  .dc-seal { width: 46px; height: 46px; }
  .dc-nm { font-size: 12.5px; }
  .dc-ab { font-size: 11px; }
  .du-side .dc.unit, .du-slot { width: 38px; height: 54px; }
  .du-side .dc.unit .dc-seal { width: 26px; height: 26px; }
  .du-side .dc.unit .dc-pow { width: 18px; height: 18px; font-size: 11px; }
  .du-state { font-size: 11px; }
  .du-fx { font-size: 11.5px; }
  .du-score { font-size: 15px; }
}

/* 결투 입문 — 뒤집힌 일곱 장이 차례로 펼쳐진다 */
.du-starter { max-width: 900px; margin: 0 auto; text-align: center; padding-top: 10px; }
.du-st-la { display: block; font-family: var(--black); font-weight: 400; font-size: 40px; color: #e8cf8f; }
.du-starter h3 { margin: 0 0 8px; font-family: var(--du-ui); font-size: 18px; color: #f0e2c2; }
.du-starter p { font-size: 15px; line-height: 1.7; color: #d8cbb0; margin: 6px 0 14px; }
.du-starter em { font-style: normal; color: #ffd27a; }
.du-st-cards { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 14px 0 6px; perspective: 900px; }
.dc.back { background: repeating-linear-gradient(45deg, #5d0709 0 6px, #3a0406 6px 12px); box-shadow: 0 0 0 1px #8f1013 inset, 0 0 0 4px rgba(232, 207, 143, .25) inset, 0 4px 10px rgba(0, 0, 0, .6); justify-content: center; }
.dc.back span { font-size: 34px; color: rgba(232, 207, 143, .55); }
.dc.dealt { animation: duDeal .7s cubic-bezier(.2, 1.1, .4, 1) both; }
@keyframes duDeal { from { transform: rotateY(90deg) translateY(-14px); opacity: 0; } 60% { opacity: 1; } to { transform: none; opacity: 1; } }
.du-st-err { color: #ff9a8a; font-size: 13px; min-height: 1.2em; margin: 0; }
.du-row.c { justify-content: center; }
@media (prefers-reduced-motion: reduce) { .dc.dealt { animation: none; } }
.dc-cost, .dc-pow, .du-score, .du-turn b { font-variant-numeric: lining-nums tabular-nums; }

/* 결투 입문 의식이 도는 동안 결투실은 뒤로(의식이 화면 전체) */
.duel.behind { visibility: hidden; }

/* 능력 줄 — 이름(굵게) + 때(색 띠). 때마다 색: 드러날 때 붉은 · 계속 푸른 · 매 시각 초록 · 끝에 금빛 · 쓰러지면 보라 */
.dc { height: 172px; }
.dc-fam { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 4px; font-family: var(--du-ui); }
.dc-fam b { font-size: 12px; font-weight: 800; color: #2a1d10; }
.dc-fam i { font-style: normal; font-size: 10.5px; font-weight: 700; padding: 0 5px; border-radius: 8px; line-height: 16px; color: #fff; }
.dc.foe .dc-fam b, .dc.prince .dc-fam b, .dc.shade .dc-fam b { color: #f0e2c2; }
.dc-ab { margin-top: 3px; font-weight: 500; color: #4a2e14; }
.dc.foe .dc-ab { color: #f3c9bf; }
.dc.prince .dc-ab { color: #efe0c4; }
.w-rev i, i.w-rev, .dc-fam.w-rev i { background: #a8231d; }
.dc-fam.w-on i { background: #2c5f8a; }
.dc-fam.w-tick i { background: #2e7a4a; }
.dc-fam.w-end i { background: #a07614; }
.dc-fam.w-die i { background: #6b3fa0; }
.du-how .w-rev { color: #ff8a7a; } .du-how .w-on { color: #8cc4ff; } .du-how .w-tick { color: #8fe0a8; } .du-how .w-end { color: #ffd27a; } .du-how .w-die { color: #c9a6ff; }
/* 판 위 작은 카드 — 능력 이름만, 상처·면역 표시 */
.du-side .dc.unit { height: 98px; }
.du-slot { height: 98px; }
.du-side .dc.unit .dc-fam { margin-top: 2px; }
.du-side .dc.unit .dc-fam i { display: none; }
.du-side .dc.unit .dc-fam b { font-size: 11px; }
.dc-wd { position: absolute; left: 3px; bottom: 3px; font: 700 11px/16px Georgia, serif; padding: 0 4px; border-radius: 8px; background: #6b0a0c; color: #ffd0c8; }
.dc-imm { position: absolute; left: 3px; top: 3px; font-size: 12px; color: #8cc4ff; text-shadow: 0 0 4px #000; }
.du-side .dc.unit .dc-cost { display: none; }
.du-how-ex { height: 186px; }
.du-arrow.a { top: 184px; }
@media (max-width: 720px) {
  .dc { height: 164px; }
  .du-side .dc.unit, .du-slot { height: 54px; }
  .du-side .dc.unit .dc-fam { display: none; }
}
.dc-fam { white-space: nowrap; }
@media (max-width: 720px) { .dc-fam { gap: 3px; } .dc-fam b { font-size: 11px; } .dc-fam i { font-size: 9.5px; padding: 0 4px; line-height: 15px; } .dc-ab { font-size: 10.5px; } }

/* 상대의 실력 — 네 단계, 고른 것은 그 색으로 */
.du-lvs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.du-lvb { text-align: left; background: rgba(0, 0, 0, .3); border: 1px solid rgba(201, 162, 74, .25); color: #e9dcc0; padding: 10px 12px; border-radius: 3px; cursor: pointer; font-family: var(--du-ui); display: flex; flex-direction: column; gap: 2px; }
.du-lvb b { font-size: 15px; }
.du-lvb i { font-family: var(--fell); font-size: 13px; opacity: .7; }
.du-lvb small { font-size: 12px; color: #b9a983; line-height: 1.4; }
.du-lvb:hover { background: rgba(232, 207, 143, .08); }
.du-lvb.on { border-color: var(--lc); box-shadow: 0 0 0 1px var(--lc) inset, 0 0 14px color-mix(in srgb, var(--lc) 30%, transparent); background: color-mix(in srgb, var(--lc) 12%, transparent); }
.du-lvb.on b { color: var(--lc); }
.lv0 { --lc: #8fe0a8; } .lv1 { --lc: #e8cf8f; } .lv2 { --lc: #ff9a5a; } .lv3 { --lc: #ff3b4e; }
.lvt { font-style: normal; font-family: var(--du-ui); font-size: 12px; font-weight: 700; color: var(--lc); border: 1px solid var(--lc); padding: 1px 7px; border-radius: 10px; }
.du-foe .lvt { margin-left: -4px; }
.du-k .lvt { margin-left: 2px; }
@media (max-width: 720px) { .du-lvs { grid-template-columns: repeat(2, 1fr); } }

/* 온라인 대결 */
.du-net { padding: 14px 16px; border: 1px solid rgba(232, 207, 143, .35); background: linear-gradient(180deg, rgba(143, 16, 19, .18), rgba(0, 0, 0, .2)); }
.du-net .du-row { align-items: center; }
.du-join { display: inline-flex; gap: 6px; margin-left: auto; }
.du-join input { width: 104px; font: 700 15px Georgia, serif; letter-spacing: .2em; text-transform: uppercase; text-align: center; background: #120c08; color: #ffe0a0; border: 1px solid rgba(232, 207, 143, .45); padding: 6px 8px; border-radius: 2px; }
.du-or { margin: 6px 0 -6px; font-family: var(--fell); font-weight: 400; font-size: 17px; color: #a8987a; }
.du-wait { max-width: 560px; margin: 30px auto 0; text-align: center; }
.du-wait h3 { margin: 0 0 8px; font-family: var(--du-ui); font-size: 18px; color: #f0e2c2; }
.du-wait p { font-size: 14.5px; line-height: 1.7; color: #d8cbb0; }
.du-wait em { font-style: normal; color: #ffd27a; }
.du-code { font: 700 52px Georgia, serif; letter-spacing: .3em; color: #ffe0a0; margin: 14px 0 6px; text-shadow: 0 0 18px rgba(255, 170, 60, .35); font-variant-numeric: lining-nums; padding-left: .3em; }
.du-secs { font: 700 22px Georgia, serif; color: #e8cf8f; margin: 4px 0 !important; }
.du-seek { width: 90px; margin: 10px auto 0; }
.du-seek svg { width: 100%; fill: none; stroke: rgba(200, 30, 30, .85); stroke-width: 3; animation: duSeek 2.4s linear infinite; transform-origin: 50% 60%; filter: drop-shadow(0 0 6px rgba(220, 30, 30, .5)); }
@keyframes duSeek { to { transform: rotate(360deg); } }
.lvt.net { --lc: #8cc4ff; }
.du-ready { font-style: normal; font-family: var(--du-ui); font-size: 12px; color: #8fe0a8; }
.du-timer { font: 700 14px Georgia, serif; color: #d8c79a; font-variant-numeric: lining-nums tabular-nums; }
.du-timer.warn { color: #ff8a7a; }
.du-game.locked .dc.hand { opacity: .55; cursor: default; }
.du-rw { color: #ffe0a0 !important; font-size: 14px !important; margin-top: 8px !important; }
@media (prefers-reduced-motion: reduce) { .du-seek svg { animation: none; } }
@media (max-width: 720px) { .du-join { margin-left: 0; } .du-code { font-size: 40px; } }
