
/* ── 틀 ──────────────────────────────────────────────────────────── */
.ri-a-bgh{position:relative}
.ri-a-bgh>.ri-wrap,.ri-a-bgh>.ri-a-top__in,.ri-a-bgh>.bk-band__in{position:relative;z-index:1}
/* 🚨 :not(.ri-a-bg) 가 반드시 있어야 한다 — 없으면 장식층 자신의 absolute 가 풀려
      지면마다 440px 빈 공간이 생긴다(2026-09-24 실제 사고). */
#ri-main.ri-a-bgh>*:not(.ri-a-bg){position:relative;z-index:1}
.ri-a-bg{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:0}
.ri-a-bg--top{inset:0 0 auto 0;height:460px}
.ri-a-bg *{animation-play-state:paused}
.bg-on>.ri-a-bg *{animation-play-state:running}

/* ── 큰 선그림 — 오른쪽에 아주 옅게 ─────────────────────────────── */
.ri-a-bg__art{position:absolute;right:-56px;top:50%;width:420px;height:420px;
  margin-top:-210px;color:rgba(11,58,160,.042);   /* 09-24 .085 → .042 : 「더 연하게」 */
  animation:riArtSpin 90s linear infinite}
.ri-a-bg__art svg{width:100%;height:100%;display:block}
@keyframes riArtSpin{to{transform:rotate(360deg)}}
/* 도는 게 어울리지 않는 그림은 «천천히 떠다니게» 한다 — 달리는 사람이 빙글빙글 돌면 우습다 */
.ri-a-bg__art--drift{animation:riArtDrift 16s ease-in-out infinite alternate}
@keyframes riArtDrift{from{transform:translate3d(0,0,0) rotate(-3deg)}
  to{transform:translate3d(-26px,-18px,0) rotate(3deg)}}

/* ── 궤도 — 캡처의 그 타원 ──────────────────────────────────────── */
.ri-a-bg__ring{position:absolute;border-radius:50%;border:1px solid rgba(11,58,160,.05);
  will-change:transform}
.ri-a-bg__ring.r1{right:-90px;top:50%;width:660px;height:280px;margin-top:-140px;
  transform:rotate(-18deg);animation:riRing1 34s linear infinite}
.ri-a-bg__ring.r2{right:20px;top:50%;width:440px;height:186px;margin-top:-93px;
  border-color:rgba(11,58,160,.035);transform:rotate(14deg);animation:riRing2 46s linear infinite reverse}
.ri-a-bg__ring::after{content:"";position:absolute;left:50%;top:-4px;width:7px;height:7px;
  border-radius:50%;background:rgba(95,176,255,.26);box-shadow:0 0 8px 2px rgba(95,176,255,.14)}
@keyframes riRing1{from{transform:rotate(-18deg)}to{transform:rotate(342deg)}}
@keyframes riRing2{from{transform:rotate(14deg)}to{transform:rotate(374deg)}}

/* ── 반짝이는 점 ────────────────────────────────────────────────── */
.ri-a-bg__d{position:absolute;width:4px;height:4px;border-radius:50%;
  background:rgba(11,58,160,.13);animation:riTw 4.2s ease-in-out infinite}
@keyframes riTw{0%,100%{transform:scale(.55);opacity:.10}50%{transform:scale(1.3);opacity:.40}}
.ri-a-bg__d.d1{right:34%;top:18%}
.ri-a-bg__d.d2{right:12%;top:9%;animation-delay:-1.1s}
.ri-a-bg__d.d3{right:23%;top:76%;animation-delay:-2.3s}
.ri-a-bg__d.d4{right:6%;top:58%;animation-delay:-.7s;width:5px;height:5px}
.ri-a-bg__d.d5{right:44%;top:46%;animation-delay:-3.1s;width:3px;height:3px}

/* ── 폰 — 더 작게 · 더 옅게. 글을 방해하면 안 된다 ───────────────── */
@media (max-width:860px){
  .ri-a-bg--top{height:300px}
  .ri-a-bg__art{width:230px;height:230px;margin-top:-115px;right:-58px;color:rgba(11,58,160,.032)}
  .ri-a-bg__ring.r2,.ri-a-bg__d.d5,.ri-a-bg__d.d3{display:none}
  .ri-a-bg__ring.r1{width:360px;height:160px;margin-top:-80px;right:-110px}
}
@media (prefers-reduced-motion:reduce){ .ri-a-bg{display:none} }
@media print{ .ri-a-bg{display:none} }
