/* 퍼플 글라스 캐러셀 — 붉은 미래적 배경 위에 약간 불투명한 리퀴드 글라스 카드. 카드 유리 칠은 carousel.js 의 glassOver, 배경은 여기 */
:root[data-mode="carousel-violet"] {
  --bg: #07040f; --fg: #f3ecff; --mute: #a994d6; --ink: #f3ecff; --onink: #07040f; --line: rgba(150, 100, 255, .22);
  --plate: rgba(24, 10, 48, .5); --plate-line: rgba(170, 130, 255, .35); --plate-fg: #f3ecff; --chip: #150b28; --btn: #1c1036;
  color-scheme: dark;
}
:root[data-mode="carousel-violet"] body { background: #07040f !important; color: var(--fg); }
.cr-violet .cr { color: #f3ecff; }
.cr-violet .cr-pill, .cr-violet .cr-pill.dk { color: #f6f0ff; background: rgba(40, 16, 80, .55); border-color: rgba(170, 130, 255, .4);
  -webkit-backdrop-filter: blur(14px) saturate(1.6); backdrop-filter: blur(14px) saturate(1.6); }

.cr-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 100%, #2a0f4d 0%, #130a26 46%, #07040f 100%); }
.cr-bg i { position: absolute; display: block; }
/* 가운데 뒤에서 번지는 붉은 빛 */
.cr-bg .b1 { left: 50%; top: 52%; width: 120vmax; height: 120vmax; margin: -60vmax 0 0 -60vmax; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(140, 84, 255, .34), rgba(140, 84, 255, .1) 42%, transparent 70%); animation: crPulse 7s ease-in-out infinite alternate; }
/* 바닥 격자는 선이 지글거려서 끈다 */
.cr-bg .hr { display: none; }
.cr-bg .hr-old { left: -50%; right: -50%; bottom: -2%; height: 62%; transform-origin: 50% 100%; transform: perspective(520px) rotateX(64deg);

  background:
    repeating-linear-gradient(90deg, rgba(150, 100, 255, .5) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg, rgba(150, 100, 255, .5) 0 1px, transparent 1px 64px);
  background-size: 64px 64px; animation: crGrid 3.6s linear infinite;
  -webkit-mask-image: linear-gradient(to top, #000 0, rgba(0,0,0,.55) 45%, transparent 92%); mask-image: linear-gradient(to top, #000 0, rgba(0,0,0,.55) 45%, transparent 92%); }
/* 돌아가는 점선 고리 둘 */
.cr-bg .fl { left: 50%; top: 52%; width: 92vmin; height: 92vmin; margin: -46vmin 0 0 -46vmin; border-radius: 50%;
  border: 1px dashed rgba(170, 130, 255, .28); animation: crSpin 90s linear infinite; }
.cr-bg .fl::after { content: ""; position: absolute; inset: 9vmin; border-radius: 50%; border: 1px solid rgba(170, 130, 255, .16); border-top-color: rgba(210, 180, 255, .6); animation: crSpin 38s linear infinite reverse; }
/* 위에서 아래로 훑는 가는 빛줄기 */
.cr-bg .sc { left: 0; right: 0; top: -30%; height: 30%; background: linear-gradient(to bottom, transparent, rgba(150, 100, 255, .09) 60%, rgba(200, 160, 255, .22) 98%, transparent 100%);
  animation: none; display: none; }
/* 모서리 계기판 선 */
.cr-bg .hud { inset: 14px; --c: rgba(170, 130, 255, .55);
  background:
    linear-gradient(var(--c), var(--c)) 0 0 / 26px 1px no-repeat, linear-gradient(var(--c), var(--c)) 0 0 / 1px 26px no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 0 / 26px 1px no-repeat, linear-gradient(var(--c), var(--c)) 100% 0 / 1px 26px no-repeat,
    linear-gradient(var(--c), var(--c)) 0 100% / 26px 1px no-repeat, linear-gradient(var(--c), var(--c)) 0 100% / 1px 26px no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 100% / 26px 1px no-repeat, linear-gradient(var(--c), var(--c)) 100% 100% / 1px 26px no-repeat; }
@keyframes crGrid { to { background-position: 0 64px, 0 64px; } }
@keyframes crSpin { to { transform: rotate(360deg); } }
@keyframes crScan { to { transform: translateY(440%); } }
@keyframes crPulse { to { transform: scale(1.12); opacity: .82; } }
@media (prefers-reduced-motion: reduce) { .cr-bg i, .cr-bg i::after { animation: none !important; } }
.cr-violet .cr-li { color: rgba(220, 205, 255, .5); }
.cr-violet .cr-li:hover { color: #fff; }
.cr-violet .cr-li.on { color: #fff; text-shadow: 0 0 14px rgba(160, 110, 255, .85); }
.cr-violet .cr-ring { text-shadow: 0 0 28px rgba(150, 100, 255, .55); }
