/* Saurav Shrestha: ANIME MODE theme
   Shonen night-sky energy: One Piece / Bleach / Naruto vibes.
   IMPORTANT: every rule that changes the design is scoped under
   html[data-theme="anime"] so light and dark stay pixel-identical.
   The three small unscoped rules below only hide helper elements
   that exist solely for anime mode. */

/* ---------- anime-only helper elements (hidden in light/dark) ---------- */
.anime-kicker,
.jp-vertical,
.speed-lines { display: none; }
.jp-sub { display: none; }

/* ---------- palette ---------- */
html[data-theme="anime"] {
  --bg: #0A0A1C;
  --surface: #141432;
  --surface-2: #1B1B3A;
  --ink: #F4F2FF;
  --muted: #A9A6CC;
  --hairline: rgba(255, 255, 255, .12);
  --accent: #45E8FF;            /* rasengan cyan */
  --accent-2: #FF2E4C;          /* sharingan crimson */
  --accent-soft: rgba(69, 232, 255, .12);
  --gold: #FFD166;
  --sakura: #FFB3C7;
  --nav-bg: rgba(12, 12, 32, .78);
  --shadow-sm: 0 2px 0 rgba(0, 0, 0, .4);
  --shadow-md: 8px 8px 0 rgba(0, 0, 0, .5);
  --shadow-pill: 0 10px 40px rgba(0, 0, 0, .6), 0 0 24px rgba(69, 232, 255, .14);
  --shadow-comic: 6px 6px 0 rgba(0, 0, 0, .55);
  color-scheme: dark;
}

/* ---------- night sky: starfield + drifting aurora + manga halftone ---------- */
html[data-theme="anime"] body {
  background:
    radial-gradient(1.5px 1.5px at 12% 22%, rgba(255, 255, 255, .9), transparent 100%),
    radial-gradient(1px 1px at 68% 8%, rgba(255, 255, 255, .7), transparent 100%),
    radial-gradient(1.2px 1.2px at 84% 34%, rgba(255, 255, 255, .8), transparent 100%),
    radial-gradient(1px 1px at 32% 64%, rgba(255, 255, 255, .6), transparent 100%),
    radial-gradient(1.6px 1.6px at 52% 44%, rgba(255, 255, 255, .85), transparent 100%),
    radial-gradient(1px 1px at 8% 78%, rgba(255, 255, 255, .6), transparent 100%),
    radial-gradient(1.3px 1.3px at 92% 62%, rgba(255, 255, 255, .75), transparent 100%),
    radial-gradient(1px 1px at 44% 12%, rgba(255, 255, 255, .55), transparent 100%),
    radial-gradient(1.4px 1.4px at 24% 88%, rgba(255, 255, 255, .7), transparent 100%),
    radial-gradient(1px 1px at 76% 90%, rgba(255, 255, 255, .6), transparent 100%),
    radial-gradient(ellipse 80% 55% at 50% -10%, rgba(69, 232, 255, .13), transparent 60%),
    radial-gradient(ellipse 70% 50% at 85% 110%, rgba(255, 46, 76, .09), transparent 60%),
    var(--bg);
}

html[data-theme="anime"] body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1.4px);
  background-size: 14px 14px;
}

html[data-theme="anime"] body::after {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 40% 30% at 30% 20%, rgba(69, 232, 255, .10), transparent 70%),
    radial-gradient(ellipse 45% 35% at 70% 80%, rgba(255, 46, 76, .08), transparent 70%);
  animation: aurora-drift 26s ease-in-out infinite alternate;
}

@keyframes aurora-drift {
  from { transform: translate3d(-3%, -2%, 0); }
  to { transform: translate3d(3%, 2%, 0); }
}

/* ---------- selection & scrollbar ---------- */
html[data-theme="anime"] ::selection { background: var(--accent-2); color: #fff; }
html[data-theme="anime"] { scrollbar-width: thin; scrollbar-color: var(--accent-2) #0A0A1C; }
html[data-theme="anime"] ::-webkit-scrollbar { width: 10px; }
html[data-theme="anime"] ::-webkit-scrollbar-track { background: #0A0A1C; }
html[data-theme="anime"] ::-webkit-scrollbar-thumb { background: var(--accent-2); border-radius: 8px; }

/* ---------- pill nav ---------- */
html[data-theme="anime"] .pill-nav {
  background: var(--nav-bg);
  border: 1px solid rgba(69, 232, 255, .35);
  box-shadow: var(--shadow-pill);
}
html[data-theme="anime"] .nav-btn:hover { background: rgba(69, 232, 255, .12); color: var(--ink); }
html[data-theme="anime"] .nav-btn.active {
  background: var(--accent-2);
  color: #fff;
  box-shadow: 0 0 14px rgba(255, 46, 76, .65);
}
html[data-theme="anime"] .nav-btn.active:hover { background: var(--accent-2); color: #fff; }
html[data-theme="anime"] .nav-btn::after { background: var(--accent-2); color: #fff; }

/* ---------- hero ---------- */
html[data-theme="anime"] .hero { position: relative; overflow: hidden; }

html[data-theme="anime"] .speed-lines {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150vmax;
  height: 150vmax;
  transform: translate(-50%, -50%);
  pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .05) 0deg 2deg, transparent 2deg 8deg);
  -webkit-mask-image: radial-gradient(circle, transparent 18%, #000 55%, transparent 78%);
  mask-image: radial-gradient(circle, transparent 18%, #000 55%, transparent 78%);
  animation: speed-spin 60s linear infinite;
}

@keyframes speed-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

html[data-theme="anime"] .anime-kicker {
  display: inline-block;
  font-weight: 700;
  letter-spacing: .22em;
  font-size: 12.5px;
  color: #fff;
  background: var(--accent-2);
  border: 2px solid #000;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, .55);
  padding: 8px 16px;
  margin-bottom: 20px;
  transform: rotate(-1.2deg);
}

html[data-theme="anime"] .hero h1 .anime-outline {
  -webkit-text-stroke: 2px var(--ink);
  color: transparent;
  paint-order: stroke fill;
  filter: drop-shadow(4px 4px 0 rgba(0, 0, 0, .55));
}

html[data-theme="anime"] .jp-vertical {
  display: block;
  position: absolute;
  right: 54px;
  top: 150px;
  writing-mode: vertical-rl;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .5em;
  color: var(--sakura);
  text-shadow: 0 0 12px rgba(255, 179, 199, .5);
  opacity: .85;
}

html[data-theme="anime"] .availability {
  border: 2px solid #0A0A0A;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, .55);
}

html[data-theme="anime"] .pulse-dot { background: var(--accent-2); }
html[data-theme="anime"] .pulse-dot::after { border-color: var(--accent-2); }

/* manga narrator caption boxes */
html[data-theme="anime"] .label {
  display: inline-block;
  background: #0A0A0A;
  color: #fff;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 7px 14px;
  transform: skewX(-8deg) rotate(-1deg);
  box-shadow: 4px 4px 0 rgba(255, 46, 76, .9);
}

/* ---------- Japanese section subtitles ---------- */
html[data-theme="anime"] .jp-sub {
  display: inline-block;
  margin-left: .55em;
  font-size: .42em;
  font-weight: 700;
  letter-spacing: .32em;
  color: var(--accent-2);
  vertical-align: middle;
  text-shadow: 0 0 14px rgba(255, 46, 76, .45);
  white-space: nowrap;
}

html[data-theme="anime"] .section-head { border-bottom: 3px solid var(--ink); }

/* ---------- manga panels ---------- */
html[data-theme="anime"] .card,
html[data-theme="anime"] .method,
html[data-theme="anime"] .form-card {
  border: 3px solid #0A0A0A;
  box-shadow: var(--shadow-comic);
  background: var(--surface);
}

html[data-theme="anime"] .grid-3 > .card:nth-child(odd),
html[data-theme="anime"] .grid-2 > .card:nth-child(odd) { transform: rotate(-.4deg); }
html[data-theme="anime"] .grid-3 > .card:nth-child(even),
html[data-theme="anime"] .grid-2 > .card:nth-child(even) { transform: rotate(.4deg); }

html[data-theme="anime"] a.card:hover,
html[data-theme="anime"] a.method:hover {
  transform: rotate(0) translate(-2px, -2px);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, .6);
  border-color: var(--accent);
}

html[data-theme="anime"] .portrait-card {
  border: 3px solid #0A0A0A;
  box-shadow: var(--shadow-comic);
  transform: rotate(-1deg);
}
html[data-theme="anime"] .portrait-card:hover {
  transform: rotate(0) translate(-2px, -2px);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, .6);
}

html[data-theme="anime"] .tag {
  border: 2px solid #0A0A0A;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, .5);
  background: var(--surface-2);
  color: var(--ink);
  font-weight: 700;
}

html[data-theme="anime"] .card-icon {
  background: rgba(69, 232, 255, .14);
  color: var(--accent);
  border: 2px solid rgba(69, 232, 255, .4);
}

html[data-theme="anime"] .exp-row { border-bottom: 3px solid #0A0A0A; }
html[data-theme="anime"] .exp-row:first-child { border-top: 3px solid #0A0A0A; }

/* skill bars (present or future) get the chakra gradient */
html[data-theme="anime"] .skill-bar {
  background: var(--surface-2);
  border: 2px solid #0A0A0A;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, .5);
}
html[data-theme="anime"] .skill-bar-fill {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px rgba(69, 232, 255, .6);
}

/* ---------- chunky comic buttons ---------- */
html[data-theme="anime"] .btn {
  border: 3px solid #0A0A0A;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, .6);
  border-radius: 14px;
}
html[data-theme="anime"] .btn-primary { background: var(--accent); color: #06222A; }
html[data-theme="anime"] .btn-primary:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 rgba(0, 0, 0, .6); }
html[data-theme="anime"] .btn-ghost { background: var(--surface-2); color: var(--ink); }
html[data-theme="anime"] .btn-ghost:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 rgba(0, 0, 0, .6); }
html[data-theme="anime"] .btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 rgba(0, 0, 0, .6); }

html[data-theme="anime"] .social-btn {
  border: 2px solid #0A0A0A;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, .5);
  background: var(--surface);
}
html[data-theme="anime"] .social-btn:hover { border-color: var(--accent); color: var(--accent); transform: translate(-2px, -2px); box-shadow: 5px 5px 0 rgba(0, 0, 0, .55); }

/* ---------- skills ticker ---------- */
html[data-theme="anime"] .ticker-item { color: var(--muted); }
html[data-theme="anime"] .ticker-item::after { background: var(--accent-2); box-shadow: 0 0 8px rgba(255, 46, 76, .8); }

/* ---------- blog list rows ---------- */
html[data-theme="anime"] .post-list { border-top: none; }

html[data-theme="anime"] .post-row {
  display: block;
  background: var(--surface);
  border: 3px solid #0A0A0A;
  box-shadow: var(--shadow-comic);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 18px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
html[data-theme="anime"] .post-row:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, .6);
  border-color: var(--accent);
}
html[data-theme="anime"] .post-row:hover h2 { color: var(--ink); }

html[data-theme="anime"] .post-row-arrow {
  border: 3px solid #0A0A0A;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, .5);
  color: var(--muted);
  background: var(--surface-2);
}
html[data-theme="anime"] .post-row:hover .post-row-arrow {
  background: var(--accent-2);
  border-color: #0A0A0A;
  color: #fff;
  transform: translate(3px, -3px);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, .55);
}

/* ---------- article pages ---------- */
html[data-theme="anime"] .article-body pre {
  border: 3px solid #0A0A0A;
  box-shadow: var(--shadow-comic);
  background: #101024;
}
html[data-theme="anime"] .article-body h2 {
  text-shadow: 3px 3px 0 rgba(0, 0, 0, .6);
}
html[data-theme="anime"] .post-nav { border-top: 3px solid #0A0A0A; }

/* ---------- footer ---------- */
html[data-theme="anime"] footer { border-top: 3px solid #0A0A0A; }

/* ---------- sakura petal canvas ---------- */
#petals {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  html[data-theme="anime"] .jp-vertical { display: none; }
  html[data-theme="anime"] .anime-kicker { letter-spacing: .14em; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html[data-theme="anime"] body::after,
  html[data-theme="anime"] .speed-lines,
  html[data-theme="anime"] .ticker-track { animation: none; }
  html[data-theme="anime"] .grid-3 > .card,
  html[data-theme="anime"] .grid-2 > .card { transform: none; }
  html[data-theme="anime"] .portrait-card,
  html[data-theme="anime"] .portrait-card::after,
  html[data-theme="anime"] .portrait-card img,
  html[data-theme="anime"] .portrait-shine::before { animation: none; }
}

/* ---------- anime portrait: crossfade from photo to anime illustration ---------- */
.profile-anime,
.portrait-shine { display: none; }
html[data-theme="anime"] .portrait-card { position: relative; z-index: 0; }
html[data-theme="anime"] .portrait-card img.profile-anime {
  display: block;
  position: absolute;
  top: 12px;
  left: 12px;
  width: calc(100% - 24px);
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  border-radius: 18px;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  animation: photo-kenburns 9s ease-in-out infinite, anime-fadein 1.1s ease .1s forwards;
}
@keyframes anime-fadein { to { opacity: 1; } }

/* ---------- shine sweep across the portrait ---------- */
html[data-theme="anime"] .portrait-shine {
  display: block;
  position: absolute;
  top: 12px;
  left: 12px;
  width: calc(100% - 24px);
  aspect-ratio: 4 / 4.6;
  border-radius: 18px;
  overflow: hidden;
  z-index: 3;
  pointer-events: none;
}
html[data-theme="anime"] .portrait-shine::before {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  width: 45%;
  left: -60%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .32), transparent);
  transform: skewX(-18deg);
  animation: shine-sweep 6.5s ease-in-out infinite;
}
@keyframes shine-sweep {
  0%, 55% { left: -60%; }
  85%, 100% { left: 135%; }
}

/* ---------- animated portrait: float + energy aura ---------- */
html[data-theme="anime"] .portrait-card {
  animation: portrait-float 5.5s ease-in-out infinite;
}
@keyframes portrait-float {
  0%, 100% { transform: rotate(-1deg) translateY(0); }
  50% { transform: rotate(-1deg) translateY(-12px); }
}
html[data-theme="anime"] .portrait-card::after {
  content: "";
  position: absolute;
  inset: -26px;
  z-index: -1;
  border-radius: 44px;
  background:
    radial-gradient(closest-side, rgba(69, 232, 255, .38), transparent 70%),
    radial-gradient(closest-side at 80% 90%, rgba(255, 46, 76, .28), transparent 70%);
  filter: blur(18px);
  animation: aura-pulse 3.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes aura-pulse {
  0%, 100% { opacity: .65; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.07); }
}

/* ---------- anime mode entry transition (built by JS; unscoped on purpose) ---------- */
.anime-transition { position: fixed; inset: 0; z-index: 9999; pointer-events: none; }
.anime-transition .at-flash {
  position: absolute; inset: 0; background: #fff; opacity: 0;
  animation: at-flash .45s ease-out forwards;
}
@keyframes at-flash { 0% { opacity: 0; } 25% { opacity: 1; } 100% { opacity: 0; } }
.anime-transition .at-burst {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: #0A0A1C; opacity: 0; overflow: hidden;
  animation: at-burst-in .25s ease .18s forwards;
}
@keyframes at-burst-in { to { opacity: 1; } }
.anime-transition .at-burst::before {
  content: ""; position: absolute; inset: -60%;
  background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(255, 255, 255, .08) 0 5deg, transparent 5deg 11deg);
  animation: at-spin 7s linear infinite;
}
@keyframes at-spin { to { transform: rotate(360deg); } }
.anime-transition .at-don {
  position: relative; font-weight: 900; letter-spacing: .02em;
  font-size: clamp(84px, 20vw, 220px); color: #FFD166;
  -webkit-text-stroke: 3px #0A0A1C;
  text-shadow: 10px 10px 0 #FF2E4C;
  transform: scale(.2) rotate(-8deg); opacity: 0;
  animation: at-don-pop .5s cubic-bezier(.18, 2.4, .4, 1) .3s forwards;
}
@keyframes at-don-pop { to { transform: scale(1) rotate(-8deg); opacity: 1; } }
.anime-transition .at-sub {
  position: relative;
  margin-top: 20px;
  font-weight: 800;
  font-size: clamp(20px, 4vw, 44px);
  letter-spacing: .35em;
  text-indent: .35em;
  color: #fff;
  -webkit-text-stroke: 1px #0A0A1C;
  text-shadow: 4px 4px 0 #FF2E4C;
  opacity: 0;
  transform: translateY(16px);
  animation: at-sub-in .45s ease .6s forwards;
}
@keyframes at-sub-in { to { opacity: 1; transform: translateY(0); } }
.anime-transition.at-out { animation: at-out .35s ease forwards; }
@keyframes at-out { to { opacity: 0; visibility: hidden; } }

/* ---------- animated portrait photo ---------- */
html[data-theme="anime"] .portrait-card img {
  filter: saturate(1.28) contrast(1.06);
  animation: photo-kenburns 9s ease-in-out infinite;
}
@keyframes photo-kenburns {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

/* ---------- content design: episode badges, marker ink, narrator details ---------- */
/* episode numbering on every section, manga chapter style */
html[data-theme="anime"] body { counter-reset: ep; }
html[data-theme="anime"] .section-head h2::before {
  counter-increment: ep;
  content: "EP." counter(ep);
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .2em;
  background: var(--accent-2);
  color: #fff;
  border: 2px solid #0A0A0A;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, .5);
  padding: 6px 10px;
  margin-right: 14px;
  vertical-align: middle;
  transform: rotate(-2deg);
}
html[data-theme="anime"] .section-head h2,
html[data-theme="anime"] .page-head h1 {
  text-shadow: 4px 4px 0 rgba(0, 0, 0, .55);
}

/* marker highlight under the hero tagline */
html[data-theme="anime"] .hero h1 .serif {
  background: linear-gradient(transparent 60%, rgba(255, 46, 76, .5) 60%);
  padding: 0 .1em;
}

/* lead paragraphs get a manga panel edge */
html[data-theme="anime"] .lead {
  border-left: 4px solid var(--accent-2);
  padding-left: 18px;
}

/* experience dates become sticker badges */
html[data-theme="anime"] .exp-date {
  display: inline-block;
  background: var(--accent);
  color: #06222A;
  border: 2px solid #0A0A0A;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, .5);
  padding: 5px 12px;
  font-weight: 800;
  transform: rotate(1deg);
}

/* card titles get ink punch */
html[data-theme="anime"] .card h3 { text-shadow: 2px 2px 0 rgba(0, 0, 0, .45); }

/* footer sign-off as a mini narrator box */
html[data-theme="anime"] .footer-inner span:last-child {
  background: #0A0A0A;
  color: #fff;
  padding: 5px 12px;
  font-size: 12px;
  letter-spacing: .08em;
  transform: skewX(-8deg);
  box-shadow: 3px 3px 0 rgba(69, 232, 255, .8);
}

/* ---------- JUJUTSU KAISEN sub-mode: Sukuna's Malevolent Shrine ---------- */
html[data-theme="anime"][data-anime="jjk"] {
  --accent: #E5383B;            /* cursed blood crimson */
  --accent-2: #5C0A14;          /* dried blood */
  --accent-soft: rgba(229, 56, 59, .12);
  --sakura: #E5383B;
  --shadow-pill: 0 10px 40px rgba(0, 0, 0, .7), 0 0 26px rgba(229, 56, 59, .22);
}

/* domain air: black shrine gloom lit by blood-red cursed energy */
html[data-theme="anime"][data-anime="jjk"] body::after {
  background:
    radial-gradient(ellipse 45% 32% at 50% 12%, rgba(229, 56, 59, .14), transparent 70%),
    radial-gradient(ellipse 50% 40% at 85% 90%, rgba(122, 14, 30, .20), transparent 70%),
    radial-gradient(ellipse 40% 30% at 10% 85%, rgba(0, 0, 0, .5), transparent 70%);
}

/* the domain's name looms over the page like a sure-hit */
html[data-theme="anime"][data-anime="jjk"]::before {
  content: "領域展開";
  position: fixed;
  right: -1.5rem;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-weight: 900;
  font-size: clamp(110px, 20vw, 280px);
  letter-spacing: .1em;
  color: transparent;
  -webkit-text-stroke: 2px rgba(229, 56, 59, .13);
  pointer-events: none;
  z-index: 0;
}

/* narrator boxes, leads and kickers bleed crimson */
html[data-theme="anime"][data-anime="jjk"] .label { box-shadow: 4px 4px 0 rgba(92, 10, 20, .95); }
html[data-theme="anime"][data-anime="jjk"] .lead { border-left-color: var(--accent); }
html[data-theme="anime"][data-anime="jjk"] .hero h1 .serif {
  background: linear-gradient(transparent 60%, rgba(229, 56, 59, .45) 60%);
}

/* jjk portrait: hide the One Piece illustration, curse-tint the real photo */
html[data-theme="anime"][data-anime="jjk"] .portrait-card img.profile-anime { display: none; }
html[data-theme="anime"][data-anime="jjk"] .portrait-card > img:not(.profile-anime):not(.profile-jjk) {
  filter: grayscale(1) contrast(1.35) brightness(.92);
}
/* user-supplied JJK art (profile-jjk.jpg) takes over when present */
.profile-jjk { display: none; }
html[data-theme="anime"][data-anime="jjk"] .portrait-card.has-jjk-art img.profile-jjk {
  display: block;
  position: absolute;
  top: 12px;
  left: 12px;
  width: calc(100% - 24px);
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  border-radius: 18px;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  animation: photo-kenburns 9s ease-in-out infinite, anime-fadein 1.1s ease .1s forwards;
}
html[data-theme="anime"][data-anime="jjk"] .portrait-card.has-jjk-art .portrait-shine {
  background: transparent;
  mix-blend-mode: normal;
}
html[data-theme="anime"][data-anime="jjk"] .portrait-shine {
  background: rgba(165, 22, 26, .30);
  mix-blend-mode: multiply;
}
html[data-theme="anime"][data-anime="jjk"] .portrait-card::after {
  background:
    radial-gradient(closest-side, rgba(229, 56, 59, .42), transparent 70%),
    radial-gradient(closest-side at 80% 90%, rgba(92, 10, 20, .45), transparent 70%);
}

/* tabs bleed crimson in jjk mode */
html[data-theme="anime"][data-anime="jjk"] .mode-tab.active {
  background: #C1121F;
  box-shadow: -6px 0 28px rgba(229, 56, 59, .55), -6px 6px 0 rgba(0, 0, 0, .45);
}
html[data-theme="anime"][data-anime="jjk"] .sub-tab.is-active {
  background: #C1121F;
  box-shadow: -4px 0 18px rgba(229, 56, 59, .5);
}

/* domain expansion entry: 領域展開 in blood on black */
.at-jjk .at-flash { background: #5C0A14; }
.at-jjk .at-burst { background: #080405; }
.at-jjk .at-burst::before {
  background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(229, 56, 59, .10) 0 5deg, transparent 5deg 11deg);
}
.at-jjk .at-don {
  color: #E5383B;
  -webkit-text-stroke: 3px #080405;
  text-shadow: 10px 10px 0 #2B060B, 0 0 60px rgba(229, 56, 59, .8);
  font-size: clamp(54px, 12vw, 150px);
}
.at-jjk .at-sub { text-shadow: 4px 4px 0 #5C0A14; }
