/* 증강 오목 (2026-11-16) — 오목 화면 위에 얹는 스타일. 일반·초딩 모드에선 이 요소들이 숨겨져 있음 */
.r-common { --rc: #9aa3ae; } .r-rare { --rc: #4d8fe8; } .r-epic { --rc: #a66bff; } .r-legend { --rc: #f2b02a; }
.om-special-badge.aug { background: linear-gradient(90deg, #3b2a5c, #5b2d8f); color: #ffe7a8; border-color: #a66bff; }
.om-aug-info { border-color: rgba(166, 107, 255, .45); background: linear-gradient(180deg, rgba(91, 45, 143, .18), rgba(20, 16, 30, .3)); }
.om-aug-info .om-special-info-title { color: #e7d3ff; }

/* ---- 고르기 창 ---- */
.oa-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(40, 20, 70, .78), rgba(5, 4, 10, .92)); backdrop-filter: blur(3px); }
.oa-pick[hidden] { display: none; }
.oa-pick-box { width: min(100%, 880px); max-height: calc(100vh - 32px); overflow: auto; box-sizing: border-box; padding: 18px 18px 16px; background: #1b1626; border-radius: 18px; box-shadow: 0 0 0 2px #2c2440, 0 0 0 4px #a66bff55, 0 24px 60px rgba(0, 0, 0, .6); }
.oa-pick-title { font-size: 22px; font-weight: 900; color: #ffd36a; text-align: center; letter-spacing: -.02em; }
.oa-pick-sub { text-align: center; font-size: 13px; color: #b9b0cc; margin-top: 4px; }
.oa-pick-bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .1); margin: 12px auto 0; max-width: 420px; overflow: hidden; }
.oa-pick-bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #ffd36a, #ff9f43); transition: width .2s linear; }
.oa-pick-cards { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 14px; margin: 16px 0 14px; }
.oa-pick-foot { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; color: #b9b0cc; font-size: 13px; }
.oa-pick-foot button { background: #2c2440; color: #fff; border: 1px solid #4b3f66; border-radius: 10px; padding: 8px 14px; font-weight: 800; cursor: pointer; }
.oa-pick-foot button:disabled { opacity: .45; cursor: default; }
.oa-pick-wait { text-align: center; color: #d9cdf0; font-weight: 700; padding: 6px 0 0; }
.oa-pick-wait[hidden] { display: none; }

.oa-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: oaDeal .5s cubic-bezier(.2, .9, .3, 1.25) both; transition: transform .14s, box-shadow .14s; }
.oa-card:hover, .oa-card:focus-visible { transform: translateY(-6px); outline: none; }
.oa-card.r-epic { box-shadow: 0 0 0 3px var(--rc), 0 0 22px rgba(166, 107, 255, .55), 0 10px 0 -2px rgba(0, 0, 0, .35); }
.oa-card.r-legend { box-shadow: 0 0 0 3px var(--rc), 0 0 30px rgba(242, 176, 42, .75), 0 10px 0 -2px rgba(0, 0, 0, .35); }
.oa-card.r-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: oaShine 2.4s linear infinite; pointer-events: none; }
.oa-card.chosen { transform: translateY(-10px) scale(1.04); box-shadow: 0 0 0 4px #fff, 0 0 34px var(--rc); }
.oa-card:disabled:not(.chosen) { opacity: .4; filter: grayscale(.6); }
.oa-card .art { aspect-ratio: 16 / 10; overflow: hidden; }
.oa-card .art svg { width: 100%; height: 100%; display: block; }
.oa-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); }
.oa-card .nm { font-size: 17px; font-weight: 900; padding: 10px 12px 2px; }
.oa-card .kind { font-size: 11px; font-weight: 800; color: #7a6c86; padding: 0 12px; }
.oa-card .ds { font-size: 13px; line-height: 1.45; padding: 6px 12px 0; color: #3a3044; }
@keyframes oaDeal { from { opacity: 0; transform: translateY(26px) rotate(-3deg) scale(.92); } }
@keyframes oaShine { from { background-position: 150% 0; } to { background-position: -100% 0; } }

/* ---- 게임 중 ---- */
.oa-wait { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); z-index: 5; background: rgba(30, 18, 50, .92); color: #ffe7a8; font-weight: 800; font-size: 13px; padding: 7px 14px; border-radius: 99px; box-shadow: 0 0 0 1px #a66bff, 0 6px 18px rgba(0, 0, 0, .4); white-space: nowrap; }
.oa-wait[hidden] { display: none; }
.oa-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin: 10px auto 0; max-width: 640px; padding: 10px 12px; border-radius: 14px; background: rgba(20, 16, 30, .55); box-shadow: inset 0 0 0 1px rgba(166, 107, 255, .3); box-sizing: border-box; }
.oa-bar[hidden] { display: none; }
.oa-h { font-size: 11px; font-weight: 900; color: #c8b8e6; margin-bottom: 6px; letter-spacing: .02em; }
.oa-side.opp .oa-h { color: #ffb3a8; }
.oa-chips { display: flex; flex-wrap: wrap; gap: 6px; min-height: 30px; }
.oa-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-size: 12px; font-weight: 800; color: #f1eaff; max-width: 100%; }
.oa-chip .art { width: 24px; height: 24px; border-radius: 50%; overflow: hidden; flex: none; }
.oa-chip .art svg { width: 100%; height: 100%; display: block; }
.oa-chip .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oa-empty { font-size: 12px; color: #8d82a3; align-self: center; }
.oa-log { grid-column: 1 / -1; list-style: none; margin: 2px 0 0; padding: 6px 0 0; border-top: 1px dashed rgba(255, 255, 255, .12); font-size: 12px; color: #cfc6e0; max-height: 64px; overflow: auto; }
.oa-log:empty { display: none; }
.oa-log li { padding: 1px 0; }
.oa-log li:first-child { color: #ffe7a8; font-weight: 700; }
.oa-legend { grid-column: 1 / -1; display: flex; gap: 12px; font-size: 11px; color: #cfc6e0; }
.oa-legend[hidden] { display: none; }
.oa-legend .k::before { content: ""; display: inline-block; width: 9px; height: 9px; border: 2px solid currentColor; margin-right: 4px; vertical-align: -1px; }
.oa-legend .def { color: #ff7a85; } .oa-legend .atk { color: #2ee59d; } .oa-legend .focus { color: #ffd84d; }

/* 전설 증강 띠 */
.oa-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: oaLegend 2.2s ease both; pointer-events: none; }
.oa-legend-banner .art { width: 84px; height: 84px; border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 2px #f2b02a; }
.oa-legend-banner .art svg { width: 100%; height: 100%; }
.oa-legend-banner b { font-size: 12px; letter-spacing: .2em; color: #f2b02a; }
.oa-legend-banner span:last-child { font-size: 22px; font-weight: 900; }
@keyframes oaLegend { 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%); } }

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