/* cawverse-bg-r3.css — the shared animated Cawverse background, r3 (Nerion 2026-11-17: the FULL crow from the original art, placed as in the
   original: dead centre of the swirl; the page content sits below it, never over it). Based on r2 (r_fc2bd897e0b84880 + Nerion's rulings 2026-11-17), for /coming-soon (-21) and the Activity hub (games-46).
   r2: the knife-crow is BACK in the centre and held STILL (.cvbg-sky::after, cv-crow-*.png, never animated); only the galaxy arms turn, now faster
   (12 / 28 / 60 s). Reduced motion: still no turning (a large rotating layer is the classic motion-sickness trigger), but a clearly visible shimmer.
   SEALED: every class and keyframe is cvbg-; no html, body or * rules; CSS only (no JS); keyframes animate transform and opacity only;
   no filter, no var(), no @import; url()s are relative and point only at the 2 swirl images and the 2 full-crow images beside this file.

   THE ART: cv-swirl-1200.jpg / cv-swirl-800.jpg are LOGO-FREE. They are made offline from the approved art: the knife-crow and the
   CAW-verse wordmark are removed, the bottom half is rebuilt from the top half turned 180° (the spiral is two-armed), and the core is a
   dark eye with a violet rim. Turning them can never turn a logo. The wordmark is a SEPARATE still element (.cvbg-mark), never rotated.

   THE MOTION: three copies of the swirl, each masked to its own ring, turn at different speeds (inner 22 s, middle 40 s, outer 80 s).
   That differential rotation reads as a real vortex being pulled in, not a photo turning. Also: a breathing glow behind the core, three
   star layers (twinkle + parallax drift), and three shooting stars on long, staggered cycles.
   Reduced motion: nothing moves. The rings, the glow and the stars cross-fade with opacity only, so the sky still feels alive.

   MARKUP (first child of <body>):
     <div class="cvbg-sky" aria-hidden="true"><div class="cvbg-glow"></div><div class="cvbg-ring cvbg-r3"></div><div class="cvbg-ring cvbg-r2"></div><div class="cvbg-ring cvbg-r1"></div><div class="cvbg-stars cvbg-s1"></div><div class="cvbg-stars cvbg-s2"></div><div class="cvbg-stars cvbg-s3"></div><div class="cvbg-shoot cvbg-sh1"></div><div class="cvbg-shoot cvbg-sh2"></div><div class="cvbg-shoot cvbg-sh3"></div><div class="cvbg-veil"></div></div>
   The wordmark (outside the sky, in the content):
     <div class="cvbg-mark"><img src="…/caw-wordmark.jpg" alt="CAW-verse" width="760" height="211"></div>
   Optional centring for a page's main column: class="cvbg-center" on it. */

/* the static base: always covers the whole viewport (cover), never moves; the turning rings sit on top of it */
.cvbg-sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: #000 url('cv-swirl-800.jpg') 50% 44% / cover no-repeat; pointer-events: none; }
.cvbg-sky > div { position: absolute; pointer-events: none; }

/* the swirl rings: one square image, 160vmax, centred a little above the middle. Its round content reaches past every corner of any viewport
   (ultrawide to phone portrait), and every ring's mask is a circle that is fully transparent before the square's edge, so no edge or corner
   of a turning layer can ever show (r2 edge fix, Nerion 2026-11-17). */
.cvbg-ring { left: 50%; top: 44%; width: 160vmax; height: 160vmax; margin: -80vmax 0 0 -80vmax; background: url('cv-swirl-1200.jpg') center / 100% 100% no-repeat; will-change: transform; }
.cvbg-r3 { -webkit-mask-image: radial-gradient(circle closest-side, transparent 44%, #000 58%, #000 84%, transparent 96%); mask-image: radial-gradient(circle closest-side, transparent 44%, #000 58%, #000 84%, transparent 96%);
  animation: cvbg-turn3 60s linear infinite; }
.cvbg-r2 { -webkit-mask-image: radial-gradient(circle closest-side, transparent 20%, #000 31%, #000 50%, transparent 60%); mask-image: radial-gradient(circle closest-side, transparent 20%, #000 31%, #000 50%, transparent 60%);
  animation: cvbg-turn2 28s linear infinite; }
.cvbg-r1 { -webkit-mask-image: radial-gradient(circle closest-side, #000 0, #000 24%, transparent 33%); mask-image: radial-gradient(circle closest-side, #000 0, #000 24%, transparent 33%);
  animation: cvbg-turn1 12s linear infinite; }

/* the knife-crow: the FULL figure (round body, the knife through the beak, both legs, the claws, the red band on the right leg), cut from the
   original art in the swirl's own frame, so it sits exactly where the original puts it: at the swirl's centre. A STILL layer, never animated,
   centred on the same point as the rings and sized on its own (it doesn't grow with the 160vmax rings). Above everything in the sky. */
.cvbg-sky::after { content: ''; position: absolute; left: 50%; top: 44%; width: max(95vmin, 44vmax); height: max(95vmin, 44vmax); margin: calc(max(95vmin, 44vmax) / -2) 0 0 calc(max(95vmin, 44vmax) / -2);
  background: url('cv-crowfull-1200.png') center / 100% 100% no-repeat; pointer-events: none; animation: none; }

/* the breathing glow behind the core */
.cvbg-glow { left: 50%; top: 44%; width: 90vmin; height: 90vmin; margin: -45vmin 0 0 -45vmin; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(150,110,255,.42), rgba(96,60,220,.16) 55%, transparent 100%); animation: cvbg-breathe 7s ease-in-out infinite; will-change: transform, opacity; }

/* stars: three tiled layers, twinkling and drifting at different speeds (parallax) */
.cvbg-stars { inset: -12%; background-repeat: repeat; will-change: transform, opacity; }
.cvbg-s1 { background-image: radial-gradient(1.2px 1.2px at 20px 30px, #fff, transparent 60%), radial-gradient(1px 1px at 140px 80px, #dcd0ff, transparent 60%), radial-gradient(1.4px 1.4px at 220px 190px, #fff, transparent 60%), radial-gradient(1px 1px at 80px 240px, #c9b8ff, transparent 60%);
  background-size: 280px 280px; animation: cvbg-twinkle 4.5s ease-in-out infinite, cvbg-drift1 40s linear infinite; }
.cvbg-s2 { background-image: radial-gradient(1.6px 1.6px at 60px 110px, #fff, transparent 60%), radial-gradient(1.1px 1.1px at 300px 40px, #e6dcff, transparent 60%), radial-gradient(1.3px 1.3px at 360px 330px, #fff, transparent 60%);
  background-size: 420px 420px; animation: cvbg-twinkle 7s ease-in-out -3s infinite, cvbg-drift2 60s linear infinite; }
.cvbg-s3 { background-image: radial-gradient(2.2px 2.2px at 150px 150px, #fff, transparent 65%), radial-gradient(1.8px 1.8px at 470px 380px, #d9c9ff, transparent 65%);
  background-size: 600px 600px; animation: cvbg-twinkle 3.2s ease-in-out -1.2s infinite; }

/* shooting stars: a short bright streak crossing the sky, then a long rest */
.cvbg-shoot { width: 160px; height: 2px; border-radius: 2px; opacity: 0; background: linear-gradient(90deg, transparent, rgba(220,205,255,.9) 70%, #fff); }
.cvbg-sh1 { left: 8%; top: 14%; animation: cvbg-shoot 11s ease-in 2s infinite; }
.cvbg-sh2 { left: 46%; top: 6%; animation: cvbg-shoot 17s ease-in 7s infinite; }
.cvbg-sh3 { left: 70%; top: 24%; animation: cvbg-shoot 23s ease-in 13s infinite; }

/* the veil keeps text readable over the art */
.cvbg-veil { inset: 0; background: radial-gradient(ellipse at 50% 44%, transparent 0, rgba(5,3,12,.25) 55%, rgba(5,3,12,.7) 100%), linear-gradient(180deg, rgba(5,3,12,.2) 0%, rgba(5,3,12,.35) 60%, rgba(5,3,12,.75) 100%); }

/* the CAW-verse wordmark: a still element (never rotated). A glow pulses behind it and a light sweeps across the letters. */
.cvbg-mark { position: relative; width: min(460px, 86vw); margin: 0 auto 10px; font-size: 0; overflow: hidden; }   /* no transform here: it would isolate the blends */
.cvbg-mark::before { content: ''; position: absolute; left: 6%; right: 6%; top: 8%; bottom: 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(165,130,255,.6), rgba(110,74,255,.2) 60%, transparent 100%); animation: cvbg-pulse 4.5s ease-in-out infinite; will-change: opacity, transform; }
.cvbg-mark img { position: relative; display: block; width: 100%; height: auto; mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%); }
.cvbg-mark::after { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 35%; pointer-events: none; mix-blend-mode: overlay;
  background: linear-gradient(100deg, transparent 0, rgba(255,255,255,.85) 50%, transparent 100%); transform: translateX(-120%); animation: cvbg-sweep 6s ease-in-out 1.5s infinite; will-change: transform; }

/* optional, for /coming-soon (r3, the original composition): .cvbg-top on the sky puts the swirl centre and the still crow up top (28%), at a
   moderate size; .cvbg-under on the main column starts the content (wordmark, heading, timer, form) just below the crow. The crow is never
   covered; on short screens the page scrolls and the form passes below it. The veil is clear around the crow and darker behind the content. */
.cvbg-sky.cvbg-top .cvbg-ring, .cvbg-sky.cvbg-top .cvbg-glow, .cvbg-sky.cvbg-top::after { top: 28%; }
.cvbg-sky.cvbg-top { background-position: 50% 28%; }
.cvbg-sky.cvbg-top::after { width: max(56vmin, 27vmax); height: max(56vmin, 27vmax); margin: calc(max(56vmin, 27vmax) / -2) 0 0 calc(max(56vmin, 27vmax) / -2); }
.cvbg-sky.cvbg-top .cvbg-veil { background: radial-gradient(ellipse at 50% 28%, transparent 0, rgba(5,3,12,.15) 45%, rgba(5,3,12,.55) 100%), linear-gradient(180deg, rgba(5,3,12,.15) 0%, rgba(5,3,12,.15) 40%, rgba(5,3,12,.55) 62%, rgba(5,3,12,.75) 100%); }
/* the content starts just below the crow (the crow's figure reaches 0.21 x its box below the centre), so nothing ever sits over it */
.cvbg-center.cvbg-under { padding-top: calc(28vh + max(56vmin, 27vmax) * .21 + 16px); }

/* optional: centre a page's main column (/coming-soon) */
.cvbg-center { text-align: center; }
.cvbg-center h1 { font-size: clamp(1.7em, 5.6vw, 2.5em); font-weight: 700; letter-spacing: .01em; line-height: 1.15; margin: .3em 0 .2em; text-shadow: 0 0 22px rgba(150,110,255,.55); }
.cvbg-center ol, .cvbg-center ul { display: inline-block; text-align: left; }
.cvbg-center h1, .cvbg-center p, .cvbg-center label, .cvbg-center #cd { text-shadow: 0 0 6px #000, 0 1px 3px #000, 0 0 18px rgba(5,3,12,.9); }
.cvbg-center input:not([type="checkbox"]) { min-width: min(300px, 82vw); }
.cvbg-center label { display: inline-flex; align-items: center; gap: 6px; }

@keyframes cvbg-turn1 { 0% { transform: rotate(0deg) scale(1.04); } 50% { transform: rotate(180deg) scale(1.1); } 100% { transform: rotate(360deg) scale(1.04); } }
@keyframes cvbg-turn2 { 0% { transform: rotate(40deg); } 100% { transform: rotate(400deg); } }
@keyframes cvbg-turn3 { 0% { transform: rotate(80deg) scale(1.02); } 100% { transform: rotate(440deg) scale(1.02); } }
@keyframes cvbg-breathe { 0%, 100% { opacity: .55; transform: scale(.92); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes cvbg-twinkle { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
@keyframes cvbg-drift1 { 0% { transform: translate3d(0, 0, 0); } 100% { transform: translate3d(-280px, 280px, 0); } }
@keyframes cvbg-drift2 { 0% { transform: translate3d(0, 0, 0); } 100% { transform: translate3d(420px, 420px, 0); } }
@keyframes cvbg-shoot { 0% { opacity: 0; transform: translate3d(0, 0, 0) rotate(28deg); } 2% { opacity: 1; } 7% { opacity: 0; transform: translate3d(520px, 280px, 0) rotate(28deg); } 100% { opacity: 0; transform: translate3d(520px, 280px, 0) rotate(28deg); } }
@keyframes cvbg-pulse { 0%, 100% { opacity: .35; transform: scale(.95); } 50% { opacity: .85; transform: scale(1.05); } }
@keyframes cvbg-sweep { 0% { transform: translateX(-120%); } 45%, 100% { transform: translateX(320%); } }
@keyframes cvbg-fade { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes cvbg-shimmer { 0%, 100% { opacity: .12; } 50% { opacity: 1; } }

/* phones: the lighter image; everything else stays */
@media (max-width: 800px) {
  .cvbg-ring { background-image: url('cv-swirl-800.jpg'); }
  .cvbg-sky::after { background-image: url('cv-crowfull-800.png'); }
  .cvbg-sky.cvbg-top::after { width: max(80vmin, 38vmax); height: max(80vmin, 38vmax); margin: calc(max(80vmin, 38vmax) / -2) 0 0 calc(max(80vmin, 38vmax) / -2); }
  .cvbg-center.cvbg-under { padding-top: calc(28vh + max(80vmin, 38vmax) * .21 + 16px); }
  .cvbg-shoot { width: 110px; }
}
/* reduced motion (e.g. Windows "Animation effects" off): nothing moves or turns. The arms visibly shimmer (opacity 0.12 → 1 every 4–6 s), the glow
   breathes, the stars twinkle. The crow stays still as always. */
@media (prefers-reduced-motion: reduce) {
  .cvbg-sky > div, .cvbg-mark::before, .cvbg-mark::after { animation: none !important; transform: none !important; }
  .cvbg-shoot, .cvbg-mark::after { display: none; }
  .cvbg-r1 { animation: cvbg-shimmer 4s ease-in-out infinite !important; }
  .cvbg-r2 { animation: cvbg-shimmer 6s ease-in-out -2s infinite !important; }
  .cvbg-r3 { animation: cvbg-fade 8s ease-in-out -3s infinite !important; }
  .cvbg-glow { animation: cvbg-fade 7s ease-in-out infinite !important; }
  .cvbg-stars { animation: cvbg-twinkle 6s ease-in-out infinite !important; }
  .cvbg-mark::before { animation: cvbg-fade 5s ease-in-out infinite !important; }
}
