/* Character detail page.
   Loaded AFTER /home/style.css: reuses its variables (--card, --muted, --accent,
   --radius…), its topbar, its buttons and its default font (no font added). */

.detail-page {
  --tone-a: #d473d4; /* orchid side */
  --tone-b: #ffb7c5; /* sakura side */
  --ink: #3a1d47;
  --arrow-pink: #ff74b2; /* same pink as the carousel arrows */
  min-height: 100vh;
}

.detail-page .logo-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

/* The character must own the highest z-index of the page */
.detail-page .topbar {
  z-index: 10;
}

/* ---------- Hero: two-tone diagonal ---------- */
.detail-hero {
  position: relative;
  height: calc(100vh - 160px);
  min-height: 520px;
  margin-top: 14px;
  border-radius: 22px;
  overflow: hidden;
  color: var(--ink);
  background:
    /* the site's pastel gradient, laid over the two tones to soften them */
    linear-gradient(
      220deg,
      rgba(228, 193, 249, 0.5),
      rgba(205, 180, 219, 0.3),
      rgba(255, 200, 221, 0.3),
      rgba(255, 175, 204, 0.2),
      rgba(189, 224, 254, 0.35),
      rgba(162, 210, 255, 0.4)
    ),
    linear-gradient(rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.22)),
    linear-gradient(112deg, var(--tone-a) 0 49.95%, var(--tone-b) 50.05% 100%);
  box-shadow: 0 8px 24px rgba(212, 115, 212, 0.18);
}

.detail-stage {
  position: absolute;
  inset: 0;
}

/* ---------- Giant title, behind the character ---------- */
.detail-title {
  position: absolute;
  top: 4%;
  left: 50%;
  z-index: 1;
  width: max-content;
  margin: 0;
  transform: translateX(-50%) scale(var(--fit, 1));
  transform-origin: top center;
  font-size: clamp(72px, 11vw, 168px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 6px 24px rgba(170, 70, 170, 0.25);
  pointer-events: none;
  user-select: none;
}

/* ---------- Character: foreground, centred, bottom-anchored ---------- */
.detail-figure {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 2000; /* highest z-index of the page */
  height: 95%;
  max-width: 42%;
  transform: translateX(-50%);
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 10px 22px rgba(90, 30, 90, 0.28));
  pointer-events: none;
}

/* Opaque picture (no cut-out available yet): rounded frame instead */
.detail-figure.is-framed {
  bottom: 6%;
  height: 60%;
  width: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 6px solid rgba(255, 255, 255, 0.7);
  border-radius: 22px;
  filter: none;
  box-shadow: 0 14px 34px rgba(90, 30, 90, 0.3);
}

/* No picture at all: the title takes the stage */
.detail-hero.no-figure .detail-figure {
  display: none;
}

.detail-hero.no-figure .detail-title {
  top: 34%;
  transform: translate(-50%, -50%) scale(var(--fit, 1));
  transform-origin: center;
}

/* ---------- Text ---------- */
.detail-back,
.detail-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.06);
  transition: transform 0.3s ease, background 0.3s ease;
}

.detail-back:hover,
.detail-nav-link:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.8);
}

.detail-back:focus-visible,
.detail-nav-link:focus-visible {
  outline: 3px solid var(--arrow-pink);
  outline-offset: 2px;
}

.pink-arrow {
  color: var(--arrow-pink);
  font-size: 22px;
  line-height: 1;
}

.detail-back {
  position: absolute;
  left: 3%;
  bottom: 6%;
  z-index: 3;
}

.detail-info {
  position: absolute;
  right: 3%;
  bottom: 6%;
  z-index: 3;
  width: min(25%, 330px);
}

.detail-info p {
  margin: 0;
}

.detail-fullname {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-role {
  margin-top: 6px !important;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.detail-desc {
  margin-top: 14px !important;
  font-size: 17px;
  line-height: 1.5;
}

.detail-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.detail-nav-link {
  justify-content: flex-start;
  font-size: 14px;
}

.detail-nav-link.next {
  justify-content: space-between;
}

.detail-nav-link small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}

/* ---------- Falling petals (CSS only) ---------- */
.petals {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.petal {
  position: absolute;
  top: -30px;
  left: var(--x, 50%);
  width: var(--s, 12px);
  height: calc(var(--s, 12px) * 0.8);
  border-radius: 150% 0 150% 0;
  background: #ffb7c5;
  opacity: 0.9;
  animation: petal-fall var(--d, 15s) linear var(--delay, 0s) infinite;
  will-change: transform;
}

.petal.alt {
  background: #d473d4;
  opacity: 0.75;
}

@keyframes petal-fall {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  25% {
    transform: translate3d(28px, 27vh, 0) rotate(110deg);
  }
  50% {
    transform: translate3d(-14px, 55vh, 0) rotate(200deg);
  }
  75% {
    transform: translate3d(30px, 82vh, 0) rotate(310deg);
  }
  100% {
    transform: translate3d(6px, 112vh, 0) rotate(400deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .petal {
    top: var(--rest, 50%);
    animation: none;
    transform: rotate(35deg);
  }

  .detail-back,
  .detail-nav-link {
    transition: none;
  }

  .detail-back:hover,
  .detail-nav-link:hover {
    transform: none;
  }
}

/* ---------- Responsive: stacked under 820px ---------- */
@media (max-width: 820px) {
  .detail-page .container {
    padding: 16px;
  }

  .detail-page .topbar {
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  .detail-page .menu {
    position: static;
    transform: none;
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 32px;
  }

  .detail-page .nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .detail-page .nav-link::after {
    bottom: 6px;
  }

  .detail-page .btn {
    min-height: 44px;
  }

  .detail-hero {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
  }

  /* character on top… */
  .detail-stage {
    position: relative;
    inset: auto;
    height: 460px;
    flex: none;
  }

  .detail-hero.no-figure .detail-stage {
    height: 200px;
  }

  .detail-title {
    top: 18px;
  }

  .detail-hero.no-figure .detail-title {
    top: 50%;
  }

  .detail-figure {
    height: 94%;
    max-width: 92%;
  }

  .detail-figure.is-framed {
    bottom: 4%;
    height: 66%;
  }

  /* …text below */
  .detail-info {
    position: relative;
    right: auto;
    bottom: auto;
    order: 2;
    width: auto;
    padding: 20px 18px 8px;
    background: rgba(255, 255, 255, 0.35);
  }

  .detail-back {
    position: relative;
    left: auto;
    bottom: auto;
    order: 3;
    align-self: stretch;
    margin: 0;
    padding: 8px 34px;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.35);
    box-shadow: none;
  }

  .detail-back:hover {
    transform: none;
  }
}

/* =====================================================================
   "SOFT" THEME — pastel scrapbook look, used for Yvonne
   (body.theme-soft is added by detail.js when the character has theme: "soft")
   ===================================================================== */
.soft-deco {
  display: none;
}

.theme-soft {
  --ink: #6b3a4a;
  --soft-rose: #c0607f;
}

.theme-soft .detail-hero {
  background:
    /* faint ruled band at the bottom, like printed paper */
    repeating-linear-gradient(90deg, rgba(192, 96, 127, 0.1) 0 2px, transparent 2px 9px) left bottom / 100% 34px no-repeat,
    radial-gradient(circle at 12% 20%, rgba(255, 183, 197, 0.45), transparent 38%),
    radial-gradient(circle at 88% 85%, rgba(212, 115, 212, 0.18), transparent 40%),
    linear-gradient(180deg, #fff8f5, #ffecef);
  box-shadow: 0 8px 24px rgba(192, 96, 127, 0.16);
}

.theme-soft .soft-deco {
  display: block;
  position: absolute;
  inset: 0;
}

/* The rounded "window" behind her: a sunset sky */
.theme-soft .soft-blob {
  position: absolute;
  left: 50%;
  top: 5%;
  width: min(44%, 620px);
  height: 88%;
  transform: translateX(-50%);
  border-radius: 46% 54% 52% 48% / 40% 44% 56% 60%;
  background:
    radial-gradient(circle at 24% 22%, rgba(255, 255, 255, 0.75) 0 7%, transparent 8%),
    radial-gradient(circle at 74% 30%, rgba(255, 255, 255, 0.5) 0 4%, transparent 5%),
    radial-gradient(circle at 62% 14%, rgba(255, 255, 255, 0.4) 0 2.5%, transparent 3.5%),
    linear-gradient(175deg, #ffd9a8 0%, #ffb7c5 42%, #e7a3e0 78%, #cdb4db 100%);
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.7), 0 18px 40px rgba(192, 96, 127, 0.25);
}

.theme-soft .soft-heart {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
  transform: rotate(var(--r));
  fill: #ffb7c5;
  opacity: 0.55;
}

.theme-soft .soft-label {
  position: absolute;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--soft-rose);
  white-space: nowrap;
}

.theme-soft .soft-label-top {
  right: 3%;
  top: 6%;
  padding-bottom: 6px;
  border-bottom: 1px solid currentColor;
}

.theme-soft .soft-label-side {
  left: 4%;
  top: 60%;
  padding-left: 54px;
  background: linear-gradient(currentColor, currentColor) left center / 44px 1px no-repeat;
}

/* Handwritten name on the left, away from her face */
.theme-soft .detail-title {
  top: 30%;
  left: 4%;
  transform: scale(var(--fit, 1));
  transform-origin: left center;
  font-family: "Parisienne", "Brush Script MT", cursive;
  font-size: clamp(72px, 10vw, 160px);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--soft-rose);
  text-shadow: 0 4px 14px rgba(255, 255, 255, 0.9);
}

.theme-soft .detail-figure {
  height: 97%;
  filter: drop-shadow(0 12px 20px rgba(192, 96, 127, 0.3));
}

.theme-soft .detail-back,
.theme-soft .detail-nav-link {
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 6px 18px rgba(192, 96, 127, 0.14);
}

.theme-soft .petal.alt {
  background: #ffd9a8;
}

@media (max-width: 820px) {
  .theme-soft .soft-blob {
    width: 86%;
  }

  .theme-soft .soft-label {
    display: none;
  }

  .theme-soft .detail-title {
    top: 10px;
    left: 50%;
    transform: translateX(-50%) scale(var(--fit, 1));
    transform-origin: top center;
  }
}

/* =====================================================================
   "GFX" THEME — diagonal poster look, used for Reynold
   (body.theme-gfx is added by detail.js when the character has theme: "gfx")
   Palette: rose / raspberry, to match his pink hair.

   The character sits in a slanted band that starts on the left edge and
   rises to the top: the top-left corner stays a plain triangle of colour.
   All the slanted shapes are clip-path polygons in % of the hero, so they
   stay parallel at any screen size.
   ===================================================================== */
.gfx-deco {
  display: none;
}

.theme-gfx {
  --ink: #ffffff;
  --gfx-deep: #5c1238;
  --gfx-rose: #d6477f;
  --gfx-light: #ffb7c5;
}

.theme-gfx .detail-hero {
  color: #fff;
  background:
    /* halftone dots */
    radial-gradient(rgba(255, 255, 255, 0.1) 1.5px, transparent 2px) 0 0 / 18px 18px,
    linear-gradient(118deg, #b02f66 0%, var(--gfx-rose) 45%, #8a1f52 100%);
  box-shadow: 0 8px 24px rgba(138, 31, 82, 0.3);
}

/* White outline of the band (a slightly larger copy of its shape, behind it) */
.theme-gfx .detail-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  -webkit-clip-path: polygon(0 34.6%, 39.2% 0, 61% 0, 49.9% 79.6%, 0 93.8%);
  clip-path: polygon(0 34.6%, 39.2% 0, 61% 0, 49.9% 79.6%, 0 93.8%);
}

/* The band itself: pale rose behind the cut-out character.
   The picture box is 60% of the hero wide, so 66.7% here = 40% of the hero. */
.theme-gfx .detail-figure,
.theme-gfx .detail-figure.is-framed,
.theme-gfx .detail-hero.no-figure .detail-stage::after {
  position: absolute;
  left: 0;
  top: 0;
  bottom: auto;
  z-index: 1;
  width: 60%;
  max-width: none;
  height: 100%;
  aspect-ratio: auto;
  transform: none;
  object-fit: contain; /* whole character, never zoomed in */
  border: 0;
  border-radius: 0;
  box-shadow: none;
  filter: none;
  background: linear-gradient(150deg, #ffe6ec 0%, #ffc2d4 55%, #ff9fbe 100%);
  -webkit-clip-path: polygon(0 36%, 66.7% 0, 100% 0, 81.7% 78%, 0 92%);
  clip-path: polygon(0 36%, 66.7% 0, 100% 0, 81.7% 78%, 0 92%);
}

/* No picture yet: the band stays, empty */
.theme-gfx .detail-hero.no-figure .detail-stage::after {
  content: "";
}

.theme-gfx .gfx-deco {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

/* thin white lines, parallel to the edges of the band */
.theme-gfx .gfx-line {
  position: absolute;
  inset: 0;
  background: #fff;
}

.theme-gfx .gfx-line-top {
  /* inside the top-left triangle */
  -webkit-clip-path: polygon(0 27%, 30.6% 0, 31.4% 0, 0 27.7%);
  clip-path: polygon(0 27%, 30.6% 0, 31.4% 0, 0 27.7%);
  opacity: 0.7;
}

.theme-gfx .gfx-line-bottom {
  /* under the band */
  -webkit-clip-path: polygon(0 97.4%, 52% 82.5%, 52% 83.1%, 0 98%);
  clip-path: polygon(0 97.4%, 52% 82.5%, 52% 83.1%, 0 98%);
}

.theme-gfx .gfx-slashes {
  position: absolute;
  right: 3%;
  top: 6%;
  width: 70px;
  height: 44px;
  background: repeating-linear-gradient(115deg, #fff 0 9px, transparent 9px 20px);
  -webkit-clip-path: polygon(22% 0, 100% 0, 78% 100%, 0 100%);
  clip-path: polygon(22% 0, 100% 0, 78% 100%, 0 100%);
}

.theme-gfx .gfx-dots {
  position: absolute;
  left: 63%;
  top: 53%;
  width: 84px;
  height: 36px;
  background: radial-gradient(#fff 2px, transparent 2.5px) 0 0 / 12px 12px;
  opacity: 0.85;
}

.theme-gfx .gfx-star {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
  fill: #fff;
}

.theme-gfx .gfx-tag {
  position: absolute;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: clamp(14px, 1.5vw, 22px);
  font-weight: 700;
  font-style: italic;
  white-space: nowrap;
  color: #fff;
  text-shadow: 0 2px 6px rgba(92, 18, 56, 0.6);
}

.theme-gfx .gfx-tag:empty {
  display: none;
}

.theme-gfx .gfx-tag.is-pill {
  padding: 4px 16px;
  border-radius: 999px;
  background: #fff;
  color: var(--gfx-deep);
  font-style: normal;
  text-shadow: none;
}

.theme-gfx .gfx-tag-1 { left: 63%; top: 11%; }
.theme-gfx .gfx-tag-2 { left: 81%; top: 47%; }
.theme-gfx .gfx-tag-3 { left: 77%; top: 17%; }
.theme-gfx .gfx-tag-4 { left: 73%; top: 57%; }
.theme-gfx .gfx-tag-5 { left: 53%; top: 60%; }

/* Big slanted name, on one line */
.theme-gfx .detail-title {
  top: 37%;
  left: 51.5%;
  z-index: 3;
  width: max-content;
  white-space: nowrap;
  transform: rotate(-10deg) scale(var(--fit, 1));
  transform-origin: left center;
  font-family: "Arial Black", "Segoe UI Black", Impact, "Segoe UI", Arial, sans-serif;
  font-size: clamp(34px, 3.9vw, 64px);
  font-style: italic;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  color: #fff;
  text-shadow: 4px 4px 0 var(--gfx-deep), 0 10px 26px rgba(60, 10, 36, 0.45);
}

/* Text band at the bottom right */
.theme-gfx .detail-info {
  width: min(45%, 620px);
  bottom: 4%;
  padding: 14px 20px;
  border-top: 2px solid #fff;
  border-radius: 0 0 16px 16px;
  background: rgba(92, 18, 56, 0.55);
}

.theme-gfx .detail-role {
  color: var(--gfx-light);
}

.theme-gfx .detail-desc {
  margin-top: 8px !important;
  font-size: 16px;
}

.theme-gfx .detail-nav {
  flex-direction: row;
  margin-top: 12px;
}

.theme-gfx .detail-nav-link {
  flex: 1;
}

.theme-gfx .detail-back,
.theme-gfx .detail-nav-link {
  background: rgba(255, 255, 255, 0.92);
  color: var(--gfx-deep);
}

.theme-gfx .detail-back:hover,
.theme-gfx .detail-nav-link:hover {
  background: #fff;
}

.theme-gfx .detail-back {
  left: 2%;
  bottom: 3%;
  min-height: 40px;
  padding: 4px 14px;
}

@media (max-width: 820px) {
  .theme-gfx .detail-stage::before {
    display: none;
  }

  .theme-gfx .detail-figure,
  .theme-gfx .detail-figure.is-framed,
  .theme-gfx .detail-hero.no-figure .detail-stage::after {
    width: 100%;
    -webkit-clip-path: polygon(0 26%, 60% 0, 100% 0, 100% 62%, 0 88%);
    clip-path: polygon(0 26%, 60% 0, 100% 0, 100% 62%, 0 88%);
  }

  .theme-gfx .gfx-deco {
    display: none;
  }

  .theme-gfx .detail-title {
    top: auto;
    bottom: 22px;
    left: 18px;
    font-size: 34px;
    transform: rotate(-8deg) scale(var(--fit, 1));
    transform-origin: left bottom;
  }

  .theme-gfx .detail-info {
    width: auto;
    border-radius: 0;
    background: rgba(92, 18, 56, 0.45);
  }

  .theme-gfx .detail-nav {
    flex-direction: column;
  }

  .theme-gfx .detail-back {
    left: auto;
    bottom: auto;
    min-height: 44px;
    padding: 8px 34px;
    background: rgba(92, 18, 56, 0.45);
    color: #fff;
  }
}

/* =====================================================================
   "CRIMSON" THEME — used for Eclise and his obsession
   (body.theme-crimson is added by detail.js)
   White page, one big blood-red disc behind him, black type, red petals:
   everything on the page is black, white or red.
   ===================================================================== */
.crimson-deco {
  display: none;
}

.theme-crimson {
  --ink: #16080b;
  --crimson: #b3121d;
}

.theme-crimson .detail-hero {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(22, 4, 8, 0.78) 0%, rgba(22, 4, 8, 0.4) 30%, transparent 55%),
    var(--hero-bg, none) center / cover no-repeat,
    #3a0d12;
  box-shadow: 0 8px 24px rgba(22, 8, 11, 0.16);
}

.theme-crimson .crimson-deco {
  display: block;
  position: absolute;
  inset: 0;
}

/* The red disc behind him */
.theme-crimson .crimson-disc,
.theme-crimson .crimson-ring {
  position: absolute;
  left: 54%;
  top: 50%;
  height: 84%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.theme-crimson .crimson-disc {
  background: linear-gradient(200deg, #ff5a5f 0%, #d0161f 38%, #7a0710 100%);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

/* thin ring around the disc */
.theme-crimson .crimson-ring {
  height: 92%;
  border: 2px solid rgba(255, 255, 255, 0.55);
}

/* Eclise in the foreground, in front of the disc. Both sides of the original
   picture cut his arms, so the two edges are faded. */
.theme-crimson .detail-figure {
  left: 54%;
  height: 100%;
  max-width: 46%;
  filter: drop-shadow(0 12px 26px rgba(22, 8, 11, 0.45));
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 90%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 90%, transparent 100%);
}

/* Name, big and slanted, on the left */
.theme-crimson .detail-title {
  top: auto;
  bottom: 300px;
  left: 4%;
  z-index: 3;
  transform: scale(var(--fit, 1));
  transform-origin: left bottom;
  font-family: "Arial Black", "Segoe UI Black", Impact, "Segoe UI", Arial, sans-serif;
  font-size: clamp(56px, 6.6vw, 110px);
  font-style: italic;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.01em;
  color: #fff;
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.55);
}

.theme-crimson .detail-info {
  left: 4%;
  right: auto;
  bottom: 30px;
  width: min(29%, 400px);
}

.theme-crimson .detail-fullname {
  display: none; /* the big name already says it */
}

.theme-crimson .detail-role {
  margin-top: 0 !important;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ff6b72;
}

.theme-crimson .detail-desc {
  margin-top: 8px !important;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  font-style: italic;
}

.theme-crimson .detail-nav {
  margin-top: 16px;
}

.theme-crimson .detail-back,
.theme-crimson .detail-nav-link {
  border-radius: 6px;
  background: rgba(22, 4, 8, 0.85);
  color: #fff;
  box-shadow: none;
}

.theme-crimson .detail-back:hover,
.theme-crimson .detail-nav-link:hover {
  background: var(--crimson);
}

.theme-crimson .detail-nav-link small {
  color: #ff9aa2;
}

.theme-crimson .pink-arrow {
  color: #ff5a5f;
}

.theme-crimson .detail-back {
  left: 4%;
  top: 24px;
  bottom: auto;
  min-height: 40px;
  padding: 4px 14px;
}

/* Keywords stacked on the right */
.theme-crimson .side-block {
  position: absolute;
  right: 4%;
  top: 28%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-family: "Arial Black", "Segoe UI Black", Impact, "Segoe UI", Arial, sans-serif;
  font-style: italic;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1;
  color: #fff;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.6);
}

.theme-crimson .side-tag-1 {
  font-size: clamp(14px, 1.4vw, 22px);
  letter-spacing: 0.08em;
}

.theme-crimson .side-tag-2 {
  max-width: 5em;
  font-size: clamp(30px, 3.6vw, 60px);
  text-align: right;
}

.theme-crimson .side-tag-3 {
  margin-top: 6px;
  font-size: clamp(18px, 2vw, 32px);
  color: #ff6b72;
}

.theme-crimson .crimson-chevrons {
  position: absolute;
  right: 4%;
  bottom: 30px;
  width: 30px;
  height: 36px;
  color: #ff6b72;
}

/* Deep red petals, larger than on the other pages, above the character */
.theme-crimson .petals {
  z-index: 2001;
}

.theme-crimson .petal {
  width: calc(var(--s, 12px) * 1.7);
  height: calc(var(--s, 12px) * 1.36);
  background: linear-gradient(135deg, #e5383b, #a4161a);
  opacity: 0.95;
}

.theme-crimson .petal.alt {
  background: linear-gradient(135deg, #c1121f, #4a0508);
  opacity: 0.9;
}

@media (max-width: 820px) {
  .theme-crimson .crimson-disc {
    left: 50%;
    height: auto;
    width: 86%;
  }

  .theme-crimson .crimson-ring,
  .theme-crimson .side-block,
  .theme-crimson .crimson-chevrons {
    display: none;
  }

  .theme-crimson .detail-figure {
    left: 50%;
    height: 96%;
    max-width: 96%;
  }

  .theme-crimson .detail-title {
    top: 14px;
    bottom: auto;
    left: 16px;
    font-size: 54px;
    transform-origin: left top;
  }

  .theme-crimson .detail-info {
    left: auto;
    bottom: auto;
    width: auto;
    background: none;
  }

  .theme-crimson .detail-back {
    left: auto;
    top: auto;
    min-height: 44px;
    padding: 8px 34px;
    border-radius: 0;
  }
}

/* =====================================================================
   THEME "hood" (Siyeon) — a full picture as background (character.bg),
   the character on its left; the name, the game GIF and the text sit in
   the empty light area on its right. No cut-out figure.
   ===================================================================== */
.theme-hood .detail-hero {
  color: #3a1d47;
  background: var(--hero-bg, none) left 28% / cover no-repeat, #eceaf0;
}

.theme-hood .detail-figure {
  display: none;
}

/* the name: dark, top right, over the light area */
.theme-hood .detail-title,
.theme-hood .detail-hero.no-figure .detail-title {
  top: 6%;
  left: auto;
  right: 4%;
  transform: scale(var(--fit, 1));
  transform-origin: top right;
  font-size: clamp(56px, 7.4vw, 116px);
  color: #3a1d47;
  text-shadow: 0 4px 18px rgba(255, 255, 255, 0.9);
}

/* the game's start screen (animated), blended into the light area */
.theme-hood .detail-stage::after {
  content: "";
  position: absolute;
  left: 51%;
  bottom: 7%;
  width: 25%;
  aspect-ratio: 940 / 592;
  background: url("/img/photo/game-start.gif") center / contain no-repeat;
  mix-blend-mode: multiply; /* the GIF's white paper disappears */
  -webkit-mask-image: radial-gradient(ellipse at center, #000 58%, transparent 74%);
  mask-image: radial-gradient(ellipse at center, #000 58%, transparent 74%);
  pointer-events: none;
}

/* she fills the lower left corner: the back link goes to the top left */
.theme-hood .detail-back {
  top: 24px;
  bottom: auto;
}

@media (max-width: 820px) {
  .theme-hood .detail-hero {
    background: #eceaf0;
  }

  /* the picture becomes the top block; text follows below */
  .theme-hood .detail-stage,
  .theme-hood .detail-hero.no-figure .detail-stage {
    height: 300px;
    background: var(--hero-bg, none) left top / cover no-repeat;
  }

  .theme-hood .detail-title,
  .theme-hood .detail-hero.no-figure .detail-title {
    top: 12px;
    right: 12px;
    font-size: 40px;
  }

  .theme-hood .detail-stage::after {
    left: auto;
    right: 2%;
    bottom: 10px;
    width: 30%;
  }
}

/* =====================================================================
   PINK HEART — on the left of the Info page: opens / closes the character
   cards under the hero. The page keeps a small margin for it.
   ===================================================================== */
.detail-page .container {
  padding-left: 60px;
}

.char-bar-toggle {
  position: absolute;
  left: 6px;
  top: 160px;
  z-index: 2500;
  width: 48px;
  height: 44px;
  padding: 0 0 5px;
  border: none;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 44'%3E%3Cpath fill='%23ff74b2' d='M24 43C10 32 1 23.500 1 13.500 1 6.500 6.500 1 13.500 1c4.200 0 8 2 10.500 5.400C26.500 3 30.300 1 34.500 1 41.500 1 47 6.500 47 13.500 47 23.500 38 32 24 43z'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 4px 8px rgba(170, 70, 170, 0.4));
  cursor: pointer;
  transition: transform 0.3s ease;
}

.char-bar-toggle span {
  display: inline-block;
  transform: rotate(90deg); /* points down: the cards open below */
  transition: transform 0.3s ease;
}

.cards-open .char-bar-toggle span {
  transform: rotate(-90deg);
}

.char-bar-toggle:hover {
  transform: scale(1.1);
}

.char-bar-toggle:focus-visible {
  outline: 3px solid #c77dff;
  outline-offset: 2px;
}


/* ---------- Character cards: 3D carousel (opened by the pink heart) ----------
   A stage (pink gothic hall picture) under the hero, above the footer. detail.js places every card
   on a curved 3D track (transform, opacity, blur, z-index). */
.card-gallery {
  position: relative;
  height: 540px;
  margin-top: 18px;
  border-radius: 22px;
  overflow: hidden;
  background:
    linear-gradient(rgba(20, 6, 22, 0.28), rgba(20, 6, 22, 0.28)),
    url("/img/background/cards-hall.jpg") center / cover no-repeat,
    #1d1027;
  box-shadow: 0 8px 24px rgba(60, 20, 70, 0.35);
  perspective: 1400px;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
  touch-action: pan-y;
  animation: card-gallery-in 0.3s ease;
}

.card-gallery[hidden] {
  display: none;
}

.card-gallery:active {
  cursor: grabbing;
}

@keyframes card-gallery-in {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: none; }
}

/* coloured glow behind the front card */
.card-aura {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 650px;
  height: 650px;
  margin: -325px 0 0 -325px;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  transition: background 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-gallery ul {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  transform-style: preserve-3d;
  pointer-events: none; /* the cards behind its plane must stay clickable */
}

.card-gallery li {
  display: contents;
}

.card-gallery a {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 220px;
  height: 442px;
  margin: -221px 0 0 -110px;
  border-radius: 12px;
  overflow: hidden;
  background: #f1f0f5;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.85);
  will-change: transform, filter, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  pointer-events: auto;
  cursor: inherit;
}

.card-gallery a.is-front {
  cursor: pointer;
}

.card-gallery a:focus-visible {
  outline: 3px solid #ff74b2;
  outline-offset: 3px;
}

.card-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* left / right arrows, same pink as the home carousel arrows */
.card-arrow {
  position: absolute;
  top: 50%;
  z-index: 200;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  font-size: 22px;
  color: #fff;
  background: rgba(255, 116, 178, 0.85);
  box-shadow: 0 6px 18px rgba(60, 10, 50, 0.45);
  cursor: pointer;
  transform: translateY(-50%);
  transition: transform 0.25s ease, background 0.25s ease;
}

.card-arrow.prev {
  left: 22px;
}

.card-arrow.next {
  right: 22px;
}

.card-arrow:hover {
  background: #ff74b2;
  transform: translateY(-50%) scale(1.08); /* stays at the same height */
}

.card-arrow:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

/* glassy light on the card */
.card-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 45%, rgba(0, 0, 0, 0.16) 100%);
  pointer-events: none;
}

/* =====================================================================
   "BANNER" THEME — used for Derrick (body.theme-banner, added by detail.js)
   Game-banner look: pale grey page with a grey close-up of him (bg) behind
   the text, big block letters, three fact lines, a slanted navy band with a
   gold stripe, and his cut-out in the foreground on the right.
   Colours come from his uniform: navy, steel blue, gold trim.
   ===================================================================== */
@font-face {
  font-family: "Orbitron";
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/orbitron-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Orbitron";
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/orbitron-latin-700-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Orbitron";
  font-weight: 900;
  font-display: swap;
  src: url("/fonts/orbitron-latin-900-normal.woff2") format("woff2");
}

.banner-deco,
.detail-stats {
  display: none;
}

.theme-banner {
  --ink: #141a33;
  --navy: #1c2657;
  --royal: #2f4699;
  --steel: #7f93cf;
  --gold: #c9a45c;
  --banner-title: clamp(60px, 7.4vw, 100px);
}

.theme-banner .detail-hero {
  color: var(--ink);
  background: #e8e9ee;
  box-shadow: 0 8px 24px rgba(20, 26, 51, 0.18);
}

/* grey close-up, faded towards the right */
.theme-banner .detail-stage::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 66%;
  height: 100%;
  background: var(--hero-bg, none) 30% 22% / cover no-repeat;
  opacity: 0.5;
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 70%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0, #000 70%, transparent 100%);
}

.theme-banner .banner-deco {
  display: block;
  position: absolute;
  inset: 0;
}

/* slanted band, bottom right */
.theme-banner .banner-band,
.theme-banner .banner-stripe {
  position: absolute;
  inset: 0;
}

.theme-banner .banner-band {
  background: linear-gradient(135deg, var(--steel) 0 46%, var(--royal) 46% 62%, var(--navy) 62% 100%);
  -webkit-clip-path: polygon(30% 100%, 100% 24%, 100% 100%);
  clip-path: polygon(30% 100%, 100% 24%, 100% 100%);
}

.theme-banner .banner-stripe {
  background: linear-gradient(90deg, #fff, var(--gold));
  -webkit-clip-path: polygon(39% 100%, 100% 33.8%, 100% 35.6%, 40.7% 100%);
  clip-path: polygon(39% 100%, 100% 33.8%, 100% 35.6%, 40.7% 100%);
}

.theme-banner .banner-dot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: var(--royal);
}

.theme-banner .banner-dot.is-gold { background: var(--gold); }
.theme-banner .banner-dot.is-soft { background: var(--steel); opacity: 0.7; }
.theme-banner .banner-dot.is-light { background: #fff; opacity: 0.85; }

/* Derrick, foreground right */
.theme-banner .detail-figure {
  left: 74%;
  height: 100%;
  max-width: 50%;
  filter: drop-shadow(0 12px 26px rgba(20, 26, 51, 0.4));
}

/* Block-letter name, top left */
.theme-banner .detail-title {
  top: 26px;
  left: 4%;
  transform: scale(var(--fit, 1));
  transform-origin: left top;
  font-family: "Orbitron", "Arial Black", "Segoe UI Black", Impact, sans-serif;
  font-size: var(--banner-title);
  font-weight: 900;
  letter-spacing: 0.03em;
  color: var(--royal);
  text-shadow: none;
}

/* small second name under the right end of the title */
.theme-banner .detail-title::after {
  content: attr(data-alt);
  direction: ltr;
  unicode-bidi: isolate;
  white-space: nowrap;
  position: absolute;
  right: 4px;
  top: 100%;
  font-family: "Malgun Gothic", "Segoe UI", sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--ink);
}

.theme-banner .detail-info {
  left: 4%;
  right: auto;
  top: calc(26px + var(--banner-title) + 16px);
  bottom: auto;
  width: min(47%, 520px);
  font-family: "Orbitron", "Segoe UI", Arial, sans-serif;
  text-transform: uppercase;
}

.theme-banner .detail-fullname,
.theme-banner .detail-role {
  display: none; /* the title and the fact lines already say it */
}

.theme-banner .detail-stats {
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.75;
}

.theme-banner .detail-stats span {
  font-weight: 700;
  color: var(--royal);
}

.theme-banner .detail-desc {
  margin-top: 14px !important;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.13em;
  line-height: 1.7;
}

.theme-banner .detail-nav {
  flex-direction: row;
  flex-wrap: wrap;
  margin-top: 18px;
}

.theme-banner .detail-back,
.theme-banner .detail-nav-link {
  border-radius: 6px;
  background: var(--navy);
  color: #fff;
  font-family: "Segoe UI", Arial, sans-serif;
  text-transform: none;
  box-shadow: 0 6px 16px rgba(20, 26, 51, 0.25);
}

.theme-banner .detail-back:hover,
.theme-banner .detail-nav-link:hover {
  background: var(--royal);
}

.theme-banner .detail-nav-link small {
  color: #c6d0f2;
}

.theme-banner .pink-arrow {
  color: var(--gold);
}

.theme-banner .detail-back {
  left: 4%;
  bottom: 22px;
  min-height: 38px;
  padding: 4px 14px;
  font-size: 14px;
}

.theme-banner .detail-back:focus-visible,
.theme-banner .detail-nav-link:focus-visible {
  outline-color: var(--gold);
}

/* white and steel-blue petals, like in his picture */
.theme-banner .petal {
  background: #fff;
  opacity: 0.85;
}

.theme-banner .petal.alt {
  background: var(--steel);
  opacity: 0.55;
}

/* Arabic letters must stay joined; CJK does not need wide tracking */
html[lang="ar"] .theme-banner .detail-info,
html[lang="ar"] .theme-banner .detail-info * {
  letter-spacing: 0;
}

html:is([lang="ko"], [lang="zh"], [lang="ja"], [lang="ar"]) .theme-banner .detail-desc {
  font-size: 15px;
}

/* =====================================================================
   THEME "throne" (Callisto) — his picture on the throne fills the whole
   hero (character.bg) and is shown ENTIRE: the hero takes the picture's
   shape (2:1), so every place below is a fixed spot of the picture.
     - the name and the two arrows: in the red curtains, top right
     - the text: in the empty arches between Callisto and the three people
       standing on the right, so nobody is hidden
   ===================================================================== */
.theme-throne .detail-hero {
  container-type: inline-size; /* the sizes below follow the hero's width */
  height: auto;
  min-height: 0;
  aspect-ratio: 1774 / 887; /* the picture's own shape: nothing is cut */
  color: #fbeee0;
  background: #2a0608 var(--hero-bg, none) center / 100% 100% no-repeat;
  box-shadow: 0 10px 30px rgba(90, 10, 20, 0.45);
}

.theme-throne .detail-figure {
  display: none;
}

/* the name: gold, in the curtains above the three people */
.theme-throne .detail-title,
.theme-throne .detail-hero.no-figure .detail-title {
  top: 3.5%;
  left: auto;
  right: 3%;
  transform: none;
  font-size: 7.4cqw;
  letter-spacing: 0.08em;
  color: #f3d58c;
  text-shadow: 0 3px 0 #5a0b12, 0 0 26px rgba(255, 60, 60, 0.45);
}

/* the text, in the empty arches in the middle of the picture */
.theme-throne .detail-info {
  top: 23%;
  right: auto;
  bottom: auto;
  left: 37.5%;
  width: 21.5%;
  max-height: 34%;
  padding: 1.1cqw 1.3cqw;
  box-sizing: border-box;
  border-radius: 1.2cqw;
  background: rgba(30, 4, 8, 0.6);
  border: 1px solid rgba(243, 213, 140, 0.45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  text-align: center;
}

.theme-throne .detail-fullname {
  font-size: max(12px, 1.05cqw);
  color: #f3d58c;
}

.theme-throne .detail-role {
  font-size: max(11px, 0.95cqw);
  color: #e9b9a8;
}

/* a thin gold line between the role and the text */
.theme-throne .detail-desc {
  margin-top: 0.8cqw !important;
  padding-top: 0.8cqw;
  border-top: 1px solid rgba(243, 213, 140, 0.35);
  font-size: max(13px, 1.12cqw);
  line-height: 1.45;
}

/* previous / next: two small buttons in the curtains, under the name.
   The hero is twice as wide as high, so 1cqw = 1 % of its width = 2 % of its
   height: the box of text starts at 37.5cqw from the left and 11.5cqw from the
   top; the buttons end 3cqw from the right edge and start 9.5cqw from the top. */
.theme-throne .detail-nav {
  position: absolute;
  top: -2cqw;
  right: -38cqw;
  flex-direction: row;
  gap: 0.8cqw;
  margin: 0;
  text-align: left;
}

.theme-throne .detail-back,
.theme-throne .detail-nav-link {
  min-height: 0;
  padding: 0.55cqw 1cqw;
  border-radius: 999px;
  font-size: max(12px, 0.95cqw);
  color: #fbeee0;
  background: rgba(90, 10, 20, 0.72);
  border: 1px solid rgba(243, 213, 140, 0.5);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.theme-throne .detail-nav-link small {
  font-size: max(10px, 0.8cqw);
  color: #e9b9a8;
}

.theme-throne .detail-back:hover,
.theme-throne .detail-nav-link:hover {
  background: rgba(140, 16, 30, 0.88);
}

.theme-throne .pink-arrow {
  color: #f3d58c;
  font-size: max(16px, 1.4cqw);
}

/* "Back to Home": just above the box of text, on its left */
.theme-throne .detail-back {
  top: 16.8%;
  bottom: auto;
  left: 37.5%;
}

/* red ribbons rather than pink petals, like in his picture */
.theme-throne .petal {
  background: #c8102e;
  opacity: 0.8;
}

.theme-throne .petal.alt {
  background: #f3d58c;
  opacity: 0.6;
}



/* =====================================================================
   THEME "gfxblue" (Reynold) — a blue "GFX edit" poster: big cut-out
   portrait on the left, crossed by a white diagonal band; on the right the
   slanted name, keywords in italics, stars, dots and slashes; at the bottom
   a darker strip with the text bubble and two small info lines.
   The hero keeps one shape (12:7), so every place is a fixed spot:
   1cqw = 1 % of the hero's width (the hero is 58.3cqw high).
   ===================================================================== */
.gb-deco {
  display: none;
}

.theme-gfxblue {
  --gb-navy: #16296b;
  --gb-blue: #3f6cc4;
  --gb-ice: #d7e6ff;
  --gb-pink: #ff8fc0;
}

.theme-gfxblue .detail-hero {
  container-type: inline-size;
  height: auto;
  min-height: 0;
  aspect-ratio: 12 / 7;
  color: #fff;
  background:
    radial-gradient(rgba(255, 255, 255, 0.09) 1.5px, transparent 2px) 0 0 / 18px 18px,
    radial-gradient(60% 70% at 78% 40%, rgba(150, 190, 255, 0.45), transparent 70%),
    linear-gradient(135deg, #2c58ad 0%, #4a78cf 48%, #2f5bb0 100%);
  box-shadow: 0 10px 28px rgba(30, 60, 140, 0.35);
}

.theme-gfxblue .gb-deco {
  display: block;
  position: absolute;
  inset: 0;
  pointer-events: none;
  font-family: "Segoe UI", Arial, sans-serif;
}

.theme-gfxblue .gb-deco > * {
  position: absolute;
  margin: 0;
}

/* white diagonal band behind his head */
.theme-gfxblue .gb-band {
  inset: 0;
  background: rgba(255, 255, 255, 0.92);
  -webkit-clip-path: polygon(0 31%, 58% 0, 64% 0, 0 41%);
  clip-path: polygon(0 31%, 58% 0, 64% 0, 0 41%);
}

/* pale blue swirls on the right */
.theme-gfxblue .gb-swirl {
  border-radius: 50%;
  border: 1.1cqw solid rgba(220, 235, 255, 0.55);
  border-left-color: transparent;
  border-bottom-color: transparent;
}

.theme-gfxblue .gb-swirl-1 { left: 88%; top: 28%; width: 16cqw; height: 16cqw; transform: rotate(-20deg); }
.theme-gfxblue .gb-swirl-2 { left: 92%; top: 44%; width: 9cqw; height: 9cqw; transform: rotate(40deg); border-width: 0.7cqw; }

/* darker strip at the bottom right, under a white line */
.theme-gfxblue .gb-strip {
  inset: 0;
  z-index: 2;
  filter: drop-shadow(0 -0.3cqw 0 #fff);
}

.theme-gfxblue .gb-strip i {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(28, 55, 130, 0.9), rgba(16, 34, 90, 0.95));
  -webkit-clip-path: polygon(38% 100%, 100% 58%, 100% 100%);
  clip-path: polygon(38% 100%, 100% 58%, 100% 100%);
}

.theme-gfxblue .gb-dots {
  z-index: 3;
  width: 9cqw;
  height: 3.2cqw;
  background: radial-gradient(#fff 0.22cqw, transparent 0.27cqw) 0 0 / 1.3cqw 1.3cqw;
}

.theme-gfxblue .gb-dots-1 { left: 88%; top: 21%; width: 7cqw; }
.theme-gfxblue .gb-dots-2 { left: 58%; top: 91%; width: 6cqw; }

.theme-gfxblue .gb-slashes {
  right: 3%;
  top: 4%;
  width: 6.5cqw;
  height: 4.6cqw;
  background: repeating-linear-gradient(115deg, transparent 0 0.35cqw, #fff 0.35cqw 1.25cqw, transparent 1.25cqw 2.1cqw);
}

.theme-gfxblue .gb-star {
  left: var(--x);
  top: var(--y);
  z-index: 3;
  width: var(--s);
  height: var(--s);
  fill: #fff;
  filter: drop-shadow(0 0 0.6cqw rgba(255, 255, 255, 0.8));
}

/* two small lines of Korean, top right (decoration, like in the model) */
.theme-gfxblue .gb-top {
  left: 66%;
  top: 4.5%;
  z-index: 3;
  font-size: max(10px, 1.1cqw);
  line-height: 1.5;
  color: #f2f6ff;
}

/* second name (Korean), at the end of the big name */
.theme-gfxblue .gb-alt {
  right: 4%;
  top: 43%;
  z-index: 3;
  font-size: max(13px, 2cqw);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-shadow: 0 0.2cqw 0.6cqw rgba(16, 34, 90, 0.8);
}

/* his role, slanted under the big name */
.theme-gfxblue .gb-role {
  left: 61%;
  top: 44%;
  z-index: 3;
  transform: rotate(-10deg);
  transform-origin: left center;
  font-size: max(11px, 1.3cqw);
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
  text-shadow: 0 0.15cqw 0.5cqw rgba(16, 34, 90, 0.9);
}

/* keywords in bold italics (the 2nd one is a white pill) */
.theme-gfxblue .gb-tag {
  z-index: 3;
  font-size: max(12px, 1.85cqw);
  font-style: italic;
  font-weight: 800;
  white-space: nowrap;
  text-shadow: 0 0.2cqw 0.7cqw rgba(16, 34, 90, 0.85);
}

.theme-gfxblue .gb-tag:empty {
  display: none;
}

.theme-gfxblue .gb-tag-1 { left: 60%; top: 52%; }
.theme-gfxblue .gb-tag-2 {
  left: 82%;
  top: 51.5%;
  padding: 0.3cqw 1.2cqw;
  border-radius: 999px;
  font-size: max(11px, 1.35cqw);
  font-style: normal;
  color: var(--gb-navy);
  background: #fff;
  text-shadow: none;
}
.theme-gfxblue .gb-tag-3 { left: 82%; top: 59%; }
.theme-gfxblue .gb-tag-4 { left: 68%; top: 60%; }

/* three small dots, next to the bubble */
.theme-gfxblue .gb-lights {
  left: 52%;
  top: 74%;
  z-index: 3;
  display: grid;
  gap: 0.4cqw;
  padding: 0.5cqw 0.45cqw;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
}

.theme-gfxblue .gb-lights i {
  width: 1cqw;
  height: 1cqw;
  border-radius: 50%;
  background: var(--gb-pink);
}

.theme-gfxblue .gb-lights i:nth-child(2) { background: #8fb4ff; }
.theme-gfxblue .gb-lights i:nth-child(3) { background: var(--gb-navy); }

/* two info lines at the very bottom */
.theme-gfxblue .gb-stats {
  right: 3%;
  bottom: 2.5%;
  z-index: 3;
  font-size: max(10px, 1cqw);
  line-height: 1.5;
  text-align: right;
  color: var(--gb-ice);
}

/* the portrait: large, cut by the edges of the poster */
.theme-gfxblue .detail-figure {
  left: -31%;
  bottom: 0;
  z-index: 1;
  width: 104cqw; /* taller than the poster: the top of his hair is cut by its edge */
  height: auto;
  max-width: none;
  transform: none;
  filter: drop-shadow(0 0 1.2cqw rgba(16, 34, 90, 0.45));
  /* the right edge of the picture (his jacket) fades out */
  -webkit-mask-image: linear-gradient(to left, transparent 0, #000 9%);
  mask-image: linear-gradient(to left, transparent 0, #000 9%);
}

/* big slanted name: white with a navy shadow, one word per line */
.theme-gfxblue .detail-title {
  top: 15%;
  left: 60%;
  z-index: 3;
  width: min-content;
  white-space: normal;
  transform: rotate(-11deg);
  transform-origin: left top;
  font-family: "Arial Black", "Segoe UI Black", Impact, "Segoe UI", Arial, sans-serif;
  font-size: 5.8cqw;
  font-style: italic;
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: 0;
  color: #fff;
  text-shadow: 0.35cqw 0.35cqw 0 var(--gb-navy), 0 0.8cqw 2cqw rgba(16, 34, 90, 0.5);
}

/* the text bubble: the description and the arrows */
.theme-gfxblue .detail-info {
  font-family: "Segoe UI", Arial, sans-serif;
  left: 55.5%;
  right: 3%;
  bottom: 13%;
  width: auto;
  z-index: 4;
  min-height: 7cqw;
  padding: 1.1cqw 1.6cqw;
  box-sizing: border-box;
  border-radius: 1.6cqw;
  border: 0.15cqw solid rgba(255, 255, 255, 0.85);
  background: rgba(16, 34, 90, 0.8);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.theme-gfxblue .detail-fullname {
  font-size: max(11px, 1.1cqw);
  color: var(--gb-pink);
}

.theme-gfxblue .detail-role {
  display: none; /* already written, slanted, under the big name */
}

.theme-gfxblue .detail-desc {
  margin-top: 0.4cqw !important;
  font-size: max(12px, 1.2cqw);
  line-height: 1.45;
}

.theme-gfxblue .detail-nav {
  flex-direction: row;
  gap: 0.8cqw;
  margin-top: 0.8cqw;
}

.theme-gfxblue .detail-nav-link {
  flex: 1;
}

.theme-gfxblue .detail-back,
.theme-gfxblue .detail-nav-link {
  min-height: 0;
  padding: 0.45cqw 1cqw;
  border-radius: 999px;
  font-size: max(11px, 0.95cqw);
  color: var(--gb-navy);
  background: rgba(255, 255, 255, 0.94);
}

.theme-gfxblue .detail-nav-link small {
  font-size: max(10px, 0.8cqw);
  color: var(--gb-blue);
}

.theme-gfxblue .detail-back:hover,
.theme-gfxblue .detail-nav-link:hover {
  background: #fff;
}

.theme-gfxblue .pink-arrow {
  color: #e8559a;
  font-size: max(15px, 1.4cqw);
}

.theme-gfxblue .detail-back {
  left: 2%;
  bottom: 3%;
  z-index: 4;
}

/* white and pink petals on the blue */
.theme-gfxblue .petal {
  background: #fff;
  opacity: 0.85;
}

.theme-gfxblue .petal.alt {
  background: var(--gb-pink);
  opacity: 0.7;
}
