/* 일관 여백 모션 시안 — Aceternity UI 무료 컴포넌트(라이선스: 고객 납품 최종물 허용)를 순수 CSS/JS 로 옮김.
   색은 일관 토큰(navy #051c34 · gold #d9b86d · line #dee3e8). 흰 구역 배경 뒤(z-index -1)에만 깔고 글·버튼 위로 오지 않는다. */
.afx-host { isolation: isolate; }
.afx-host.afx-pos { position: relative; }
.afx-layer { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }

/* 1) 리플 격자 — background-ripple-effect */
.afx-ripple { -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 20%, transparent 75%); }
.afx-ripple .afx-grid { display: grid; margin-inline: auto; }
.afx-ripple .afx-cell { border: .5px solid #dee3e8; background: #f6f7f8; opacity: .4; transition: opacity .15s, background-color .3s; }
.afx-ripple .afx-cell.is-hover { opacity: .9; background: #e5edf5; }
.afx-ripple .afx-cell.is-ripple { animation: afx-cell-ripple var(--duration, 300ms) ease-out var(--delay, 0ms) none; }
@keyframes afx-cell-ripple { 0% { opacity: .4; } 35% { opacity: .95; background: rgba(217,184,109,.35); } 100% { opacity: .4; } }

/* 3) 스포트라이트 — spotlight-new */
.afx-spot .afx-spot-side { position: absolute; top: 0; width: 100%; height: 100%; animation: afx-spot-l 7s ease-in-out infinite alternate; }
.afx-spot .afx-spot-side.r { animation-name: afx-spot-r; }
.afx-spot .afx-beam { position: absolute; top: 0; }
.afx-spot .afx-spot-side.l .afx-beam { left: 0; transform-origin: top left; }
.afx-spot .afx-spot-side.r .afx-beam { right: 0; transform-origin: top right; }
@keyframes afx-spot-l { from { transform: translateX(0); } to { transform: translateX(100px); } }
@keyframes afx-spot-r { from { transform: translateX(0); } to { transform: translateX(-100px); } }
.afx-spot { animation: afx-fadein 1.5s ease both; }
@keyframes afx-fadein { from { opacity: 0; } to { opacity: 1; } }

/* 5) 유성 — meteors */
.afx-meteor { position: absolute; top: -40px; width: 2px; height: 2px; border-radius: 9999px; background: #2d6992; box-shadow: 0 0 0 1px #ffffff10; transform: rotate(215deg); animation: afx-meteor linear infinite; }
.afx-meteor::before { content: ""; position: absolute; top: 50%; width: 60px; height: 1px; transform: translateY(-50%); background: linear-gradient(to right, rgba(45,105,146,.55), transparent); }
@keyframes afx-meteor { 0% { transform: rotate(215deg) translateX(0); opacity: 1; } 70% { opacity: 1; } 100% { transform: rotate(215deg) translateX(-900px); opacity: 0; } }

/* 6) 격자·점 배경 — grid-and-dot-backgrounds (정지) */
.afx-gridbg { background-size: 40px 40px; background-image: linear-gradient(to right, #e6eaee 1px, transparent 1px), linear-gradient(to bottom, #e6eaee 1px, transparent 1px);
  -webkit-mask-image: radial-gradient(ellipse at center, transparent 20%, #000 80%); mask-image: radial-gradient(ellipse at center, transparent 20%, #000 80%); }

/* 7) 오로라 — aurora-background. 원본은 invert 로 색을 뒤집어 무지개처럼 보인다 → 뒤집기 없이 차분한 남청·하늘·회청 3색만 */
.afx-aurora .afx-aurora-in { position: absolute; inset: -10px; opacity: .55; filter: blur(14px); will-change: transform;
  --aurora: repeating-linear-gradient(100deg, #b9cfe0 10%, #dfe7ef 15%, #9fb9cf 20%, #e8edf2 25%, #b9cfe0 30%);
  --white-gradient: repeating-linear-gradient(100deg, #fff 0%, #fff 7%, transparent 10%, transparent 12%, #fff 16%);
  background-image: var(--white-gradient), var(--aurora); background-size: 300%, 200%; background-position: 50% 50%, 50% 50%;
  -webkit-mask-image: radial-gradient(ellipse at 100% 0%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse at 100% 0%, #000 10%, transparent 70%); }
.afx-aurora .afx-aurora-in::after { content: ""; position: absolute; inset: 0; background-image: var(--white-gradient), var(--aurora); background-size: 200%, 100%;
  background-attachment: fixed; mix-blend-mode: multiply; opacity: .6; animation: afx-aurora 60s linear infinite; }
@keyframes afx-aurora { from { background-position: 50% 50%, 50% 50%; } to { background-position: 350% 50%, 350% 50%; } }

/* 10~12) 반짝이 입자·물결·소용돌이 — canvas */
.afx-sparkles canvas, .afx-waves canvas, .afx-vortex canvas { display: block; width: 100%; height: 100%; }
.afx-waves, .afx-vortex { -webkit-mask-image: linear-gradient(90deg, #000, transparent 30%, transparent 70%, #000); mask-image: linear-gradient(90deg, #000, transparent 30%, transparent 70%, #000); }

/* 13) 색 덩어리 — background-gradient-animation (흰 바탕용으로 옅게) */
.afx-blobs-in { position: absolute; inset: 0; filter: blur(60px); opacity: .32; --size: 70%; }
.afx-blobs-in i { position: absolute; width: var(--size); height: var(--size); top: calc(50% - var(--size) / 2); left: calc(50% - var(--size) / 2); mix-blend-mode: multiply; }
.afx-blobs-in .b1 { background: radial-gradient(circle, rgba(45,105,146,.8) 0, rgba(45,105,146,0) 50%) no-repeat; animation: afx-vert 30s ease infinite; }
.afx-blobs-in .b2 { background: radial-gradient(circle, rgba(217,184,109,.8) 0, rgba(217,184,109,0) 50%) no-repeat; transform-origin: calc(50% - 400px); animation: afx-circle 20s reverse infinite; }
.afx-blobs-in .b3 { background: radial-gradient(circle, rgba(156,195,220,.8) 0, rgba(156,195,220,0) 50%) no-repeat; transform-origin: calc(50% + 400px); animation: afx-circle 40s linear infinite; }
.afx-blobs-in .b4 { background: radial-gradient(circle, rgba(22,163,137,.5) 0, rgba(22,163,137,0) 50%) no-repeat; transform-origin: calc(50% - 200px); animation: afx-horiz 40s ease infinite; opacity: .7; }
.afx-blobs-in .b5 { background: radial-gradient(circle, rgba(5,28,52,.5) 0, rgba(5,28,52,0) 50%) no-repeat; transform-origin: calc(50% - 800px) calc(50% + 800px); animation: afx-circle 20s ease infinite; }
.afx-blobs-in .bp { background: radial-gradient(circle, rgba(217,184,109,.8) 0, rgba(217,184,109,0) 50%) no-repeat; width: 100%; height: 100%; top: -50%; left: -50%; opacity: .7; }
@keyframes afx-vert { 0% { transform: translateY(-50%); } 50% { transform: translateY(50%); } 100% { transform: translateY(-50%); } }
@keyframes afx-circle { 0% { transform: rotate(0); } 50% { transform: rotate(180deg); } 100% { transform: rotate(360deg); } }
@keyframes afx-horiz { 0% { transform: translateX(-50%) translateY(-10%); } 50% { transform: translateX(50%) translateY(10%); } 100% { transform: translateX(-50%) translateY(-10%); } }

@media (prefers-reduced-motion: reduce) {
  .afx-spot .afx-spot-side, .afx-spot, .afx-ripple .afx-cell.is-ripple, .afx-aurora-in::after, .afx-blobs-in i { animation: none !important; }
  .afx-meteor { display: none; }
}

/* 시안 전환 패널(시안 전용 — 운영에는 넣지 않는다) */
.afx-panel { position: fixed; left: 12px; bottom: 12px; z-index: 2147483000; display: flex; flex-wrap: wrap; gap: 4px; max-width: calc(100vw - 24px);
  padding: 6px; border-radius: 12px; background: rgba(5,28,52,.92); box-shadow: 0 8px 24px rgba(0,0,0,.25); font: 600 12px/1 system-ui, sans-serif; }
.afx-panel b { color: #d9b86d; padding: 7px 6px 7px 4px; }
.afx-panel button { border: 0; border-radius: 8px; padding: 7px 9px; background: transparent; color: #fff; cursor: pointer; font: inherit; }
.afx-panel button[aria-pressed="true"] { background: #d9b86d; color: #051c34; }
.afx-panel .afx-min { color: #9aa6b2; }
.afx-panel.is-min button:not(.afx-min) { display: none; }
