/* DUO 공통 증강 카드 (2026-11-16) — js/common/aug-kit.js 와 짝 */
.ak-common { --rc: #9aa3ae; } .ak-rare { --rc: #4d8fe8; } .ak-epic { --rc: #a66bff; } .ak-legend { --rc: #f2b02a; }

.ak-pick { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: center; justify-content: center; padding: 16px; background: radial-gradient(ellipse at center, rgba(24, 20, 44, .82), rgba(5, 4, 10, .93)); backdrop-filter: blur(3px); font-family: inherit; }
.ak-pick[hidden] { display: none; }
.ak-pick-box { width: min(100%, 880px); max-height: calc(100vh - 32px); overflow: auto; box-sizing: border-box; padding: 18px 18px 16px; background: #191624; border-radius: 18px; box-shadow: 0 0 0 2px #2c2440, 0 24px 60px rgba(0, 0, 0, .6); }
.ak-pick-title { font-size: 22px; font-weight: 900; color: #ffd36a; text-align: center; letter-spacing: -.02em; }
.ak-pick-sub { text-align: center; font-size: 13px; color: #b9b0cc; margin-top: 4px; }
.ak-pick-bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .1); margin: 12px auto 0; max-width: 420px; overflow: hidden; }
.ak-pick-bar[hidden] { display: none; }
.ak-pick-bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #ffd36a, #ff9f43); transition: width .2s linear; }
.ak-pick-cards { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 14px; margin: 16px 0 14px; }
.ak-pick-foot { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; color: #b9b0cc; font-size: 13px; }
.ak-pick-foot button { background: #2c2440; color: #fff; border: 1px solid #4b3f66; border-radius: 10px; padding: 8px 14px; font-weight: 800; cursor: pointer; font: inherit; font-weight: 800; }
.ak-pick-foot button:disabled { opacity: .45; cursor: default; }
.ak-pick-foot button[hidden] { display: none; }

.ak-card { position: relative; display: flex; flex-direction: column; text-align: left; padding: 0 0 12px; border: 0; border-radius: 14px; overflow: hidden; cursor: pointer; background: #f4efe6; color: #1c1622; font: inherit; box-shadow: 0 0 0 3px var(--rc), 0 10px 0 -2px rgba(0, 0, 0, .35); animation: akDeal .5s cubic-bezier(.2, .9, .3, 1.25) both; transition: transform .14s, box-shadow .14s; }
.ak-card:hover, .ak-card:focus-visible { transform: translateY(-6px); outline: none; }
.ak-card.ak-epic { box-shadow: 0 0 0 3px var(--rc), 0 0 22px rgba(166, 107, 255, .5), 0 10px 0 -2px rgba(0, 0, 0, .35); }
.ak-card.ak-legend { box-shadow: 0 0 0 3px var(--rc), 0 0 28px rgba(242, 176, 42, .7), 0 10px 0 -2px rgba(0, 0, 0, .35); }
.ak-card.ak-legend::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 246, 200, .55) 45%, transparent 60%); background-size: 250% 100%; animation: akShine 2.4s linear infinite; pointer-events: none; }
.ak-card.chosen { transform: translateY(-10px) scale(1.04); box-shadow: 0 0 0 4px #fff, 0 0 34px var(--rc); }
.ak-card:disabled:not(.chosen) { opacity: .4; filter: grayscale(.6); }
.ak-card .art { aspect-ratio: 16 / 10; overflow: hidden; }
.ak-card .art svg { width: 100%; height: 100%; display: block; }
.ak-card .rar { position: absolute; top: 8px; left: 8px; font-size: 11px; font-weight: 900; padding: 2px 8px; border-radius: 99px; color: #fff; background: var(--rc); }
.ak-card .nm { font-size: 17px; font-weight: 900; padding: 10px 12px 2px; }
.ak-card .kind { font-size: 11px; font-weight: 800; color: #7a6c86; padding: 0 12px; }
.ak-card .ds { font-size: 13px; line-height: 1.45; padding: 6px 12px 0; color: #3a3044; }
.ak-card .syn { font-size: 12px; font-weight: 800; color: #8a4fd8; padding: 6px 12px 0; }
@keyframes akDeal { from { opacity: 0; transform: translateY(26px) rotate(-3deg) scale(.92); } }
@keyframes akShine { from { background-position: 150% 0; } to { background-position: -100% 0; } }

.ak-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 3px; border-radius: 99px; background: #241d33; box-shadow: inset 0 0 0 1.5px var(--rc); font: inherit; font-size: 12px; font-weight: 800; color: #f1eaff; max-width: 100%; border: 0; position: relative; }
.ak-chip .art { width: 26px; height: 26px; border-radius: 50%; overflow: hidden; flex: none; }
.ak-chip .art svg { width: 100%; height: 100%; display: block; }
.ak-chip .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ak-chip .ch { min-width: 18px; height: 18px; border-radius: 9px; background: var(--rc); color: #fff; font-size: 11px; display: inline-flex; align-items: center; justify-content: center; padding: 0 4px; }
.ak-chip.usable { cursor: pointer; transition: transform .12s, box-shadow .12s; }
.ak-chip.usable:hover:not(:disabled) { transform: translateY(-2px); box-shadow: inset 0 0 0 2px var(--rc), 0 4px 12px rgba(0, 0, 0, .35); }
.ak-chip.armed { box-shadow: inset 0 0 0 2px #fff, 0 0 0 3px var(--rc), 0 0 16px var(--rc); animation: akPulse 1s ease-in-out infinite; }
.ak-chip.spent, .ak-chip:disabled { opacity: .45; cursor: default; }
@keyframes akPulse { 50% { transform: translateY(-2px); } }

.ak-legend-banner { position: fixed; left: 50%; top: 30%; transform: translate(-50%, -50%); z-index: 9500; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 30px 16px; border-radius: 18px; background: radial-gradient(circle, #5a3606, #1d1003); color: #ffe7a8; box-shadow: 0 0 0 3px #f2b02a, 0 0 60px rgba(242, 176, 42, .7); animation: akLegend 2.2s ease both; pointer-events: none; }
.ak-legend-banner .art { width: 84px; height: 84px; border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 2px #f2b02a; }
.ak-legend-banner .art svg { width: 100%; height: 100%; }
.ak-legend-banner b { font-size: 12px; letter-spacing: .2em; color: #f2b02a; }
.ak-legend-banner span:last-child { font-size: 22px; font-weight: 900; }
@keyframes akLegend { 0% { opacity: 0; transform: translate(-50%, -40%) scale(.7); } 15% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); } 25% { transform: translate(-50%, -50%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -58%); } }

.ak-burst { position: fixed; width: 0; height: 0; z-index: 9400; pointer-events: none; }
.ak-burst i { position: absolute; width: 8px; height: 8px; margin: -4px; border-radius: 2px; animation: akBurst .7s cubic-bezier(.2, .8, .3, 1) forwards; }
.ak-burst b { position: absolute; width: 20px; height: 20px; margin: -10px; border-radius: 50%; border: 3px solid; animation: akRing .6s ease-out forwards; }
@keyframes akBurst { to { transform: translate(var(--dx), var(--dy)) rotate(200deg) scale(.4); opacity: 0; } }
@keyframes akRing { to { transform: scale(5); opacity: 0; } }

@media (max-width: 640px) {
  .ak-pick { align-items: flex-end; padding: 0; }
  .ak-pick-box { border-radius: 18px 18px 0 0; padding: 14px 12px 12px; max-height: 92vh; }
  .ak-pick-cards { grid-template-columns: 1fr; gap: 10px; }
  .ak-card { flex-direction: row; flex-wrap: wrap; padding: 0 0 10px; }
  .ak-card .art { width: 104px; aspect-ratio: 1; flex: none; }
  .ak-card .rar { top: 6px; left: 6px; }
  .ak-card .nm { flex: 1; min-width: 0; align-self: center; font-size: 16px; }
  .ak-card .kind { width: 100%; padding-top: 6px; } .ak-card .ds, .ak-card .syn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .ak-card, .ak-legend-banner, .ak-chip.armed { animation: none; } .ak-card.ak-legend::after { animation: none; } }
