/* AilaLink — "Runaway Demoness" (app/Views/creators/ailalink.php).
   Near-black with her pastel pink and a little blood red, pink and black
   hearts drifting up. Her name and the titles are calligraphy with horns on
   top; everything else is soft and round so it stays cozy. 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: 'Great Vibes'; src: url('/assets/fonts/great-vibes-400-latin.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Quicksand'; src: url('/assets/fonts/quicksand-600-latin.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Quicksand'; src: url('/assets/fonts/quicksand-700-latin.woff2') format('woff2'); font-weight: 700; font-display: swap; }

body.cp-theme-ailalink {
  --al-ink: #0e090c; --al-night: #160f15; --al-panel: #1e1520; --al-panel2: #2a1c2a; --al-line: rgba(229, 167, 197, .22);
  --al-pink: #e5a7c5; --al-pink-l: #ffd3e7; --al-hot: #ff7eb6; --al-blood: #b30903; --al-blood-l: #e3262f;
  --al-tx: #fbeef5; --al-tx2: #dcc3d1; --al-tx3: #a68c9b;
  --al-script: 'Great Vibes', Georgia, serif;
  --al-body: 'Quicksand', system-ui, sans-serif;
  --scroll-acc: #e5a7c5;
  background: var(--al-ink);
}
html:has(> body.cp-theme-ailalink) { --scroll-acc: #e5a7c5; }

.al { position: relative; overflow-x: clip; padding: 0 0 40px; color: var(--al-tx); font-family: var(--al-body); font-weight: 600; background:
  radial-gradient(ellipse 60% 45% at 75% 8%, rgba(229, 167, 197, .2), transparent 70%),
  radial-gradient(ellipse 50% 40% at 6% 30%, rgba(179, 9, 3, .2), transparent 70%),
  radial-gradient(ellipse 70% 30% at 90% 62%, rgba(255, 126, 182, .1), transparent 70%),
  radial-gradient(ellipse 80% 30% at 50% 100%, rgba(179, 9, 3, .16), transparent 70%),
  linear-gradient(180deg, #170d14 0%, var(--al-ink) 40%, #120a10 100%); }
.al img { display: block; max-width: 100%; }

/* ---- the air: hearts drifting up, pink, black and red (one fixed layer) ---- */
.al-air { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.al-air i { position: absolute; bottom: -30px; font-style: normal; font-size: 16px; opacity: 0; animation: al-rise 14s linear infinite; }
.al-air i.is-p { color: var(--al-pink); }
.al-air i.is-r { color: var(--al-blood-l); }
.al-air i.is-b { color: #000; text-shadow: 0 0 1px rgba(229, 167, 197, .7), 0 0 8px rgba(229, 167, 197, .25); }
.al-air i:nth-child(3n) { animation-duration: 18s; font-size: 12px; }
.al-air i:nth-child(4n) { animation-duration: 11s; font-size: 21px; }
@keyframes al-rise {
  0% { opacity: 0; transform: translate3d(0, 0, 0) rotate(-10deg); }
  10% { opacity: .6; }
  50% { transform: translate3d(20px, -55vh, 0) rotate(8deg); }
  85% { opacity: .35; }
  100% { opacity: 0; transform: translate3d(-14px, -110vh, 0) rotate(-6deg); }
}

/* ---- type ---- */
.al-kick { margin: 0 0 10px; font-family: var(--al-body); font-weight: 700; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--al-pink); }
/* Calligraphy titles; padding keeps the swashes inside the line box. */
.al-title { margin: 0; padding: .1em .12em 0 .04em; text-transform: none; font-family: var(--al-script); font-weight: 400; font-size: clamp(44px, 5.2vw, 68px); line-height: 1.15; letter-spacing: .01em; color: var(--al-tx); }
.al-title em { font-style: normal; color: var(--al-pink); }
.al-text { margin: 12px 0 0; font-size: 17px; font-weight: 600; line-height: 1.7; color: var(--al-tx2); }
.al-text a { color: var(--al-pink-l); border-bottom: 1px solid currentColor; }

/* ---- panels ---- */
.al-panel { position: relative; border: 2px solid var(--al-line); border-radius: 28px; background:
  radial-gradient(ellipse 80% 60% at 100% 0%, rgba(229, 167, 197, .12), transparent 70%),
  radial-gradient(ellipse 60% 50% at 0% 100%, rgba(179, 9, 3, .12), transparent 70%),
  linear-gradient(160deg, var(--al-panel2), var(--al-panel) 60%, var(--al-night));
  box-shadow: 0 22px 50px -18px rgba(0, 0, 0, .75), inset 0 1px 0 rgba(255, 211, 231, .08); }

/* ---- hero ---- */
.al-hero { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 30px; max-width: 1240px; min-height: min(100vh, 880px); margin: 0 auto; padding: 120px 32px 30px; }
/* Her name in calligraphy, pink with a black edge, two horns on top. */
.al-name { position: relative; display: inline-block; margin: 0; padding: .42em .16em .12em .06em; text-transform: none; font-family: var(--al-script); font-weight: 400; font-size: clamp(84px, 11.5vw, 176px); line-height: 1; letter-spacing: .01em; color: var(--al-pink); text-shadow: 0 4px 0 #000, 0 0 2px #000, 0 18px 44px rgba(229, 167, 197, .35); overflow-wrap: anywhere; }
.al-name span { position: relative; z-index: 1; }
.al-horns { position: absolute; z-index: 0; top: .04em; left: 50%; width: 1.5em; height: auto; margin-left: -.75em; fill: #050304; filter: drop-shadow(0 0 1px rgba(229, 167, 197, .6)); transform-origin: 50% 100%; animation: al-wiggle 6s ease-in-out infinite; }
@keyframes al-wiggle { 0%, 84%, 100% { transform: rotate(0); } 88% { transform: rotate(-4deg); } 92% { transform: rotate(3deg); } 96% { transform: rotate(-1deg); } }
.al-summary { max-width: 560px; margin: 16px 0 0; font-size: clamp(17px, 1.6vw, 20px); font-weight: 600; line-height: 1.55; color: var(--al-pink-l); }
.al-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.al-tags li { padding: 6px 14px; border-radius: 40px; background: rgba(229, 167, 197, .1); border: 1px solid rgba(229, 167, 197, .45); color: var(--al-tx); font-size: 14px; font-weight: 700; }
.al-tags li::before { content: "♥ "; color: var(--al-blood-l); }
.al-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.al-btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border: 2px solid rgba(229, 167, 197, .5); border-radius: 40px; background: transparent; color: var(--al-tx); font-family: var(--al-body); font-weight: 700; 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; }
.al-btn:hover { transform: translateY(-3px); border-color: var(--al-pink); box-shadow: 0 10px 24px -10px rgba(229, 167, 197, .6); }
.al-btn.is-hot { border-color: var(--al-pink); background: var(--al-pink); color: #1a0d16; box-shadow: 0 5px 0 #9c5f7d; }
.al-btn.is-hot:hover { background: var(--al-pink-l); border-color: var(--al-pink-l); box-shadow: 0 8px 0 #9c5f7d, 0 16px 30px -10px rgba(229, 167, 197, .8); }
.al-socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.al-socials a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--al-line); color: var(--al-tx2); transition: color .15s, border-color .15s, background-color .15s, transform .18s cubic-bezier(.3, 1.6, .5, 1); }
.al-socials a:hover { color: #1a0d16; background: var(--al-pink); border-color: var(--al-pink); transform: translateY(-3px) scale(1.06); }
.al-socials svg { width: 18px; height: 18px; fill: currentColor; }

/* Her stage: a pink glow, a summoning circle of hearts turning slowly, her. */
.al-stage { position: relative; display: grid; place-items: end center; width: 100%; max-width: 560px; height: min(78vh, 720px); justify-self: center; }
.al-glow { position: absolute; left: 50%; top: 46%; width: 92%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(229, 167, 197, .45) 0%, rgba(179, 9, 3, .22) 45%, transparent 70%); animation: al-breathe 5s ease-in-out infinite; }
@keyframes al-breathe { 0%, 100% { opacity: .8; transform: translate(-50%, -50%) scale(.96); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.03); } }
.al-sigil { position: absolute; left: 50%; top: 46%; width: 96%; aspect-ratio: 1; margin: -48% 0 0 -48%; overflow: visible; animation: al-spin 70s linear infinite; }
.al-sigil circle { fill: none; stroke: rgba(229, 167, 197, .35); stroke-width: .8; }
.al-sigil circle + circle { stroke: rgba(179, 9, 3, .45); stroke-dasharray: 2 3; }
.al-sigil path { fill: none; stroke: rgba(229, 167, 197, .22); stroke-width: 1.2; }
.al-sigil text { font-size: 10px; fill: var(--al-pink); text-anchor: middle; }
.al-sigil text:nth-of-type(3n+1) { fill: var(--al-blood-l); }
@keyframes al-spin { to { transform: rotate(360deg); } }
.al-figure { position: relative; z-index: 1; width: auto; height: 100%; max-height: 100%; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .6)); transform-origin: 50% 100%; animation: al-sway 7s ease-in-out infinite;
  /* The art stops at her thighs: fade the cut into the glow. */
  -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent 99%); mask-image: linear-gradient(180deg, #000 80%, transparent 99%); }
.al-figure.is-round { width: 70%; height: auto; aspect-ratio: 1; margin-bottom: 15%; border-radius: 50%; object-fit: cover; border: 4px solid var(--al-pink); -webkit-mask-image: none; mask-image: none; }
@keyframes al-sway { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-8px) rotate(-.8deg); } }

/* ---- between sections ---- */
.al-div { position: relative; z-index: 1; display: flex; align-items: center; gap: 18px; max-width: 1240px; margin: 30px auto; padding: 0 32px; }
.al-div i { flex: 1; height: 2px; background: linear-gradient(90deg, transparent, var(--al-line) 30%, rgba(229, 167, 197, .5)); transform: scaleX(0); transition: transform 1.2s ease; }
.al-div i:first-child { transform-origin: 100% 50%; }
.al-div i:last-child { transform-origin: 0 50%; background: linear-gradient(270deg, transparent, var(--al-line) 30%, rgba(229, 167, 197, .5)); }
.al-div.is-in i { transform: scaleX(1); }
.al-div span { position: relative; display: grid; place-items: center; width: 54px; height: 50px; }
.al-div .al-horns { top: -4px; width: 54px; margin-left: -27px; animation: none; }
.al-div b { position: relative; margin-top: 14px; font-size: 26px; line-height: 1; color: var(--al-blood-l); animation: al-beat 1.6s ease-in-out infinite; }
@keyframes al-beat { 0%, 60%, 100% { transform: scale(1); } 20% { transform: scale(1.22); } 40% { transform: scale(.95); } }

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

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

/* The stare: her banner of heart eyes across the page, beating like a heart. */
.al-stare { position: relative; z-index: 1; overflow: hidden; max-width: 1240px; width: calc(100% - 64px); max-height: 340px; aspect-ratio: 3 / 1; margin: 40px auto 10px; border-radius: 28px; border: 3px solid var(--al-pink); box-shadow: 0 0 0 6px #000, 0 0 40px rgba(229, 167, 197, .3); }
.al-stare img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 55%; animation: al-thump 2.4s ease-in-out infinite; }
@keyframes al-thump { 0%, 50%, 100% { transform: scale(1); } 12% { transform: scale(1.035); } 24% { transform: scale(1.01); } 34% { transform: scale(1.03); } }
.al-stare::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 55%, transparent 45%, rgba(14, 9, 12, .55)); }
.al-stare-note { position: absolute; z-index: 1; right: 16px; bottom: 12px; padding: 4px 12px; border-radius: 40px; background: rgba(14, 9, 12, .82); color: var(--al-pink-l); font-size: 13px; font-weight: 700; letter-spacing: .08em; }
/* Clicking it (creators/ailalink.js): a wobble each click, hearts out of it,
   and enough clicks swap her eyes for her fangs (and back again). */
.al-stare.is-live { cursor: pointer; -webkit-tap-highlight-color: transparent; user-select: none; }
.al-stare.is-live:focus-visible { outline: 3px solid var(--al-pink-l); outline-offset: 6px; }
.al-stare-fangs { position: absolute; inset: 0; opacity: 0; transition: opacity .25s ease; }
.al-stare-eyes { transition: opacity .25s ease; }
.al-stare.is-fangs .al-stare-fangs { opacity: 1; }
.al-stare.is-fangs .al-stare-eyes { opacity: 0; }
.al-stare.is-tapped { animation: al-wobble .28s ease; }
@keyframes al-wobble { 30% { transform: scale(.985) rotate(-.4deg); } 65% { transform: scale(1.01) rotate(.3deg); } }
.al-stare.is-flip { animation: al-chomp .55s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes al-chomp { 0% { transform: scale(1); } 30% { transform: scale(.94, 1.06); } 60% { transform: scale(1.04, .96); } 100% { transform: none; } }
.al-stare.is-flip::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(circle, rgba(255, 211, 231, .9), rgba(229, 38, 47, .7)); animation: al-flash .5s ease forwards; }
@keyframes al-flash { 0% { opacity: 0; } 30% { opacity: .9; } 100% { opacity: 0; } }
/* The hearts: one fixed layer over the page, so they fly past the band's edges. */
.al-burst { position: fixed; inset: 0; z-index: 90; overflow: hidden; pointer-events: none; }
.al-burst i { position: absolute; left: 0; top: 0; font-style: normal; line-height: 1; color: var(--al-pink); text-shadow: 0 2px 6px rgba(0, 0, 0, .45); animation: al-fly var(--t, .9s) cubic-bezier(.2, .7, .3, 1) forwards; }
.al-burst i.is-r { color: var(--al-blood-l); }
.al-burst i.is-l { color: var(--al-pink-l); }
.al-burst i.is-b { color: #000; text-shadow: 0 0 2px rgba(229, 167, 197, .9); }
@keyframes al-fly {
  0% { opacity: 1; transform: translate(var(--x0), var(--y0)) scale(.4) rotate(0); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--x1), var(--y1)) scale(var(--s, 1)) rotate(var(--r, 30deg)); }
}

/* Videos */
.al-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; }
.al-rail.is-tall { grid-auto-columns: clamp(190px, 18%, 230px); }
.al-rail::-webkit-scrollbar { height: 10px; }
.al-rail::-webkit-scrollbar-thumb { background: var(--al-pink); border-radius: 10px; }
.al-rail::-webkit-scrollbar-track { background: var(--al-panel); border-radius: 10px; }
.al-card { scroll-snap-align: start; margin: 0; }
.al-card-thumb { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 18px; border: 2px solid var(--al-line); background: var(--al-panel); transition: border-color .18s, transform .22s cubic-bezier(.3, 1.6, .5, 1), box-shadow .18s; }
.al-card.is-tall .al-card-thumb { aspect-ratio: 9 / 16; }
.al-card-thumb > a, .al-card-thumb img, .al-card-thumb iframe { display: block; width: 100%; height: 100%; }
.al-card-thumb img { object-fit: cover; }
.al-card:hover .al-card-thumb { border-color: var(--al-pink); transform: translateY(-4px); box-shadow: 0 14px 28px -12px rgba(229, 167, 197, .6); }
/* The play button is a heart. */
.al-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); }
.al-play svg { width: 100%; height: 100%; fill: var(--al-pink); filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .6)); }
.al-play .al-play-tri { fill: #1a0d16; }
.al-card:hover .al-play { transform: scale(1.14); }
.al-chip { position: absolute; left: 10px; top: 10px; padding: 3px 10px; border-radius: 40px; background: rgba(14, 9, 12, .85); color: var(--al-pink-l); font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.al .al-card-title { margin: 10px 2px 0; font-family: var(--al-body); font-weight: 600; font-size: 15px; line-height: 1.4; letter-spacing: 0; text-transform: none; color: var(--al-tx); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.al-empty, .al-follow { max-width: 620px; padding: 20px 24px; }
.al-follow { display: flex; align-items: center; gap: 12px; }
.al-follow svg { width: 22px; height: 22px; fill: var(--al-pink); }
.al-follow .al-more { margin-left: auto; }

/* ---- lights out (creators/ailalink.js) ----
   The hallway under a dark layer three times its size with a hole in the
   middle: the torch. Moving the torch moves that layer (transform only), so
   nothing repaints while you look around. */
.al-hall { position: relative; overflow: hidden; aspect-ratio: 16 / 9; max-height: 640px; width: 100%; border-radius: 28px; border: 3px solid #000; box-shadow: 0 0 0 2px var(--al-line), 0 30px 60px -20px rgba(0, 0, 0, .85); cursor: crosshair; touch-action: pan-y; }
.al-hall img { width: 100%; height: 100%; object-fit: cover; }
.al-dark { position: absolute; left: -100%; top: -100%; width: 300%; height: 300%; pointer-events: none; will-change: transform; background: radial-gradient(circle at 50% 50%, transparent 0, transparent 90px, rgba(4, 2, 6, .55) 140px, rgba(4, 2, 6, .96) 230px); animation: al-sweep 12s ease-in-out infinite; }
.al-hall.is-held .al-dark { animation: none; }
/* No script, or nobody pointing yet: the beam looks around by itself.
   A step of 1% here is a third of the hall (the layer is 3x its size). */
@keyframes al-sweep {
  0%, 100% { transform: translate(-9.3%, 3.3%); }
  25% { transform: translate(-.7%, -3.3%); }
  50% { transform: translate(9.3%, -6.7%); }
  75% { transform: translate(3.3%, 6%); }
}
.al-hall-note { position: absolute; left: 50%; bottom: 14px; margin: 0; padding: 5px 14px; border-radius: 40px; background: rgba(4, 2, 6, .8); color: var(--al-pink-l); font-size: 13px; font-weight: 700; letter-spacing: .08em; transform: translateX(-50%); pointer-events: none; transition: opacity .4s; }
.al-hall.is-held .al-hall-note { opacity: 0; }
.al-lights-copy { max-width: 640px; }

/* ---- demon take-out (creators/ailalink.js) ---- */
.al-counter { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: 26px; align-items: center; padding: 30px 34px; }
.al-shelf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: end; padding-bottom: 14px; border-bottom: 6px solid #000; box-shadow: 0 2px 0 var(--al-line); }
.al-bag { position: relative; display: grid; justify-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--al-tx); cursor: pointer; transform-origin: 50% 100%; transition: transform .22s cubic-bezier(.3, 1.6, .5, 1); -webkit-tap-highlight-color: transparent; }
.al-bag img { width: 100%; height: auto; filter: drop-shadow(0 12px 12px rgba(0, 0, 0, .55)); }
.al-bag:nth-child(2) img { animation: al-idle 4s ease-in-out infinite; animation-delay: -1.3s; }
.al-bag:nth-child(1) img, .al-bag:nth-child(3) img { animation: al-idle 4s ease-in-out infinite; }
@keyframes al-idle { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(1.5deg) translateY(-3px); } }
.al-bag:hover { transform: translateY(-6px) rotate(-2deg); }
.al-bag:focus-visible { outline: 3px solid var(--al-pink); outline-offset: 6px; border-radius: 16px; }
.al-bag-name { padding: 3px 12px; border-radius: 40px; background: rgba(14, 9, 12, .8); border: 1px solid var(--al-line); font-size: 13px; font-weight: 700; letter-spacing: .06em; }
.al-bag.is-picked .al-bag-name { background: var(--al-pink); color: #1a0d16; border-color: var(--al-pink); }
.al-bag.is-ordered { animation: al-hop .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes al-hop { 30% { transform: translateY(-22px) rotate(-6deg) scale(1.04); } 60% { transform: translateY(0) rotate(4deg) scale(.98, 1.02); } }
/* The ticket: a little receipt, printing out of the slot. */
.al-ticket-wrap { overflow: hidden; padding: 0 4px 10px; }
.al-ticket { position: relative; padding: 18px 18px 20px; background: #fdf5f9; color: #241520; border-radius: 4px 4px 0 0; font-family: var(--al-body); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .8);
  -webkit-mask: radial-gradient(circle at 8px 100%, transparent 6px, #000 6.5px) -8px 0 / 16px 100% repeat-x; mask: radial-gradient(circle at 8px 100%, transparent 6px, #000 6.5px) -8px 0 / 16px 100% repeat-x; }
.al-ticket.is-printing { animation: al-print .6s ease-out; }
@keyframes al-print { 0% { transform: translateY(-104%); } 100% { transform: translateY(0); } }
.al-ticket-head { margin: 0 0 10px; padding-bottom: 8px; border-bottom: 2px dashed rgba(36, 21, 32, .3); font-family: var(--al-script); font-size: 32px; line-height: 1.15; color: var(--al-blood); text-align: center; }
.al-ticket-line { margin: 6px 0 0; font-size: 16px; font-weight: 700; line-height: 1.4; }
.al-ticket-line.is-small { font-size: 14px; font-weight: 600; color: #5b4152; }
.al-chaos { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #5b4152; }
.al-chaos b { position: relative; flex: 1; height: 12px; border-radius: 20px; background: rgba(36, 21, 32, .12); overflow: hidden; }
.al-chaos i { position: absolute; inset: 0; border-radius: 20px; background: linear-gradient(90deg, var(--al-pink), var(--al-hot) 50%, var(--al-blood)); transform-origin: left; transform: scaleX(0); transition: transform .6s cubic-bezier(.3, 1.4, .5, 1) .3s; }
.al-ticket-foot { margin: 12px 0 0; padding-top: 8px; border-top: 2px dashed rgba(36, 21, 32, .3); font-size: 13px; color: #5b4152; }
.al-ticket-foot b { color: var(--al-blood); }

/* ---- gallery ---- */
/* Masonry columns: her art is every shape, so each piece shows whole. */
.al-gallery { columns: 3 260px; column-gap: 18px; margin: 0; padding: 0; list-style: none; }
.al-gallery.is-one { columns: auto; max-width: 460px; }
.al-gallery li { break-inside: avoid; margin-bottom: 18px; }
.al-gallery a { position: relative; display: block; overflow: hidden; border-radius: 24px; border: 2px solid var(--al-line); background: radial-gradient(circle at 50% 40%, rgba(229, 167, 197, .2), transparent 70%), var(--al-panel); transition: border-color .18s, transform .22s cubic-bezier(.3, 1.6, .5, 1), box-shadow .18s; }
.al-gallery img { width: 100%; height: auto; transition: transform .4s ease; }
.al-gallery li:nth-child(odd) a:hover { transform: translateY(-4px) rotate(-1.2deg); }
.al-gallery li:nth-child(even) a:hover { transform: translateY(-4px) rotate(1.2deg); }
.al-gallery a:hover { border-color: var(--al-pink); box-shadow: 0 16px 30px -12px rgba(229, 167, 197, .6); }
.al-gallery a:hover img { transform: scale(1.04); }
.al-gallery a::after { content: "♥"; position: absolute; right: 12px; bottom: 8px; font-size: 22px; color: var(--al-pink); opacity: 0; transform: scale(.4); transition: opacity .2s, transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.al-gallery a:hover::after { opacity: 1; transform: none; }

/* ---- the viewer (creators/ailalink.js): pink frame, black edge, horns on top ---- */
.al-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(60, 20, 45, .92), rgba(8, 4, 7, .97) 70%); opacity: 0; transition: opacity .22s ease; }
.al-zoom[hidden] { display: none; }
.al-zoom.is-open { opacity: 1; }
.al-zoom-win { position: relative; max-width: min(92vw, 1100px); padding: 10px; border-radius: 26px; background: linear-gradient(160deg, var(--al-pink), #b9718f); box-shadow: 0 0 0 3px #000, 0 30px 70px rgba(0, 0, 0, .7), 0 0 60px rgba(229, 167, 197, .35); transform: scale(.92); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.al-zoom.is-open .al-zoom-win { transform: none; }
.al-zoom-win .al-horns { top: -34px; width: 130px; margin-left: -65px; animation: none; }
.al-zoom-stage { overflow: hidden; border-radius: 18px; background: #000; }
.al-zoom-img { display: block; max-width: min(88vw, 1080px); max-height: calc(84vh - 30px); width: auto; height: auto; margin: 0 auto; }
.al-zoom-x, .al-zoom-nav { display: grid; place-items: center; border: 2px solid var(--al-pink); background: #1a0d16; color: var(--al-pink-l); font-family: var(--al-body); font-weight: 700; cursor: pointer; transition: transform .18s cubic-bezier(.3, 1.6, .5, 1), background-color .15s, color .15s; }
.al-zoom-x { position: absolute; top: -16px; right: -16px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; font-size: 22px; line-height: 1; }
.al-zoom-x:hover, .al-zoom-nav:hover { background: var(--al-pink); color: #1a0d16; transform: scale(1.1); }
.al-zoom-nav { position: absolute; top: 50%; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; font-size: 22px; }
.al-zoom-nav.is-prev { left: 18px; }
.al-zoom-nav.is-next { right: 18px; }
.al-zoom-nav[hidden] { display: none; }
@media (max-width: 700px) { .al-zoom-nav { top: auto; bottom: 18px; margin-top: 0; } }
@media (prefers-reduced-motion: reduce) { .al-zoom, .al-zoom-win { transition: none; } }

/* ---- shop ---- */
.al-soon { overflow: hidden; padding: 26px 0 0; text-align: center; }
.al-soon .al-text { max-width: 560px; margin: 0 auto; padding: 0 20px; }
/* Peeking up over the bottom edge of the card, now and then. */
.al-soon-peek { width: min(70%, 380px); height: auto; margin: 10px auto -2px; transform: translateY(32%); animation: al-peek 7s ease-in-out infinite; }
@keyframes al-peek { 0%, 100% { transform: translateY(32%); } 35%, 65% { transform: translateY(0); } }

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

/* ---- end ---- */
.al-end { position: relative; z-index: 1; border: 0; background: none; max-width: 1240px; margin: 50px auto 0; padding: 40px 32px 10px; text-align: center; }
.al-end-face { width: 150px; height: auto; margin: 0 auto 10px; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .5)); transform-origin: 50% 100%; animation: al-wiggle 5s ease-in-out infinite; }
.al-end-line { margin: 0; padding: .1em .1em 0; font-family: var(--al-script); font-size: clamp(36px, 4.4vw, 56px); color: var(--al-tx); }
.al-end-line span { display: inline-block; font-family: var(--al-body); color: var(--al-pink); animation: al-beat 1.4s ease-in-out infinite; }
.al-credits { margin: 14px 0 0; font-size: 14px; color: var(--al-tx3); }
.al-credits a { color: var(--al-pink-l); }

/* The menu bar, in her colours. */
body.cp-theme-ailalink .cpnav-in { background: rgba(20, 12, 18, .95); border-color: var(--al-line); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .8); }
body.cp-theme-ailalink .cpnav-who { color: var(--al-tx); border-left-color: var(--al-line); font-family: var(--al-script); font-weight: 400; font-size: 1.5em; }
body.cp-theme-ailalink .cpnav-av { border-color: var(--al-pink); }
body.cp-theme-ailalink .cpnav-links a { color: var(--al-tx2); font-family: var(--al-body); font-weight: 700; }
body.cp-theme-ailalink .cpnav-links a:hover { color: #fff; background: rgba(229, 167, 197, .2); }
body.cp-theme-ailalink .cpnav-links a[aria-current="true"] { background: var(--al-pink); color: #1a0d16; box-shadow: none; }
body.cp-theme-ailalink :is(.cpnav-burger, .cpnav-account) { background: var(--al-panel2); color: var(--al-tx); }
body.cp-theme-ailalink .cpnav-burger span { background: var(--al-pink); }
body.cp-theme-ailalink .cpnav-cart { background: var(--al-pink); color: #1a0d16; box-shadow: 0 4px 0 #9c5f7d; font-family: var(--al-body); font-weight: 700; }
body.cp-theme-ailalink .cpnav-cart:hover { background: var(--al-pink-l); box-shadow: 0 4px 0 #9c5f7d; }
/* The video player, in her colours. */
body.cp-theme-ailalink .cp-player { background: radial-gradient(ellipse at 50% 50%, rgba(60, 20, 45, .92), rgba(8, 4, 7, .97) 70%); -webkit-backdrop-filter: none; backdrop-filter: none; }
body.cp-theme-ailalink .cp-player-frame { border: 3px solid var(--al-pink); border-radius: 22px; box-shadow: 0 0 0 8px #000, 0 34px 80px rgba(0, 0, 0, .7), 0 0 60px rgba(229, 167, 197, .35); }
body.cp-theme-ailalink .cp-player-caption { font-family: var(--al-body); font-weight: 700; color: var(--al-pink-l); }
body.cp-theme-ailalink .cp-player-close { background: var(--al-pink); color: #1a0d16; border: 2px solid #000; }
body.cp-theme-ailalink .cp-player-close:hover { background: var(--al-pink-l); }

/* ---- small screens ---- */
@media (max-width: 900px) {
  .al-hero { grid-template-columns: 1fr; padding: 104px 18px 10px; min-height: 0; text-align: center; }
  .al-summary { margin-inline: auto; }
  .al-tags, .al-actions, .al-socials { justify-content: center; }
  .al-stage { height: 520px; max-width: 420px; }
  .al-sec { padding: 26px 18px 16px; }
  .al-div { padding: 0 18px; margin: 18px auto; }
  .al-about-card { grid-template-columns: 1fr; gap: 24px; padding: 28px 20px 24px; }
  .al-about-art { max-width: 320px; margin: 0 auto; }
  .al-sitter { left: auto; right: 14px; width: 96px; }
  .al-stare { width: calc(100% - 36px); border-radius: 20px; aspect-ratio: 2 / 1; }
  .al-rail { grid-auto-columns: 86%; }
  .al-rail.is-tall { grid-auto-columns: 58%; }
  .al-hall { aspect-ratio: 4 / 3; border-radius: 20px; }
  .al-counter { grid-template-columns: 1fr; padding: 24px 18px; }
  .al-ticket-wrap { max-width: 360px; width: 100%; margin: 0 auto; }
  .al-join-card { grid-template-columns: 1fr; gap: 24px; padding: 26px 20px; }
  .al-sec-head { flex-wrap: wrap; }
}
@media (max-width: 520px) {
  .al-stage { height: 440px; }
  .al-facts { grid-template-columns: 1fr; }
  .al-shelf { gap: 8px; }
  .al-bag-name { font-size: 12px; padding: 2px 8px; }
}

/* ---- calmer when asked ---- */
@media (prefers-reduced-motion: reduce) {
  .al-air, .al-glow, .al-sigil, .al-figure, .al-horns, .al-div b, .al-stare img, .al-stare.is-tapped, .al-stare.is-flip, .al-stare.is-flip::before, .al-dark, .al-bag img, .al-bag.is-ordered, .al-ticket.is-printing, .al-soon-peek, .al-end-face, .al-end-line span { animation: none; }
  .al-air, .al-burst { display: none; }
  .al-div i { transition: none; transform: none; }
  .al-soon-peek { transform: none; }
}
.perf-lite .al-air { display: none; }
.perf-lite :is(.al-glow, .al-sigil, .al-figure, .al-horns, .al-div b, .al-stare img, .al-dark, .al-bag img, .al-soon-peek, .al-end-face, .al-end-line span) { animation: none; }
