/* v0.5.0 스타일: 성 복원 판·연출, ★3 조건 줄, 웨이브 한 창, 끝없는 행군·정예, 갑옷 외형, 필드 연출 */
/* 성 복원 판(지도)·연출(창) */
.castleBox { background: #fff; border: 2px solid var(--line); border-radius: 16px; overflow: hidden; }
.castleScene { position: relative; line-height: 0; }
.castleSvg { width: 100%; height: auto; display: block; }
.castleSvg .part.off { opacity: .85; }
.castleSvg .part.off image, .castleSvg .part.off rect, .castleSvg .part.off circle { filter: grayscale(1); }
.castleSvg .part.on .wave { animation: flagWave 1.4s ease-in-out infinite; transform-box: fill-box; transform-origin: 0 50%; }
@keyframes flagWave { 50% { transform: skewY(-8deg) scaleX(.92); } }
.castleSvg .flyImg { animation: flyBob 2.6s ease-in-out infinite; } .castleSvg .starImg { animation: starPulse 1.8s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 50%; }
@keyframes flyBob { 50% { transform: translateY(-5px) rotate(-3deg); } } @keyframes starPulse { 50% { transform: scale(1.18); } }
.castleSvg .part.new { animation: partPop 1.2s cubic-bezier(.2, 1.5, .4, 1) both; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes partPop { 0% { transform: scale(.1) translateY(30px); opacity: 0; filter: brightness(3); } 55% { transform: scale(1.18); opacity: 1; filter: brightness(1.6); } 80% { transform: scale(.95); } 100% { transform: none; filter: none; } }
.castleSteps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; padding: 4px 4px 6px; text-align: center; }
.castleSteps span { font-size: 10.5px; letter-spacing: -.6px; font-weight: 800; color: #9aa5bb; white-space: nowrap; overflow: hidden; text-overflow: clip; } .castleSteps span.on { color: #2f8f6a; }
.cere { text-align: center; margin: 4px 0 8px; animation: cereIn .6s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes cereIn { from { transform: scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }
.cereTitle { font-size: 26px; font-weight: 900; color: #c2552c; letter-spacing: 1px; text-shadow: 0 2px 0 #fff, 0 4px 0 rgba(194,85,44,.25); animation: titleBeat 1s ease-in-out 3; }
@keyframes titleBeat { 50% { transform: scale(1.12); } }
.castleScene.big { border: 3px solid #ffc94d; border-radius: 14px; overflow: hidden; margin: 6px 0; box-shadow: 0 0 0 4px rgba(255,201,77,.35); }
.cereName { font-size: 18px; margin: 2px 0; } .cereName .cn { display: inline-block; background: #ffc94d; border-radius: 999px; padding: 0 10px; font-weight: 900; font-size: 14px; } .cereName b { font-size: 22px; color: #c2255c; }
.cereSay { color: var(--ink2); margin: 2px 0 !important; font-weight: 700; }
.cereCount { font-size: 17px; font-weight: 800; color: #2f5fb8; } .cereCount b { font-size: 30px; color: #c2255c; font-variant-numeric: tabular-nums; } .cereCount small { font-size: 13px; color: var(--ink2); }
.spkWrap { position: absolute; inset: 0; pointer-events: none; }
.spk { position: absolute; left: 50%; top: 52%; width: 10px; height: 10px; margin: -5px; background: radial-gradient(#fff 15%, #ffe066 45%, transparent 70%); border-radius: 50%; opacity: 0; animation: spk 1.5s ease-out var(--d) 2 both; }
@keyframes spk { 0% { opacity: 1; transform: rotate(var(--a)) translateY(0) scale(.6); } 100% { opacity: 0; transform: rotate(var(--a)) translateY(-150px) scale(1.6); } }
.cnt { font-variant-numeric: tabular-nums; }
/* ★3 조건 줄 */
#star3Bar { flex: none; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; justify-content: center; padding: 2px 8px 3px; background: rgba(255,255,255,.6); font-size: 12px; font-weight: 800; color: var(--ink2); min-height: 26px; }
#star3Bar .s3 { background: #fff3bf; border: 2px solid #f0c040; color: #7a5200; border-radius: 999px; padding: 0 8px; line-height: 20px; }
#star3Bar .c { background: #fff; border: 2px solid var(--line); border-radius: 999px; padding: 0 8px; line-height: 20px; } #star3Bar .c.ok { background: #d8f7ec; border-color: var(--mint); color: #20503f; }
#star3Bar .c.need { border-color: #ff9f40; background: #fff4e6; color: #9a4a00; animation: needBlink 1.2s ease-in-out infinite; }
@keyframes needBlink { 50% { box-shadow: 0 0 0 3px rgba(255,159,64,.4); } }
#star3Bar .eliteTag { background: #e03131; color: #fff; border-radius: 999px; padding: 0 8px; line-height: 20px; }
.s3info { background: #fff8e1; border: 2px solid #ffc94d; border-radius: 12px; padding: 6px 10px; margin: 6px 0; font-size: 13px; color: #6b4a00; }
.s3info b { color: #c2552c; }
/* 웨이브 창(보상 + 보급 천막 한 창) */
.wave h4 { margin: 8px 0 4px; font-size: 14px; color: #2f5fb8; } .wave h4 small { font-weight: 600; color: var(--ink2); }
.wave .rw { min-height: 50px; padding: 4px 8px; } .wave .rw.picked { background: #d8f7ec; border-color: var(--mint); } .wave .rw.dim { opacity: .45; }
.shopGrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.shopGrid .shopIt { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 0; min-height: 84px; padding: 4px 2px; }
.shopGrid .shopIt b { font-size: 12px; line-height: 1.2; } .shopGrid .shopIt small { display: none; }
.shopGrid .shopIt img { width: 34px; height: 34px; object-fit: contain; } .shopGrid .shopIt .em { font-size: 26px; }
.shopGrid .shopIt .pr { font-weight: 800; font-size: 14px; color: #2f5fb8; display: inline-flex; align-items: center; gap: 2px; } .shopGrid .shopIt .pr img { width: 16px; height: 16px; }
.shopGrid .shopIt.sold { opacity: .4; } .shopGrid .shopIt[aria-disabled="true"] .pr { color: #b0b6c6; }
.wave .ctaRow { display: grid; grid-template-columns: 1fr; gap: 6px; margin-top: 10px; }
.wave .ctaRow small { display: block; font-size: 12px; font-weight: 600; }
.wave .rewardNote { text-align: center; font-size: 12px; color: var(--ink2); margin: 2px 0; }
/* 지도: 끝없는 행군·정예 */
.endlessBtn { width: 100%; margin-top: 8px; text-align: center; } .endlessBtn small { display: block; font-size: 12px; font-weight: 600; }
.endlessBtn[aria-disabled="true"] { background: #e3e8f2; color: #6b7893; box-shadow: none; }
.eliteRow { display: flex; gap: 6px; align-items: center; margin-top: 8px; }
.eliteRow .chip { flex: 1; min-height: 48px; justify-content: center; } .eliteRow .chip.on { border-color: #e03131; background: #ffe3e3; }
.eliteRow .chip.locked { opacity: .75; } .eliteRow small { font-size: 12px; color: var(--ink2); }
.stageBtn .eb { font-size: 10px; color: #e03131; line-height: 1; }
/* 확장권: 갑옷 외형 */
.uw.arm img.c { filter: var(--af) drop-shadow(0 0 1px #5b3d2e) drop-shadow(0 0 4px var(--ag)) drop-shadow(0 0 9px var(--ag)) !important; }
.uw.arm::before { content: ''; position: absolute; left: -10%; right: -10%; bottom: -6%; height: 34%; border-radius: 50%; background: radial-gradient(var(--ag), transparent 70%); opacity: .75; animation: armPulse 1.8s ease-in-out infinite; pointer-events: none; }
@keyframes armPulse { 50% { opacity: .35; transform: scaleX(1.12); } }
.seat.arm { border-color: var(--ag) !important; box-shadow: inset 0 0 12px -2px var(--ag), 0 0 8px -1px var(--ag); }
.swatch { display: inline-block; width: 32px; height: 32px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 8px var(--ag), 0 0 0 2px var(--ag); background: var(--ag); margin: 0 4px; }
.armPv .dexPic.big { width: 84px; height: 84px; } .armPv .dexPic img.c { filter: var(--af) drop-shadow(0 0 6px var(--ag)); }
.shelfCard .tag { display: inline-block; background: #e03131; color: #fff; border-radius: 999px; font-size: 11px; font-weight: 800; padding: 0 8px; margin-left: 6px; vertical-align: middle; }
.paywallNote { background: #f6f4ff; border: 2px dashed var(--lilac); border-radius: 12px; padding: 6px 10px; margin: 8px 0; font-size: 13px; text-align: center; }
.paywallNote .sec { width: 100%; margin-top: 6px; min-height: 44px; }
/* 필드 연출 */
#field.shake { animation: fieldShake .32s ease-out; }
@keyframes fieldShake { 0% { transform: translate(0); } 20% { transform: translate(-5px, 2px); } 40% { transform: translate(5px, -2px); } 60% { transform: translate(-3px, 1px); } 100% { transform: none; } }
#field::after { content: ''; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 0 rgba(255,60,60,0); transition: box-shadow .3s; }
#field.hurt::after { box-shadow: inset 0 0 40px 6px rgba(255,60,60,.55); transition: none; }
#waveBig { position: absolute; left: 0; right: 0; top: 28%; text-align: center; pointer-events: none; font-weight: 900; font-size: 44px; color: #fff; -webkit-text-stroke: 2px #2f5fb8; paint-order: stroke fill; text-shadow: 0 4px 0 rgba(47,95,184,.45); opacity: 0; }
#waveBig small { display: block; font-size: 16px; -webkit-text-stroke: 1px #2f5fb8; }
#waveBig.go { animation: waveBig 1.5s ease-out both; } #waveBig.boss { color: #ffe3e3; -webkit-text-stroke-color: #c92a2a; }
@keyframes waveBig { 0% { opacity: 0; transform: translateX(-60%) scale(.8); } 18% { opacity: 1; transform: none; } 70% { opacity: 1; transform: scale(1.04); } 100% { opacity: 0; transform: translateX(40%) scale(1); } }
.hintLink { color: #7a3fc8; font-weight: 800; }
.castleSteps span.on::before { content: "✓ "; }
.eliteRow .chip { text-align: left; } .eliteRow .eTxt { display: block; line-height: 1.2; } .eliteRow .eTxt small { display: block; }

.uw.arm::after { content: '✦'; position: absolute; right: -5px; top: -5px; color: var(--ag); font-size: 15px; text-shadow: 0 0 5px #fff; animation: twinkle 1.4s ease-in-out infinite; pointer-events: none; }
@keyframes twinkle { 0%, 100% { opacity: .2; transform: scale(.6) rotate(0); } 50% { opacity: 1; transform: scale(1.2) rotate(30deg); } }

/* v0.6.0: 갑옷 외형 미리 보기(지도), 정예 보상 미리보기, 응원 표시 */
.armPeek { display: flex; gap: 8px; margin: 6px 0 4px; }
.armBtn { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 76px; padding: 6px 4px; border-radius: 14px; border: 2px solid var(--ag); background: #fff; cursor: pointer; }
.armBtn .dexPic { width: 56px; height: 56px; display: block; }
.armBtn .dexPic img.c { width: 100%; height: 100%; object-fit: contain; filter: var(--af) drop-shadow(0 0 4px var(--ag)) drop-shadow(0 0 8px var(--ag)); }
.armBtn small { font-size: 12px; color: var(--ink2); font-weight: 700; }
.eliteNote small, .aidNote small { font-size: 12px; }
.eliteTag.aid { background: #d3f9d8; color: #2b8a3e; border-color: #8ce99a; }
.s3info .c.need, #star3Bar .c.need { color: #c2255c; }
