/* landing.css — portal.caw.fun landing, Cawverse galaxy identity (Nerion cawverse-portal-style-galaxy-20261116, animated per cawverse-galaxy-animated-20261116).
   Tokens duplicated from login.css on purpose (brain: option (a)). Self-hosted font + images only; no inline style. Murder Pad keeps style.css (gold).
   r4 (Nerion r_61e3b3d0e76e1794): tiles in the galaxy's own colours (no yellow / red), a glass surface lit from the swirl; the sign-out form; the account strip. */
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('fonts/archivo-latin-wght-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 100 800; font-display: swap; src: url('fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2'); }
:root {
  --cv-bg: #07050F; --cv-panel: rgba(17, 12, 34, .88); --cv-line: #2E2452; --cv-line2: #43367A;
  --cv-ink: #F1ECFF; --cv-ink2: #D6CCF5; --cv-mute: #A69AC9;
  --cv-acc: #9B7BFF; --cv-acc2: #C3ADFF; --cv-grad: linear-gradient(135deg, #7B5CFF, #B08CFF); --cv-grad2: linear-gradient(135deg, #8A6EFF, #C3A6FF);
  /* r4: one family, two moods taken from the swirl: Murder Pad = violet-lilac, Games = periwinkle. No gold, no red. */
  --mp: #B596FF; --mp2: #DCCDFF; --mpbg: rgba(123, 92, 255, .16); --mpglow: rgba(155, 123, 255, .28);
  --gm: #8FA0FF; --gm2: #CDD5FF; --gmbg: rgba(104, 122, 255, .15); --gmglow: rgba(120, 140, 255, .24);
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { color: var(--cv-ink); font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; font-size: 15px; line-height: 1.5; min-height: 100vh; background: var(--cv-bg); }
a { color: var(--cv-acc); text-decoration: none; } a:hover { color: var(--cv-acc2); }
h1, h2 { margin: 0; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0; }
.logo { font-family: var(--mono); font-weight: 700; letter-spacing: .22em; font-size: 14px; color: var(--cv-ink); }
.acct { display: flex; gap: 8px; align-items: center; }
.so { margin: 0; }
.btn { font: inherit; cursor: pointer; height: 42px; padding: 0 18px; border-radius: 10px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid #A58BFF; background: var(--cv-grad); color: #fff; box-shadow: 0 6px 24px #7B5CFF40; white-space: nowrap; }
.btn:hover { color: #fff; background: var(--cv-grad2); }
.btn-ghost { background: rgba(0,0,0,.35); border-color: var(--cv-line2); color: var(--cv-ink2); box-shadow: none; font-weight: 600; }
.btn-ghost:hover { background: rgba(0,0,0,.35); color: var(--cv-ink); border-color: var(--cv-mute); }

.hero { text-align: center; padding: max(20px, calc(28vh + max(56vmin, 27vmax) * .21 + 16px - 78px)) 0 34px; }   /* r5: below the crow (78px = the header) */
@media (max-width: 800px) { .hero { padding-top: max(20px, calc(28vh + max(80vmin, 38vmax) * .21 + 16px - 78px)); } }
.art { position: relative; width: min(420px, 82vw); margin: 0 auto; font-size: 0; }   /* no transform here: it would isolate the img's screen blend */
.art::before { content: ''; position: absolute; left: 8%; right: 8%; top: 5%; bottom: 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(155,123,255,.55), rgba(110,74,255,.18) 60%, transparent 100%);
  opacity: .35; animation: cv-pulse 4.5s ease-in-out infinite; will-change: opacity, transform; pointer-events: none; }
.art img { position: relative; display: block; width: 100%; height: auto; mix-blend-mode: screen; animation: cv-float 7s ease-in-out infinite; will-change: transform;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%); }
.hero .h1 { margin: 18px 0 8px; font-size: clamp(24px, 4vw, 34px); line-height: 1.15; font-weight: 700; letter-spacing: -.01em; text-shadow: 0 2px 18px #000; }
.hero .lead { margin: 0 auto; max-width: 560px; color: var(--cv-ink2); text-shadow: 0 1px 10px #000; }
.hero .cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }

.lbl { font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--cv-mute); margin: 0 0 12px; }
.mods { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.mod { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 18px; color: var(--cv-ink); overflow: hidden; min-height: 220px;
  border: 1px solid rgba(195, 173, 255, .16); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 12px 40px rgba(0, 0, 0, .35);
  background: radial-gradient(120% 90% at 100% 0%, var(--kglow, transparent), transparent 62%), linear-gradient(160deg, rgba(28, 20, 56, .86), rgba(12, 8, 26, .92));
  transition: border-color .2s, box-shadow .25s, transform .25s; }
/* the top edge: a thin line of light that fades out at both ends, like a ring of the swirl */
.mod::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, transparent, var(--k) 30%, var(--k2) 50%, var(--k) 70%, transparent); opacity: .85; }
a.mod:hover, a.mod:focus-visible { border-color: var(--k); color: var(--cv-ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 16px 48px var(--kglow, rgba(0, 0, 0, .35)); transform: translateY(-2px); }
a.mod:focus-visible { outline: 2px solid var(--k2); outline-offset: 3px; }
.mod .top { display: flex; align-items: center; gap: 12px; }
.mod .ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, var(--kglow, transparent), var(--kbg) 70%); color: var(--k2); border: 1px solid var(--k); box-shadow: 0 0 18px var(--kglow, transparent); flex: none; }
.mod .name { display: block; font-size: 20px; font-weight: 700; }
.mod .dom { display: block; font-family: var(--mono); font-size: 12px; color: var(--cv-mute); }
.mod .txt { color: var(--cv-ink2); }
.mod .facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.mod .chip { font-family: var(--mono); font-size: 11px; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--cv-line2); color: var(--cv-ink2); background: rgba(0,0,0,.3); }
.mod .go { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--cv-line); color: var(--k2); font-weight: 700; }
.mod.mp { --k: var(--mp); --k2: var(--mp2); --kbg: var(--mpbg); --kglow: var(--mpglow); }
.mod.gm { --k: var(--gm); --k2: var(--gm2); --kbg: var(--gmbg); --kglow: var(--gmglow); }
.mod.soon { --k: var(--cv-line2); --k2: var(--cv-mute); --kbg: rgba(0,0,0,.3); border-style: dashed; background: rgba(17,12,34,.6); box-shadow: none; min-height: 0; }
.mod.soon::before { display: none; }
/* signup r1: the Murder Pad tile for an account the CAW gate holds. The server adds html.mp-locked to the signed-in page; display only (the gate itself is on murderpad.caw.fun). */
.mod.lock { display: none; --k: var(--cv-line2); --k2: var(--cv-acc2); --kbg: rgba(0,0,0,.3); }
html.mp-locked .mod.mp { display: none; }
html.mp-locked .mod.lock { display: flex; }

/* r4: the account strip (landing-stats.js fills it with textContent; hidden until the answer is good) */
.me { max-width: 720px; margin: 22px auto 0; padding: 14px 16px; border-radius: 16px; border: 1px solid rgba(195, 173, 255, .16); background: linear-gradient(160deg, rgba(28, 20, 56, .72), rgba(12, 8, 26, .82)); text-align: left; }
.me[hidden], .me [hidden] { display: none; }
.me-hi { margin: 0 0 10px; color: var(--cv-ink2); font-size: 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.me-hi b { color: var(--cv-ink); }
.me .badge { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--cv-acc); color: var(--cv-acc2); background: rgba(123, 92, 255, .14); }
.stats { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stats .st { padding: 8px 10px; border-radius: 10px; background: rgba(0, 0, 0, .28); border: 1px solid rgba(195, 173, 255, .10); min-width: 0; }
.stats dt { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--cv-mute); }
.stats dd { margin: 2px 0 0; font-weight: 700; font-size: 16px; color: var(--cv-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stats dd small { margin-left: 6px; font-weight: 400; font-size: 12px; color: var(--cv-mute); }
@media (max-width: 520px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

footer { margin: 44px 0 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: var(--cv-mute); font-size: 13px; }
footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--cv-mute); } footer a:hover { color: var(--cv-ink); }
@media (max-width: 520px) { .hide-sm { display: none; } .hero { padding-top: 22px; } }

/* ===== the animated galaxy (same layer as login r1d) (Nerion cawverse-galaxy-animated-20261116; security rules 2026-11-16).
   CSS only: transform + opacity keyframes; no filter / backdrop-filter; no inline style.
   Static when html.bg-static (landing.js adds it only if localStorage cv.bg === 'static') or when the device asks for reduced motion. ===== */
/* r4: a STATIC base that always covers the whole viewport (never moves); the rings turn on top of it and the crow sits still above them. */
.sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: #000 url('img/cv-swirl-800.jpg') 50% 28% / cover no-repeat; pointer-events: none; }
/* r3 (r_fc2bd897, brain 2026-11-17): the turning layers use the LOGO-FREE swirl (img/cv-swirl-*.jpg, from cawverse-bg). The old caw-galaxy-*.jpg have the
   knife-crow and the CAW-verse wordmark baked in, so turning them turned the logo. Three rings turn at different speeds (inner 22 s, middle 40 s, outer 80 s),
   which reads as a real vortex. The wordmark (.art) is a separate still element. No HTML change: the inner ring is .sky::before.
   r5 (Nerion 2026-11-17): the FULL crow from the original art (body, knife, both legs, claws, the red band), dead centre of the swirl, at 28%, with
   the page content starting just below it (never over it). r4: the knife-crow is BACK and STILL (.sky::after, img/cv-crow-*.png, never animated); arms 12 / 28 / 60 s; rings 160vmax with
   circular masks that are fully transparent before the square's edge, over a static cover base, so no edge or corner of a turning layer can show. */
.sky::before { content: ''; position: absolute; left: 50%; top: 28%; width: 160vmax; height: 160vmax; margin: -80vmax 0 0 -80vmax; background: url('img/cv-swirl-1200.jpg') center / 100% 100% no-repeat;
  -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%); will-change: transform; animation: cv-turn1 12s linear infinite; }
.sky .gal { position: absolute; left: 50%; top: 28%; width: 160vmax; height: 160vmax; margin: -80vmax 0 0 -80vmax; background: url('img/cv-swirl-1200.jpg') center / 100% 100% no-repeat;
  -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%); will-change: transform; animation: cv-turn3 60s linear infinite; }
.sky .gal2 { position: absolute; left: 50%; top: 28%; width: 160vmax; height: 160vmax; margin: -80vmax 0 0 -80vmax; background: url('img/cv-swirl-1200.jpg') center / 100% 100% no-repeat;
  -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%); will-change: transform; animation: cv-turn2 28s linear infinite; }
.sky::after { content: ''; position: absolute; left: 50%; top: 28%; width: max(56vmin, 27vmax); height: max(56vmin, 27vmax); margin: calc(max(56vmin, 27vmax) / -2) 0 0 calc(max(56vmin, 27vmax) / -2);
  background: url('img/cv-crowfull-1200.png') center / 100% 100% no-repeat; pointer-events: none; z-index: 1; animation: none; }
.sky .stars { position: absolute; inset: -10%; will-change: opacity, transform; background-repeat: repeat; }
.sky .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: cv-twinkle 5.5s ease-in-out infinite, cv-drift1 55s linear infinite; }
.sky .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: cv-twinkle 8s ease-in-out -3s infinite, cv-drift2 80s linear infinite reverse; }
.sky .s3 { background-image: radial-gradient(2px 2px at 150px 150px, #fff, transparent 65%), radial-gradient(1.8px 1.8px at 470px 380px, #d9c9ff, transparent 65%);
  background-size: 600px 600px; animation: cv-twinkle 3.6s ease-in-out -1.2s infinite; }
.sky .veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,5,15,.30) 0%, rgba(7,5,15,.55) 50%, rgba(7,5,15,.94) 92%); }
@keyframes cv-turn1 { 0% { transform: rotate(0deg) scale(1.04); } 50% { transform: rotate(180deg) scale(1.1); } 100% { transform: rotate(360deg) scale(1.04); } }
@keyframes cv-turn2 { 0% { transform: rotate(40deg); } 100% { transform: rotate(400deg); } }
@keyframes cv-turn3 { 0% { transform: rotate(80deg) scale(1.02); } 100% { transform: rotate(440deg) scale(1.02); } }
@keyframes cv-fade { 0%, 100% { opacity: .12; } 50% { opacity: 1; } }
@keyframes cv-twinkle { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes cv-drift1 { 0% { transform: translate3d(0, 0, 0); } 100% { transform: translate3d(-280px, 280px, 0); } }
@keyframes cv-drift2 { 0% { transform: translate3d(0, 0, 0); } 100% { transform: translate3d(-420px, 420px, 0); } }
@keyframes cv-pulse { 0%, 100% { opacity: .28; transform: scale(.96); } 50% { opacity: .75; transform: scale(1.04); } }
@keyframes cv-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
/* r2: phones keep the swirl, the second layer and the drift; only the lighter image */
@media (max-width: 800px) { .sky::before, .sky .gal, .sky .gal2 { background-image: url('img/cv-swirl-800.jpg'); } .sky::after { background-image: url('img/cv-crowfull-800.png'); width: max(80vmin, 38vmax); height: max(80vmin, 38vmax); margin: calc(max(80vmin, 38vmax) / -2) 0 0 calc(max(80vmin, 38vmax) / -2); } }
html.bg-static .sky *, html.bg-static .sky::before, html.bg-static .art img, html.bg-static .art::before { animation: none !important; }
/* r2–r4: reduced motion (e.g. Windows "Animation effects" off) = NO movement; two rings visibly shimmer (opacity .12 to 1) and the stars twinkle. The crow is always still. html.bg-static (the user's choice) stays fully still. */
@media (prefers-reduced-motion: reduce) {
  a.mod:hover, a.mod:focus-visible { transform: none; }
  .sky .gal, .sky .gal2, .sky::before, .art img, .art::before { animation: none !important; transform: none !important; }
  html:not(.bg-static) .sky::before { animation: cv-fade 4s ease-in-out infinite !important; }
  html:not(.bg-static) .sky .gal2 { animation: cv-fade 6s ease-in-out -2s infinite !important; }
  html:not(.bg-static) .sky .stars { animation-name: cv-twinkle !important; animation-duration: 6s !important; animation-timing-function: ease-in-out !important; animation-iteration-count: infinite !important; transform: none !important; }
}
