/* JustDigitz — "Little Devil" (app/Views/creators/justdigitz.php).
   Dark chocolate brown, cherry red and the gold of his cross necklace, with
   a low hellfire glow and hearts drifting up. Chunky, rounded type so it
   stays silly; his name drips. No live blur; motion is transform and
   opacity only, paused off screen by site.js and stopped for reduced motion
   and lite mode (docs/MOTION.md, the mobile-performance rules). */

@font-face { font-family: 'Titan One'; src: url('/assets/fonts/titan-one-latin.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Fredoka'; src: url('/assets/fonts/fredoka-latin.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }
@font-face { font-family: 'Rubik Wet Paint'; src: url('/assets/fonts/rubik-wet-paint-latin.woff2') format('woff2'); font-weight: 400; font-display: swap; }

body.cp-theme-justdigitz {
  --jd-ink: #120806; --jd-choc: #1f0f0b; --jd-panel: #2a1410; --jd-panel2: #361a14; --jd-line: rgba(227, 176, 75, .2);
  --jd-cherry: #d81e3a; --jd-cherry-d: #8f0e22; --jd-cherry-l: #ff5a6e; --jd-gold: #e3b04b; --jd-gold-l: #f4d38a;
  --jd-tx: #f7e8dc; --jd-tx2: #d8bcae; --jd-tx3: #a08273;
  --jd-head: 'Titan One', 'Fredoka', system-ui, sans-serif;
  --jd-body: 'Fredoka', system-ui, sans-serif;
  --jd-drip: 'Rubik Wet Paint', 'Titan One', system-ui, sans-serif;
  --scroll-acc: #d81e3a;
  background: var(--jd-ink);
}
html:has(> body.cp-theme-justdigitz) { --scroll-acc: #d81e3a; }

.jd { position: relative; overflow-x: clip; padding: 0 0 40px; color: var(--jd-tx); font-family: var(--jd-body); background:
  radial-gradient(ellipse 70% 45% at 78% 6%, rgba(216, 30, 58, .22), transparent 70%),
  radial-gradient(ellipse 55% 40% at 8% 34%, rgba(143, 14, 34, .22), transparent 70%),
  radial-gradient(ellipse 80% 30% at 50% 100%, rgba(216, 30, 58, .18), transparent 70%),
  linear-gradient(180deg, #1d0d09 0%, var(--jd-ink) 40%, #170a07 100%); }
.jd a { color: inherit; text-decoration: none; }
.jd img { display: block; max-width: 100%; }

/* ---- the air: embers and hearts drifting up (one fixed layer) ---- */
.jd-air { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.jd-air i { position: absolute; bottom: -30px; font-style: normal; opacity: 0; animation: jd-rise 13s linear infinite; }
.jd-air i.is-h { color: var(--jd-cherry); font-size: 16px; }
.jd-air i.is-e { width: 5px; height: 5px; border-radius: 50%; background: var(--jd-gold); box-shadow: 0 0 8px 2px rgba(227, 176, 75, .5); }
.jd-air i:nth-child(3n) { animation-duration: 17s; }
.jd-air i:nth-child(4n) { animation-duration: 11s; font-size: 11px; }
@keyframes jd-rise {
  0% { opacity: 0; transform: translate3d(0, 0, 0); }
  10% { opacity: .55; }
  50% { transform: translate3d(18px, -55vh, 0); }
  85% { opacity: .35; }
  100% { opacity: 0; transform: translate3d(-12px, -110vh, 0); }
}

/* ---- type ---- */
.jd-kick { margin: 0 0 10px; font-family: var(--jd-body); font-weight: 600; font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: var(--jd-gold); }
.jd-title { margin: 0; text-transform: none; font-family: var(--jd-head); font-weight: 400; font-size: clamp(30px, 3.8vw, 48px); line-height: 1.08; letter-spacing: .01em; color: var(--jd-tx); }
.jd-title em { font-style: normal; color: var(--jd-cherry-l); }
.jd-text { margin: 12px 0 0; font-size: 17px; line-height: 1.65; color: var(--jd-tx2); }
.jd-text a { color: var(--jd-gold-l); border-bottom: 1px solid currentColor; }

/* ---- panels ---- */
.jd-panel { position: relative; border: 2px solid var(--jd-line); border-radius: 26px; background:
  radial-gradient(ellipse 80% 60% at 100% 0%, rgba(216, 30, 58, .14), transparent 70%),
  linear-gradient(160deg, var(--jd-panel2), var(--jd-panel) 60%, var(--jd-choc));
  box-shadow: 0 22px 50px -18px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(244, 211, 138, .08); }

/* ---- hero ---- */
.jd-hero { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: 30px; max-width: 1240px; min-height: min(100vh, 860px); margin: 0 auto; padding: 120px 32px 40px; }
/* His name, dripping, with two small horns on it. Padding above keeps the
   paint's tops and the horns inside the line box. */
.jd-name { position: relative; display: inline-block; margin: 0; padding: .32em .06em 0; text-transform: none; font-family: var(--jd-drip); font-weight: 400; font-size: clamp(76px, 11vw, 164px); line-height: 1; letter-spacing: .01em; color: var(--jd-cherry); text-shadow: 0 6px 0 var(--jd-cherry-d), 0 18px 40px rgba(216, 30, 58, .35); overflow-wrap: anywhere; }
.jd-name span { position: relative; z-index: 1; }
.jd-horns { position: absolute; z-index: 0; top: .02em; left: 50%; width: 1.3em; height: auto; margin-left: -.65em; fill: #0d0605; filter: drop-shadow(0 0 1px rgba(244, 211, 138, .4)); animation: jd-wiggle 5s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes jd-wiggle { 0%, 82%, 100% { transform: rotate(0); } 86% { transform: rotate(-5deg); } 90% { transform: rotate(4deg); } 94% { transform: rotate(-2deg); } }
.jd-summary { margin: 14px 0 0; font-size: clamp(17px, 1.6vw, 20px); font-weight: 600; letter-spacing: .04em; color: var(--jd-gold-l); }
.jd-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.jd-tags li { padding: 6px 14px; border-radius: 40px; background: rgba(216, 30, 58, .16); border: 1px solid rgba(216, 30, 58, .5); color: var(--jd-tx); font-size: 14px; font-weight: 600; }
.jd-tags li::before { content: "♥ "; color: var(--jd-cherry-l); }
.jd-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.jd-btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border: 2px solid rgba(244, 211, 138, .45); border-radius: 40px; background: transparent; color: var(--jd-tx); font-family: var(--jd-head); font-weight: 400; font-size: 16px; letter-spacing: .02em; cursor: pointer; transition: transform .18s cubic-bezier(.3, 1.6, .5, 1), background-color .18s, color .18s, box-shadow .18s, border-color .18s; }
.jd-btn:hover { transform: translateY(-3px) rotate(-1.5deg); border-color: var(--jd-gold); box-shadow: 0 10px 22px -10px rgba(227, 176, 75, .6); }
.jd-btn.is-hot { border-color: var(--jd-cherry); background: var(--jd-cherry); color: #fff; box-shadow: 0 5px 0 var(--jd-cherry-d); }
.jd-btn.is-hot:hover { background: var(--jd-cherry-l); border-color: var(--jd-cherry-l); box-shadow: 0 8px 0 var(--jd-cherry-d), 0 16px 30px -10px rgba(216, 30, 58, .8); }
.jd-socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.jd-socials a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--jd-line); color: var(--jd-tx2); transition: color .15s, border-color .15s, background-color .15s, transform .18s cubic-bezier(.3, 1.6, .5, 1); }
.jd-socials a:hover { color: #fff; background: var(--jd-cherry); border-color: var(--jd-cherry); transform: translateY(-3px) scale(1.06); }
.jd-socials svg { width: 18px; height: 18px; fill: currentColor; }

/* His stage: a hellfire glow, a slow ring of hearts and crosses, and him. */
.jd-stage { position: relative; aspect-ratio: 1; width: 100%; max-width: 600px; justify-self: center; }
.jd-glow { position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, rgba(216, 30, 58, .55) 0%, rgba(143, 14, 34, .35) 45%, transparent 70%); animation: jd-breathe 5s ease-in-out infinite; }
@keyframes jd-breathe { 0%, 100% { opacity: .8; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.03); } }
.jd-ring { position: absolute; inset: 1%; border-radius: 50%; border: 2px dashed rgba(227, 176, 75, .22); animation: jd-spin 60s linear infinite; }
.jd-ring i { position: absolute; left: 50%; top: 50%; width: 24px; height: 24px; margin: -12px 0 0 -12px; display: grid; place-items: center; font-style: normal; font-size: 18px; color: var(--jd-cherry); transform: rotate(calc(var(--i) * 30deg)) translateY(-49.5cqw); }
.jd-ring { container-type: inline-size; }
.jd-ring i:nth-child(3n+1) { color: var(--jd-gold); }
@keyframes jd-spin { to { transform: rotate(360deg); } }
/* His portrait is cut off at the chest; the bottom fades into the glow. */
.jd-portrait { position: absolute; inset: 4%; width: 92%; height: auto; animation: jd-bob 6s ease-in-out infinite;
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 97%); mask-image: linear-gradient(180deg, #000 72%, transparent 97%); }
@keyframes jd-bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(-1deg); } }

/* ---- the tail between sections ---- */
.jd-tail { position: relative; z-index: 1; display: flex; align-items: center; max-width: 1240px; height: 60px; margin: 26px auto; padding: 0 32px; }
.jd-tail > svg:first-child { flex: 1; height: 60px; }
.jd-tail-line { fill: none; stroke: #0d0605; stroke-width: 7; stroke-linecap: round; filter: drop-shadow(0 0 1px rgba(244, 211, 138, .35)); stroke-dasharray: 1400; stroke-dashoffset: 1400; transition: stroke-dashoffset 1.6s ease; }
.jd-tail.is-in .jd-tail-line { stroke-dashoffset: 0; }
.jd-tail-tip { flex: none; width: 42px; height: 42px; margin-left: -6px; fill: #0d0605; filter: drop-shadow(0 0 1px rgba(244, 211, 138, .4)); transform-origin: 0 50%; animation: jd-flick 4s ease-in-out infinite; }
@keyframes jd-flick { 0%, 70%, 100% { transform: rotate(0); } 76% { transform: rotate(-18deg); } 84% { transform: rotate(12deg); } 90% { transform: rotate(-4deg); } }
.jd-tail i { position: absolute; top: 50%; font-style: normal; font-size: 18px; color: var(--jd-cherry); transform: translateY(-50%) scale(0); transition: transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.jd-tail i:nth-of-type(1) { left: 22%; transition-delay: .5s; }
.jd-tail i:nth-of-type(2) { left: 48%; transition-delay: .8s; color: var(--jd-gold); }
.jd-tail i:nth-of-type(3) { left: 74%; transition-delay: 1.1s; }
.jd-tail.is-in i { transform: translateY(-50%) scale(1); }
.jd-tail.is-flip { transform: scaleX(-1); }

/* ---- sections ---- */
.jd-sec { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; padding: 34px 32px 20px; }
.jd-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.jd-more { flex: none; padding: 7px 14px; border-radius: 40px; border: 2px solid var(--jd-line); font-weight: 600; font-size: 14px; color: var(--jd-gold-l); transition: background-color .15s, color .15s, border-color .15s; }
.jd-more:hover { background: var(--jd-cherry); border-color: var(--jd-cherry); color: #fff; }
.jd .jd-row-h { margin: 24px 0 10px; font-family: var(--jd-head); font-weight: 400; font-size: 19px; letter-spacing: .02em; color: var(--jd-tx2); text-transform: none; }
.jd .jd-row-h::before { content: "♥ "; color: var(--jd-cherry); }

/* About: his portrait tilted on the left, Cloudy's little him on the edge. */
.jd-about-card { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 34px; align-items: center; padding: 34px; }
.jd-about-art img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 20px; border: 3px solid var(--jd-gold); transform: rotate(-2.5deg); box-shadow: 10px 12px 0 var(--jd-cherry-d), 0 24px 40px -14px rgba(0, 0, 0, .8); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.jd-about-art img:hover { transform: rotate(1deg) scale(1.02); }
.jd-sitter { position: absolute; z-index: 2; left: 40%; top: 0; width: 120px; height: auto; transform: translateY(-74%); filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .55)); pointer-events: none; }
.jd-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin: 22px 0 0; }
.jd-facts div { padding: 10px 14px; border-radius: 14px; background: rgba(18, 8, 6, .45); border: 1px solid var(--jd-line); }
.jd-facts dt { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--jd-gold); }
.jd-facts dd { margin: 2px 0 0; font-size: 15px; font-weight: 500; color: var(--jd-tx); }
.jd-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.jd-links a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 40px; border: 2px solid var(--jd-line); font-weight: 600; font-size: 14px; transition: border-color .15s, color .15s, background-color .15s, transform .18s cubic-bezier(.3, 1.6, .5, 1); }
.jd-links a:hover { border-color: var(--jd-cherry); background: var(--jd-cherry); color: #fff; transform: translateY(-2px); }
.jd-links svg { width: 16px; height: 16px; fill: currentColor; }
.jd-discord { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: 15px; color: var(--jd-tx2); }
.jd-discord svg { width: 18px; height: 18px; fill: var(--jd-gold); }
.jd-discord b { color: var(--jd-tx); }

/* The stare: his banner across the page, blinking now and then. */
.jd-stare { position: relative; z-index: 1; overflow: hidden; max-width: 1240px; margin: 40px auto 10px; border-block: 3px solid #0d0605; aspect-ratio: 1400 / 400; max-height: 340px; width: calc(100% - 64px); border-radius: 26px; border: 3px solid var(--jd-cherry-d); }
.jd-stare img { width: 100%; height: 100%; object-fit: cover; }
.jd-lid { position: absolute; left: 0; right: 0; height: 51%; background: linear-gradient(180deg, #1a0b08, #0d0605); }
.jd-lid.is-top { top: 0; transform-origin: 50% 0; transform: scaleY(0); animation: jd-blink 6s ease-in-out infinite; }
.jd-lid.is-bot { bottom: 0; transform-origin: 50% 100%; transform: scaleY(0); animation: jd-blink 6s ease-in-out infinite; }
@keyframes jd-blink { 0%, 88%, 100% { transform: scaleY(0); } 91% { transform: scaleY(1); } 94% { transform: scaleY(0); } 96% { transform: scaleY(.9); } 98.5% { transform: scaleY(0); } }
.jd-stare-note { position: absolute; right: 16px; bottom: 12px; padding: 4px 12px; border-radius: 40px; background: rgba(13, 6, 5, .8); color: var(--jd-gold-l); font-size: 13px; font-weight: 600; letter-spacing: .08em; }

/* Videos */
.jd-rail { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(280px, 30%, 400px); gap: 18px; overflow-x: auto; padding: 6px 6px 18px; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; }
.jd-rail.is-tall { grid-auto-columns: clamp(190px, 18%, 230px); }
.jd-rail::-webkit-scrollbar { height: 10px; }
.jd-rail::-webkit-scrollbar-thumb { background: var(--jd-cherry); border-radius: 10px; }
.jd-rail::-webkit-scrollbar-track { background: var(--jd-panel); border-radius: 10px; }
.jd-card { scroll-snap-align: start; margin: 0; }
.jd-card-thumb { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 18px; border: 2px solid var(--jd-line); background: var(--jd-panel); transition: border-color .18s, transform .22s cubic-bezier(.3, 1.6, .5, 1), box-shadow .18s; }
.jd-card.is-tall .jd-card-thumb { aspect-ratio: 9 / 16; }
.jd-card-thumb > a, .jd-card-thumb img, .jd-card-thumb iframe { display: block; width: 100%; height: 100%; }
.jd-card-thumb img { object-fit: cover; }
.jd-card:hover .jd-card-thumb { border-color: var(--jd-cherry); transform: translateY(-4px) rotate(-.8deg); box-shadow: 0 14px 28px -12px rgba(216, 30, 58, .7); }
/* The play button is a heart. */
.jd-play { position: absolute; left: 50%; top: 50%; width: 58px; height: 54px; margin: -27px 0 0 -29px; transition: transform .22s cubic-bezier(.3, 1.6, .5, 1); }
.jd-play svg { width: 100%; height: 100%; fill: var(--jd-cherry); filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .6)); }
.jd-play .jd-play-tri { fill: #fff; }
.jd-card:hover .jd-play { transform: scale(1.14); }
.jd-chip { position: absolute; left: 10px; top: 10px; padding: 3px 10px; border-radius: 40px; background: rgba(13, 6, 5, .85); color: var(--jd-gold-l); font-size: 12px; font-weight: 600; letter-spacing: .06em; }
.jd .jd-card-title { margin: 10px 2px 0; font-family: var(--jd-body); font-weight: 500; font-size: 15px; line-height: 1.4; letter-spacing: 0; text-transform: none; color: var(--jd-tx); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.jd-empty, .jd-follow { max-width: 620px; padding: 20px 24px; }
.jd-follow { display: flex; align-items: center; gap: 12px; }
.jd-follow svg { width: 22px; height: 22px; fill: var(--jd-cherry-l); }
.jd-follow .jd-more { margin-left: auto; }

/* ---- the rage meter (creators/justdigitz.js) ---- */
.jd-arena { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: center; padding: 30px 34px; overflow: hidden; }
.jd-meter { position: relative; height: 22px; margin-top: 22px; border-radius: 40px; border: 2px solid var(--jd-line); background: rgba(13, 6, 5, .6); overflow: hidden; }
.jd-meter i { position: absolute; inset: 2px; border-radius: 40px; background: linear-gradient(90deg, var(--jd-gold), var(--jd-cherry) 60%, #ff2a12); transform-origin: left; transform: scaleX(0); transition: transform .25s ease; }
.jd-mood { margin: 14px 0 0; font-family: var(--jd-head); font-size: clamp(20px, 2.2vw, 26px); color: var(--jd-tx); }
.jd-mood span { font-family: var(--jd-body); font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--jd-gold); }
.jd-score { margin: 8px 0 0; font-size: 15px; color: var(--jd-tx3); }
.jd-score b { color: var(--jd-tx); }
.jd-dot { margin: 0 6px; }
.jd-ring-stage { position: relative; min-height: 400px; }
.jd-demon { position: absolute; left: 50%; bottom: 10px; width: 250px; height: 340px; margin-left: -125px; padding: 0; border: 0; background: none; cursor: pointer; transform-origin: 50% 100%; -webkit-tap-highlight-color: transparent; }
.jd-demon img { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 14px 14px rgba(0, 0, 0, .6)); transition: opacity .15s; }
.jd-demon-mad { opacity: 0; border-radius: 50%; -webkit-mask-image: radial-gradient(closest-side, #000 70%, transparent 100%); mask-image: radial-gradient(closest-side, #000 70%, transparent 100%); }
.jd-demon:active { transform: scale(.96, .92); }
.jd-demon.is-poked { animation: jd-poke .25s ease; }
@keyframes jd-poke { 40% { transform: scale(1.06, .9); } 70% { transform: scale(.97, 1.04); } }
/* Madder and madder: shaking harder, glowing redder, steaming. */
.jd-arena.is-r1 .jd-demon-calm { filter: drop-shadow(0 0 14px rgba(216, 30, 58, .35)) drop-shadow(0 14px 14px rgba(0, 0, 0, .6)); }
.jd-arena.is-r2 .jd-demon { animation: jd-shake .3s steps(2) infinite; }
.jd-arena.is-r2 .jd-demon-calm { filter: drop-shadow(0 0 20px rgba(216, 30, 58, .6)) sepia(.3) saturate(1.4) hue-rotate(-12deg); }
.jd-arena.is-r3 .jd-demon { animation: jd-shake-hard .18s steps(2) infinite; }
.jd-arena.is-r3 .jd-demon-calm { filter: drop-shadow(0 0 28px rgba(255, 42, 18, .8)) sepia(.5) saturate(2) hue-rotate(-18deg); }
@keyframes jd-shake { 50% { transform: translate(2px, -1px) rotate(1deg); } }
@keyframes jd-shake-hard { 50% { transform: translate(-4px, 1px) rotate(-2deg); } }
.jd-steam { position: absolute; left: 50%; top: 4%; width: 0; height: 0; }
.jd-steam i { position: absolute; width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle, rgba(247, 232, 220, .45), transparent 70%); opacity: 0; }
.jd-steam i:nth-child(1) { left: -80px; }
.jd-steam i:nth-child(2) { left: 50px; }
.jd-steam i:nth-child(3) { left: -14px; top: -20px; }
.jd-arena.is-quit .jd-steam { display: none; }
.jd-arena.is-r3 .jd-steam i { animation: jd-puff 1s ease-out infinite; }
.jd-arena.is-r3 .jd-steam i:nth-child(2) { animation-delay: .35s; }
.jd-arena.is-r3 .jd-steam i:nth-child(3) { animation-delay: .7s; }
@keyframes jd-puff { 0% { opacity: .7; transform: translateY(0) scale(.5); } 100% { opacity: 0; transform: translateY(-60px) scale(1.8); } }
/* The rage quit: his crying face, a stamp, and a little screen shake. */
.jd-quit { position: absolute; left: 50%; top: 18%; margin: 0; font-family: var(--jd-drip); font-size: clamp(48px, 6vw, 76px); line-height: 1; color: var(--jd-cherry); text-shadow: 0 5px 0 #0d0605; white-space: nowrap; pointer-events: none; opacity: 0; transform: translateX(-50%) rotate(-8deg) scale(2); }
.jd-arena.is-quit .jd-quit { animation: jd-stamp 2.2s cubic-bezier(.3, 1.6, .5, 1) forwards; }
@keyframes jd-stamp { 0% { opacity: 0; transform: translateX(-50%) rotate(-8deg) scale(2.2); } 14% { opacity: 1; transform: translateX(-50%) rotate(-8deg) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translateX(-50%) rotate(-8deg) scale(1); } }
.jd-arena.is-quit .jd-demon-calm { opacity: 0; }
.jd-arena.is-quit .jd-demon-mad { opacity: 1; }
.jd-arena.is-quit .jd-demon { animation: jd-shake-hard .14s steps(2) 6; }
.jd-arena.is-quit { animation: jd-quake .5s steps(4); }
@keyframes jd-quake { 25% { transform: translate(-5px, 2px); } 50% { transform: translate(4px, -3px); } 75% { transform: translate(-2px, 1px); } }
/* "!!" and "#@%!" popping off him with each poke (justdigitz.js). */
.jd-pops { position: absolute; inset: 0; pointer-events: none; }
.jd-pop { position: absolute; font-family: var(--jd-head); font-size: 22px; color: var(--jd-cherry-l); text-shadow: 0 2px 0 #0d0605; animation: jd-pop .8s ease-out forwards; }
@keyframes jd-pop { 0% { opacity: 1; transform: translate(0, 0) scale(.6); } 100% { opacity: 0; transform: translate(var(--dx, 0), -70px) scale(1.15); } }
/* The pigeon: wanders along the bottom; a tap sends it to him, which calms him down. */
.jd-pigeon { position: absolute; left: 0; bottom: 6px; z-index: 2; width: 86px; height: 112px; padding: 0; border: 0; background: none; cursor: pointer; animation: jd-wander 24s linear infinite; -webkit-tap-highlight-color: transparent; }
.jd-pigeon img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .5)); animation: jd-peck 1.2s steps(2) infinite; transform-origin: 50% 100%; }
@keyframes jd-wander {
  0% { transform: translateX(-100px) scaleX(-1); }
  46% { transform: translateX(calc(var(--jd-lane, 520px) + 10px)) scaleX(-1); }
  50% { transform: translateX(calc(var(--jd-lane, 520px) + 10px)) scaleX(1); }
  96% { transform: translateX(-100px) scaleX(1); }
  100% { transform: translateX(-100px) scaleX(-1); }
}
@keyframes jd-peck { 50% { transform: rotate(6deg) translateY(2px); } }
.jd-coo { position: absolute; left: 50%; top: -14px; padding: 2px 10px; border-radius: 20px; background: var(--jd-tx); color: #1f0f0b; font-weight: 700; font-size: 13px; opacity: 0; transform: translateX(-50%); pointer-events: none; }
.jd-pigeon.is-cooing .jd-coo { animation: jd-coo 1.4s ease forwards; }
@keyframes jd-coo { 0% { opacity: 0; transform: translate(-50%, 6px); } 15%, 75% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, -8px); } }

/* ---- gallery ---- */
.jd-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.jd-gallery a { position: relative; display: block; overflow: hidden; aspect-ratio: 1; border-radius: 22px; border: 2px solid var(--jd-line); background: radial-gradient(circle at 50% 40%, rgba(216, 30, 58, .22), transparent 70%), var(--jd-panel); transition: border-color .18s, transform .22s cubic-bezier(.3, 1.6, .5, 1), box-shadow .18s; }
.jd-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.jd-gallery li:nth-child(odd) a:hover { transform: translateY(-4px) rotate(-1.2deg); }
.jd-gallery li:nth-child(even) a:hover { transform: translateY(-4px) rotate(1.2deg); }
.jd-gallery a:hover { border-color: var(--jd-cherry); box-shadow: 0 16px 30px -12px rgba(216, 30, 58, .7); }
.jd-gallery a:hover img { transform: scale(1.04); }
.jd-gallery a::after { content: "♥"; position: absolute; right: 12px; bottom: 8px; font-size: 22px; color: var(--jd-cherry); opacity: 0; transform: scale(.4); transition: opacity .2s, transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.jd-gallery a:hover::after { opacity: 1; transform: none; }

/* ---- the viewer (creators/justdigitz.js) ----
   A heart-red frame with gold trim and small horns on top; opening and
   moving between pieces is a quick hop and a flash of red. */
.jd-zoom { position: fixed; inset: 0; z-index: 220; display: grid; place-items: center; padding: clamp(14px, 4vmin, 44px); background: radial-gradient(ellipse at 50% 50%, rgba(80, 10, 20, .9), rgba(10, 4, 3, .96) 70%); opacity: 0; transition: opacity .22s ease; }
.jd-zoom[hidden] { display: none; }
.jd-zoom.is-open { opacity: 1; }
.jd-zoom-win { position: relative; max-width: min(92vw, 1100px); padding: 10px; border-radius: 26px; background: linear-gradient(160deg, var(--jd-cherry), var(--jd-cherry-d)); box-shadow: 0 0 0 3px var(--jd-gold), 0 30px 70px rgba(0, 0, 0, .7), 0 0 60px rgba(216, 30, 58, .45); transform: scale(.92); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.jd-zoom.is-open .jd-zoom-win { transform: none; }
.jd-zoom-win .jd-horns { top: -30px; width: 120px; margin-left: -60px; animation: none; }
.jd-zoom-stage { position: relative; overflow: hidden; border-radius: 18px; background: #0d0605; }
.jd-zoom-img { display: block; max-width: min(88vw, 1080px); max-height: calc(84vh - 30px); width: auto; height: auto; margin: 0 auto; }
.jd-zoom-stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(circle, rgba(255, 90, 110, .7), rgba(216, 30, 58, .9)); }
.jd-zoom-stage.is-switching::after { animation: jd-flash .36s ease; }
.jd-zoom-stage.is-switching .jd-zoom-img { animation: jd-hop .36s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes jd-flash { 0% { opacity: 0; } 40% { opacity: .85; } 100% { opacity: 0; } }
@keyframes jd-hop { 0% { transform: scale(1); } 40% { transform: scale(.9) rotate(var(--jd-tilt, -2deg)); opacity: .4; } 100% { transform: none; opacity: 1; } }
.jd-zoom-x, .jd-zoom-nav { display: grid; place-items: center; border: 2px solid var(--jd-gold); background: #1f0f0b; color: var(--jd-gold-l); font-family: var(--jd-head); cursor: pointer; transition: transform .18s cubic-bezier(.3, 1.6, .5, 1), background-color .15s, color .15s; }
.jd-zoom-x { position: absolute; top: -16px; right: -16px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; font-size: 22px; line-height: 1; }
.jd-zoom-x:hover, .jd-zoom-nav:hover { background: var(--jd-gold); color: #1f0f0b; transform: scale(1.1); }
.jd-zoom-nav { position: absolute; top: 50%; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; font-size: 22px; }
.jd-zoom-nav.is-prev { left: 18px; }
.jd-zoom-nav.is-next { right: 18px; }
.jd-zoom-nav[hidden] { display: none; }
.jd-zoom-count { position: absolute; left: 50%; bottom: -14px; padding: 3px 12px; border-radius: 40px; background: var(--jd-gold); color: #1f0f0b; font-weight: 700; font-size: 13px; transform: translateX(-50%); }
@media (max-width: 700px) { .jd-zoom-nav { top: auto; bottom: 18px; margin-top: 0; } }
@media (prefers-reduced-motion: reduce) { .jd-zoom, .jd-zoom-win, .jd-zoom-stage.is-switching::after, .jd-zoom-stage.is-switching .jd-zoom-img { animation: none; transition: none; } }

/* ---- shop ---- */
.jd-soon { overflow: hidden; padding: 0 0 24px; text-align: center; }
.jd-soon-eyes { width: min(100%, 560px); height: auto; margin: 0 auto 6px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); animation: jd-peek 6s ease-in-out infinite; }
@keyframes jd-peek { 0%, 100% { transform: translateY(18%); } 40%, 60% { transform: translateY(0); } }
.jd-soon .jd-text { max-width: 560px; margin: 10px auto 0; padding: 0 20px; }

/* ---- join ---- */
.jd-join { margin-top: 20px; }
.jd-join-card { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 36px; align-items: center; padding: 36px 34px; }
.jd-join .jd-title { margin: 8px 0 6px; }
.jd-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; padding: 0; list-style: none; }
.jd-nums li { padding: 16px; border-radius: 18px; border: 1px solid var(--jd-line); background: rgba(18, 8, 6, .45); }
.jd-nums b { display: block; font-family: var(--jd-head); font-weight: 400; font-size: 34px; line-height: 1; color: var(--jd-cherry-l); }
.jd-nums span { display: block; margin-top: 8px; font-size: 13px; line-height: 1.4; color: var(--jd-tx3); }

/* ---- end ---- */
.jd-end { position: relative; z-index: 1; border: 0; background: none; max-width: 1240px; margin: 50px auto 0; padding: 40px 32px 10px; text-align: center; }
.jd-end-face { width: 96px; height: auto; margin: 0 auto 8px; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .5)); transform-origin: 50% 100%; animation: jd-wiggle 5s ease-in-out infinite; }
.jd-end-line { margin: 0; font-family: var(--jd-head); font-size: clamp(24px, 3vw, 36px); color: var(--jd-tx); }
.jd-end-line span { display: inline-block; color: var(--jd-cherry); animation: jd-beat 1.4s ease-in-out infinite; }
@keyframes jd-beat { 0%, 60%, 100% { transform: scale(1); } 20% { transform: scale(1.25); } 40% { transform: scale(.95); } }
.jd-credits { margin: 14px 0 0; font-size: 14px; color: var(--jd-tx3); }
.jd-credits a { color: var(--jd-gold-l); }

/* The menu bar, in his colours. */
body.cp-theme-justdigitz .cpnav-in { background: rgba(26, 12, 9, .94); border-color: var(--jd-line); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .8); }
body.cp-theme-justdigitz .cpnav-who { color: var(--jd-tx); border-left-color: var(--jd-line); font-family: var(--jd-head); font-weight: 400; }
body.cp-theme-justdigitz .cpnav-av { border-color: var(--jd-cherry); }
body.cp-theme-justdigitz .cpnav-links a { color: var(--jd-tx2); font-family: var(--jd-body); font-weight: 600; }
body.cp-theme-justdigitz .cpnav-links a:hover { color: #fff; background: rgba(216, 30, 58, .3); }
body.cp-theme-justdigitz .cpnav-links a[aria-current="true"] { background: var(--jd-cherry); color: #fff; box-shadow: none; }
body.cp-theme-justdigitz :is(.cpnav-burger, .cpnav-account) { background: var(--jd-panel2); color: var(--jd-tx); }
body.cp-theme-justdigitz .cpnav-burger span { background: var(--jd-gold); }
body.cp-theme-justdigitz .cpnav-cart { background: var(--jd-cherry); color: #fff; box-shadow: 0 4px 0 var(--jd-cherry-d); font-family: var(--jd-head); font-weight: 400; }
body.cp-theme-justdigitz .cpnav-cart:hover { background: var(--jd-gold); color: #1f0f0b; box-shadow: 0 4px 0 #9a7426; }
/* The video player, in his colours. */
body.cp-theme-justdigitz .cp-player { background: radial-gradient(ellipse at 50% 50%, rgba(80, 10, 20, .92), rgba(10, 4, 3, .97) 70%); -webkit-backdrop-filter: none; backdrop-filter: none; }
body.cp-theme-justdigitz .cp-player-frame { border: 3px solid var(--jd-gold); border-radius: 22px; box-shadow: 0 0 0 8px var(--jd-cherry-d), 0 34px 80px rgba(0, 0, 0, .7), 0 0 60px rgba(216, 30, 58, .45); }
body.cp-theme-justdigitz .cp-player-caption { font-family: var(--jd-head); font-weight: 400; color: var(--jd-gold-l); }
body.cp-theme-justdigitz .cp-player-close { background: var(--jd-cherry); color: #fff; border: 2px solid var(--jd-gold); }
body.cp-theme-justdigitz .cp-player-close:hover { background: var(--jd-gold); color: #1f0f0b; }

/* ---- small screens ---- */
@media (max-width: 900px) {
  .jd-hero { grid-template-columns: 1fr; padding: 104px 18px 20px; min-height: 0; text-align: center; }
  .jd-tags, .jd-actions, .jd-socials { justify-content: center; }
  .jd-stage { max-width: 420px; }
  .jd-sec { padding: 26px 18px 16px; }
  .jd-tail { padding: 0 18px; margin: 16px auto; }
  .jd-about-card { grid-template-columns: 1fr; gap: 24px; padding: 26px 20px 24px; }
  .jd-about-art { max-width: 320px; margin: 0 auto; }
  .jd-sitter { left: 50%; width: 96px; margin-left: -48px; }
  .jd-stare { width: calc(100% - 36px); border-radius: 20px; }
  .jd-rail { grid-auto-columns: 86%; }
  .jd-rail.is-tall { grid-auto-columns: 58%; }
  .jd-arena { grid-template-columns: 1fr; padding: 24px 20px 10px; }
  .jd-ring-stage { min-height: 360px; }
  .jd-demon { width: 210px; height: 290px; margin-left: -105px; }
  .jd-join-card { grid-template-columns: 1fr; gap: 24px; padding: 26px 20px; }
  .jd-sec-head { flex-wrap: wrap; }
}

/* ---- calmer when asked ---- */
@media (prefers-reduced-motion: reduce) {
  .jd-air, .jd-glow, .jd-ring, .jd-portrait, .jd-horns, .jd-end-face, .jd-tail-tip, .jd-lid, .jd-soon-eyes, .jd-end-line span, .jd-pigeon, .jd-pigeon img, .jd-arena.is-r2 .jd-demon, .jd-arena.is-r3 .jd-demon, .jd-arena.is-quit, .jd-arena.is-quit .jd-demon { animation: none; }
  .jd-air { display: none; }
  .jd-tail-line { transition: none; stroke-dashoffset: 0; }
  .jd-tail i { transition: none; transform: translateY(-50%) scale(1); }
  .jd-pigeon { left: 70%; }
}
.perf-lite .jd-air { display: none; }
.perf-lite :is(.jd-glow, .jd-ring, .jd-portrait, .jd-horns, .jd-end-face, .jd-tail-tip, .jd-soon-eyes, .jd-end-line span) { animation: none; }
