/* Characters (js/fichas.js): the tarot card of each character (art deco in Hazbin, neon in Helluva; an Overlord's,
   crowned and burning), the ritual to create one, its sheet, the duels, the Overlords' hierarchy and the premieres
   that announce a rise or a fall. A phone gets its own layouts (one column, the card first, the actions at the
   thumb); the animations rest with «Movimiento» off or when the system asks for less motion. */

@property --fx-giro { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

/* ------------------------------------------------------------------- Base */
.fx { --fx-acento: #edce8e; --fx-rojo: #e2423f; --fx-texto: #f5eee4; --fx-tenue: #c3b6bd; --fx-linea: #ffffff1f; --fx-a: #1d0d14; --fx-b: #0b0609;
  width: min(1120px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 1px solid #edce8e3d; border-radius: 26px; overflow: hidden;
  color: var(--fx-texto); font-family: var(--font-body); background: radial-gradient(ellipse 70% 50% at 50% 0%, #e2423f22, transparent 70%), linear-gradient(165deg, var(--fx-a), var(--fx-b));
  box-shadow: 0 40px 120px #000e; }
.fx[data-world="helluva"] { --fx-acento: #c6fb89; --fx-rojo: #a979fc; --fx-a: #15102a; --fx-b: #07050f; border-color: #a979fc44; background: radial-gradient(ellipse 70% 50% at 50% 0%, #a979fc26, transparent 70%), linear-gradient(165deg, var(--fx-a), var(--fx-b)); }
.fx[open] { display: flex; flex-direction: column; }
.fx::backdrop { background: #050206d9; backdrop-filter: blur(3px); }
.fx__cuerpo { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 26px 28px 28px; scrollbar-width: thin; }
.fx__cerrar { position: absolute; top: 14px; right: 14px; z-index: 6; width: 40px; height: 40px; border: 1px solid #ffffff2e; border-radius: 50%; background: #0b0710cc; color: #fff; font-size: 14px; cursor: pointer; }
.fx__cerrar:hover { background: #ffffff1f; }
.fx__eyebrow { font: 600 11px var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--fx-acento); }
.fx__cargando { padding: 40px 0; text-align: center; color: var(--fx-tenue); }
.fx-ayuda { font-size: 13.5px; line-height: 1.5; color: var(--fx-tenue); }
.fx-fila { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.fx-campo { display: grid; gap: 6px; }
.fx-campo__etiqueta { font: 600 11px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fx-acento); }
.fx-campo small { font-size: 12.5px; color: var(--fx-tenue); }
.fx-input { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid #ffffff26; border-radius: 14px; background: #0000005c; color: #fff; font: 15px/1.4 var(--font-body); color-scheme: dark; }
.fx-input:focus-visible { outline: none; border-color: var(--fx-acento); box-shadow: 0 0 0 4px color-mix(in srgb, var(--fx-acento) 20%, transparent); }
textarea.fx-input { min-height: 110px; resize: vertical; }
.fx-input--grande { min-height: 58px; font: 400 26px/1.1 var(--font-display); }
.fx-contador { justify-self: end; margin-top: -4px; font: 11px var(--font-mono); color: var(--fx-tenue); }
.fx-boton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px; border: 1px solid #ffffff2e; border-radius: 99px; background: #ffffff0d; color: var(--fx-texto);
  font: 700 14px var(--font-body); letter-spacing: .02em; cursor: pointer; transition: background-color .15s, transform .15s; }
.fx-boton:hover { background: #ffffff1c; }
.fx-boton:disabled { opacity: .5; cursor: wait; }
.fx-boton--primario { border-color: transparent; background: linear-gradient(100deg, var(--fx-acento), color-mix(in srgb, var(--fx-acento) 62%, #000)); color: #160b10; box-shadow: 0 10px 26px color-mix(in srgb, var(--fx-acento) 26%, transparent); }
.fx-boton--primario:hover { background: linear-gradient(100deg, var(--fx-acento), color-mix(in srgb, var(--fx-acento) 62%, #000)); filter: brightness(1.07); }
.fx-boton--trono { border-color: #ffd36b; background: linear-gradient(100deg, #ffd36b, #c9852a); color: #1a0d05; box-shadow: 0 0 22px #ffd36b55; }
.fx-boton--pacto { min-width: 220px; background: linear-gradient(100deg, #ff5a4a, #9a0f1b); color: #fff; box-shadow: 0 0 30px #e2423f88; }
.fx-enlace { padding: 4px 0; border: 0; background: none; color: var(--fx-acento); font: 600 14px var(--font-body); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.fx-enlace--peligro { justify-self: start; color: #ff8a7e; }
.fx-segmento { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid #ffffff17; border-radius: 14px; background: #00000047; }
.fx-segmento button { flex: 1 1 auto; min-height: 40px; padding: 7px 14px; border: 0; border-radius: 10px; background: transparent; color: var(--fx-tenue); font: 600 13.5px var(--font-body); cursor: pointer; }
.fx-segmento button[aria-pressed="true"] { background: var(--fx-acento); color: #160b10; }
.fx-tonos { display: flex; flex-wrap: wrap; gap: 10px; }
.fx-tono { width: 38px; height: 38px; padding: 0; border: 3px solid #0d0a11; border-radius: 50%; background: var(--t); box-shadow: 0 0 0 1px #ffffff40; cursor: pointer; }
.fx-tono[aria-pressed="true"] { box-shadow: 0 0 0 2px #fff, 0 0 18px var(--t); }
.fx-insignia { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 12px; border: 1px solid var(--fx-acento); border-radius: 99px; color: var(--fx-acento); font: 600 12.5px var(--font-body); }
.fx-banda { padding: 10px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.45; }
.fx-banda--espera { border: 1px solid #edce8e55; background: #edce8e14; color: #f2dca6; }
.fx-banda--rechazo { border: 1px solid #e2423f66; background: #e2423f14; color: #ffb3ad; }

/* -------------------------------------------------- Small pieces: portrait, souls, chip */
.pj-foto, .pj-chip__foto, .fx-medallon__foto, .fx-luchador__foto, .fx-cine__retrato, .carta__retrato { --aura: #e2423f; position: relative; display: grid; place-items: center; overflow: hidden; }
:is(.pj-foto, .pj-chip__foto, .fx-medallon__foto, .fx-luchador__foto, .fx-cine__retrato, .carta__retrato) img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
:is(.pj-foto, .pj-chip__foto, .fx-medallon__foto, .fx-luchador__foto, .fx-cine__retrato, .carta__retrato).is-sigilo { background: radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--aura) 55%, transparent), transparent 70%), #12080c; }
:is(.pj-foto, .pj-chip__foto, .fx-medallon__foto, .fx-luchador__foto, .fx-cine__retrato, .carta__retrato).is-sigilo svg { position: absolute; width: 62%; height: 62%; fill: none; stroke: color-mix(in srgb, var(--aura) 70%, #fff); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; opacity: .55; }
:is(.pj-foto, .pj-chip__foto, .fx-medallon__foto, .fx-luchador__foto, .fx-cine__retrato, .carta__retrato).is-sigilo b { position: relative; font: 400 2.2em/1 var(--font-display); color: #fff; text-shadow: 0 0 18px var(--aura); }
.pj-almas { display: inline-flex; align-items: center; gap: 4px; font: 700 13px var(--font-mono); color: #ffe7a1; }
.pj-almas svg { width: 15px; height: 15px; fill: #ffe7a133; stroke: #ffe7a1; stroke-width: 1.6; }
.pj-chip { display: inline-grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; min-width: 0; padding: 5px 12px 5px 5px; border: 1px solid #ffffff1c; border-radius: 99px; background: #0b0710cc;
  color: var(--fx-texto, #f5eee4); text-align: left; cursor: pointer; }
button.pj-chip:hover { border-color: color-mix(in srgb, var(--fx-acento, #edce8e) 55%, transparent); }
.pj-chip__foto { width: 38px; height: 38px; border-radius: 50%; box-shadow: 0 0 0 2px #0b0710, 0 0 0 3px color-mix(in srgb, var(--aura) 70%, transparent); font-size: 9px; }
.pj-chip__texto { display: grid; min-width: 0; line-height: 1.2; }
.pj-chip__texto strong { overflow: hidden; font: 600 14px var(--font-body); white-space: nowrap; text-overflow: ellipsis; }
.pj-chip__texto small { font-size: 12px; color: var(--fx-tenue, #c3b6bd); }
.pj-chip__corona { width: 18px; height: 18px; fill: #ffd36b33; stroke: #ffd36b; stroke-width: 1.6; stroke-linejoin: round; }
.pj-chip.is-overlord { border-color: #ffd36b88; box-shadow: 0 0 16px #ffd36b33; }

/* -------------------------------------------------------------------- Card */
/* A tarot card: an arched window for the portrait, the name on a ribbon, the four attributes; gold art deco for
   Hazbin, neon for Helluva; an Overlord's burns gold with a turning aura and wears a crown. */
.carta { --aura: #e2423f; --marco: #edce8e; --marco2: #8a5f22; --fondo1: #2c0b12; --fondo2: #0c0508; --tinta: #1a0d0a;
  position: relative; display: block; flex: none; width: 210px; aspect-ratio: 5 / 7.6; padding: 0; border: 0; border-radius: 18px; background: none; color: #fff; text-align: left; font-family: var(--font-body); isolation: isolate; }
.carta--helluva { --marco: #a979fc; --marco2: #4b2a8c; --fondo1: #1c1238; --fondo2: #07050f; --tinta: #0d0820; }
.carta--grande { width: min(300px, 100%); }
.carta--mini { width: 128px; border-radius: 14px; }
button.carta { cursor: pointer; transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
button.carta:hover, button.carta:focus-visible { transform: translateY(-6px) rotate(-1deg); outline: none; }
button.carta:focus-visible .carta__marco { box-shadow: inset 0 0 0 2px var(--marco), 0 0 0 3px #fff, 0 16px 40px #000b; }
.carta__marco { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 11px 11px 12px; border-radius: inherit; overflow: hidden;
  background: radial-gradient(ellipse 95% 55% at 50% 34%, color-mix(in srgb, var(--aura) 34%, transparent), transparent 72%),
    repeating-linear-gradient(135deg, #ffffff05 0 2px, transparent 2px 9px), linear-gradient(170deg, var(--fondo1), var(--fondo2));
  box-shadow: inset 0 0 0 2px var(--marco), inset 0 0 0 5px #0008, inset 0 0 0 6px color-mix(in srgb, var(--marco) 55%, transparent), 0 18px 44px #000c; }
/* Art deco corners (a neon line in Helluva). */
.carta__marco::before, .carta__marco::after { content: ''; position: absolute; width: 30%; height: 18%; border: 2px solid var(--marco); pointer-events: none; opacity: .9; }
.carta__marco::before { top: 8px; left: 8px; border-right: 0; border-bottom: 0; border-radius: 12px 0 0 0; }
.carta__marco::after { bottom: 8px; right: 8px; border-left: 0; border-top: 0; border-radius: 0 0 12px 0; }
.carta--helluva .carta__marco::before, .carta--helluva .carta__marco::after { border-color: #c6fb89; filter: drop-shadow(0 0 4px #c6fb89); }
.carta__cima { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; }
.carta__nivel { display: grid; place-items: center; width: 38px; height: 38px; border: 2px solid var(--marco); border-radius: 50%; background: radial-gradient(circle, var(--fondo1), #000);
  font: 400 16px/1 var(--font-display); color: var(--marco); box-shadow: 0 0 12px color-mix(in srgb, var(--marco) 45%, transparent); }
.carta__nivel small { display: block; margin-bottom: -3px; font: 700 7px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.carta__almas { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px 4px 6px; border: 1px solid #ffe7a155; border-radius: 99px; background: #000000a6; font: 700 12px var(--font-mono); color: #ffe7a1; }
.carta__almas svg { width: 14px; height: 14px; fill: #ffe7a133; stroke: #ffe7a1; stroke-width: 1.6; }
.carta__retrato { flex: 1; min-height: 0; margin: 7px 4px 0; border-radius: 50% 50% 12px 12px / 26% 26% 12px 12px; background: #000;
  box-shadow: inset 0 0 0 2px var(--marco), 0 0 26px color-mix(in srgb, var(--aura) 55%, transparent); font-size: 26px; }
.carta__retrato::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 2px var(--marco), inset 0 -40px 40px -20px #000c; pointer-events: none; }
.carta__cinta { position: relative; z-index: 2; margin: -16px -4px 0; padding: 7px 10px 6px; border-radius: 6px; text-align: center;
  background: linear-gradient(180deg, color-mix(in srgb, var(--marco) 92%, #fff), var(--marco2)); box-shadow: 0 6px 14px #000a, inset 0 1px 0 #ffffff66; clip-path: polygon(4% 0, 96% 0, 100% 50%, 96% 100%, 4% 100%, 0 50%); }
.carta__nombre { display: block; overflow: hidden; font: 400 16px/1.1 var(--font-display); color: var(--tinta); white-space: nowrap; text-overflow: ellipsis; }
.carta--grande .carta__nombre { font-size: 22px; }
.carta--mini .carta__nombre { font-size: 12.5px; }
.carta--helluva .carta__cinta { background: linear-gradient(180deg, #c6fb89, #6c9c2e); }
.carta__especie { margin-top: 6px; text-align: center; font: 600 9.5px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: color-mix(in srgb, var(--marco) 70%, #fff); }
.carta__atributos { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 10px; margin: 8px 2px 0; padding: 0; list-style: none; }
.carta__atributo { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 2px 5px; font-size: 10.5px; }
.carta__atributo svg { width: 14px; height: 14px; fill: none; stroke: var(--c); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.carta__atributo-nombre { overflow: hidden; color: #e9dfe4; white-space: nowrap; text-overflow: ellipsis; }
.carta__atributo b { font: 700 12px var(--font-mono); color: #fff; }
.carta__atributo-barra { grid-column: 1 / -1; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--c) calc(var(--v) * 10%), #ffffff1a 0); }
.carta__atributo--poder { --c: #ff6b4a; } .carta__atributo--astucia { --c: #87dffe; } .carta__atributo--encanto { --c: #ff5fa2; } .carta__atributo--aguante { --c: #c6fb89; }
.carta--grande .carta__atributo { font-size: 12px; }
.carta__frase { margin-top: 8px; padding: 0 4px; font: italic 12px/1.4 var(--font-body); color: #f2dca6; text-align: center; }
.carta--mini .carta__cima { transform: scale(.82); transform-origin: top; margin-bottom: -6px; }
/* The stamp of one that waits for (or was refused by) the staff. */
.carta.is-pendiente .carta__marco, .carta.is-rechazado .carta__marco { filter: saturate(.45) brightness(.85); }
.carta__sello { position: absolute; top: 42%; left: 50%; z-index: 4; translate: -50% 0; rotate: -14deg; padding: 6px 14px; border: 3px double #edce8e; border-radius: 8px; background: #0b0710cc;
  color: #edce8e; font: 400 18px/1 'Anton', Impact, sans-serif; letter-spacing: .14em; text-transform: uppercase; pointer-events: none; }
.carta.is-rechazado .carta__sello { border-color: #ff6b5e; color: #ff8a7e; }
/* An Overlord: gold everything, a crown, and a burning aura that turns behind the card. */
.carta.is-overlord { --marco: #ffd36b; --marco2: #a86a12; }
.carta.is-overlord::before { content: ''; position: absolute; inset: -9px; z-index: -1; border-radius: 26px; pointer-events: none;
  background: conic-gradient(from var(--fx-giro), #ffd36b, #e2423f, #ff9a3c, #ffd36b, #8a0f18, #ffd36b); filter: blur(9px); opacity: .85; animation: carta-aura 5s linear infinite; }
@keyframes carta-aura { to { --fx-giro: 360deg; } }
.carta__corona { position: absolute; top: 0; left: 50%; z-index: 5; translate: -50% -58%; display: grid; place-items: center; width: 54px; height: 54px; pointer-events: none; }
.carta__corona svg { width: 100%; height: 100%; fill: #ffd36b; stroke: #fff6d6; stroke-width: .9; stroke-linejoin: round; filter: drop-shadow(0 0 10px #ffb347) drop-shadow(0 4px 6px #000a); }
.carta--mini .carta__corona { width: 36px; height: 36px; }
.carta__rango { position: absolute; bottom: 0; left: 50%; z-index: 5; translate: -50% 50%; padding: 4px 14px 3px; border-radius: 99px; background: linear-gradient(#ffd36b, #b0741a); color: #1a0d05;
  font: 400 12px/1 'Anton', Impact, sans-serif; letter-spacing: .22em; text-transform: uppercase; box-shadow: 0 0 0 2px #0b0710, 0 0 18px #ffd36b88; pointer-events: none; }
.carta.is-overlord .carta__cinta::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, #ffffffaa 48%, transparent 66%); background-size: 260% 100%; animation: carta-brillo 3.2s ease-in-out infinite; }
@keyframes carta-brillo { 0% { background-position: 130% 0; } 60%, 100% { background-position: -130% 0; } }

/* ------------------------------------------------------- The ritual (create) */
.fx-crear { width: min(1180px, calc(100vw - 32px)); height: min(820px, calc(100dvh - 32px)); }
.fx-crear .fx__cuerpo { display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; gap: 14px; overflow: hidden; padding: 22px 26px 18px; position: relative; }
/* A pentagram turning slowly behind the ritual. */
.fx-crear .fx__cuerpo::before { content: ''; position: absolute; top: 50%; left: 62%; z-index: 0; width: 760px; height: 760px; translate: -50% -50%; pointer-events: none; opacity: .07; animation: fx-sello 120s linear infinite;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none' stroke='%23edce8e' stroke-width='1.2'%3E%3Ccircle cx='100' cy='100' r='94'/%3E%3Ccircle cx='100' cy='100' r='82'/%3E%3Cpath d='M100 18L148.2 166.3 22 74.7h156L51.8 166.3z'/%3E%3C/svg%3E") center / contain no-repeat; }
@keyframes fx-sello { to { rotate: 360deg; } }
.fx-crear .fx__cuerpo > * { position: relative; z-index: 1; }
.fx-crear__cabecera { display: grid; gap: 6px; padding-right: 50px; }
.fx-crear__titulo { font: 400 34px/1.05 var(--font-display); color: var(--fx-acento); }
.fx-crear__pasos { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.fx-crear__salto { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 4px 12px 4px 5px; border: 1px solid #ffffff1c; border-radius: 99px; background: #00000040; color: var(--fx-tenue); font: 600 12.5px var(--font-body); white-space: nowrap; cursor: pointer; }
.fx-crear__salto b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #ffffff14; font: 700 11px var(--font-mono); }
.is-actual .fx-crear__salto { border-color: var(--fx-acento); color: #fff; }
.is-actual .fx-crear__salto b { background: var(--fx-acento); color: #160b10; }
.is-hecho .fx-crear__salto b { background: #6be08a33; color: #9ff0b3; }
.fx-crear__cuerpo { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; min-height: 0; }
.fx-crear__paso { display: grid; align-content: start; gap: 14px; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 4px 8px 12px 2px; scrollbar-width: thin; }
.fx-crear__vista { display: grid; align-content: center; justify-items: center; gap: 12px; min-height: 0; padding: 10px; border-radius: 22px; background: radial-gradient(circle at 50% 45%, #e2423f1f, transparent 70%); }
.fx-crear__linea { min-height: 1.3em; font: 500 14px var(--font-body); color: #ffb3ad; }
.fx-crear__linea:empty { min-height: 0; }
.fx-crear__pie { display: flex; justify-content: flex-end; gap: 10px; padding-top: 12px; border-top: 1px solid #ffffff14; }
.fx-especies { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px; }
.fx-especie { display: grid; align-content: start; gap: 5px; padding: 14px; border: 1px solid #ffffff1c; border-radius: 18px; background: #ffffff07; color: var(--fx-texto); text-align: left; cursor: pointer; transition: border-color .15s, transform .15s; }
.fx-especie:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--fx-acento) 50%, transparent); }
.fx-especie svg { width: 30px; height: 30px; fill: none; stroke: var(--fx-acento); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.fx-especie strong { font: 600 15px var(--font-body); }
.fx-especie small { font-size: 12.5px; line-height: 1.4; color: var(--fx-tenue); }
.fx-especie em { justify-self: start; margin-top: 2px; padding: 2px 9px; border-radius: 99px; background: color-mix(in srgb, var(--fx-acento) 16%, transparent); font: 700 11px var(--font-mono); font-style: normal; color: var(--fx-acento); }
.fx-especie[aria-pressed="true"] { border-color: var(--fx-acento); background: color-mix(in srgb, var(--fx-acento) 12%, transparent); box-shadow: 0 0 0 1px var(--fx-acento), 0 0 24px color-mix(in srgb, var(--fx-acento) 22%, transparent); }
.fx-bono:empty { display: none; }
.fx-bono { display: grid; gap: 8px; }
/* Its face. */
.fx-rostro { display: grid; justify-items: start; gap: 12px; }
.fx-rostro__elegir { display: grid; justify-items: center; gap: 6px; width: min(320px, 100%); padding: 38px 20px; border: 2px dashed #edce8e55; border-radius: 22px; background: #ffffff06; color: var(--fx-texto); cursor: pointer; }
.fx-rostro__elegir:hover { border-color: var(--fx-acento); background: #edce8e0f; }
.fx-rostro__elegir svg { width: 34px; height: 34px; fill: none; stroke: var(--fx-acento); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.fx-rostro__elegir small { color: var(--fx-tenue); }
.fx-rostro__actual { width: 180px; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 18px; box-shadow: 0 0 0 2px var(--fx-acento), 0 18px 40px #000b; }
.fx-rostro__actual img { width: 100%; height: 100%; object-fit: cover; }
.fx-recorte { display: grid; justify-items: start; gap: 10px; }
.fx-recorte__marco { position: relative; width: 240px; height: 320px; overflow: hidden; border-radius: 18px; background: #000; box-shadow: 0 0 0 2px var(--fx-acento), 0 18px 40px #000b; cursor: grab; touch-action: none; }
.fx-recorte__marco:active { cursor: grabbing; }
.fx-recorte__marco img { position: absolute; max-width: none; user-select: none; -webkit-user-drag: none; }
.fx-recorte__zoom { width: 240px; accent-color: var(--fx-acento); }
/* Its gifts. */
.fx-reparto { display: grid; gap: 12px; padding: 16px; border: 1px solid #ffffff17; border-radius: 22px; background: #00000033; }
.fx-reparto__cabecera { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; font-size: 13px; color: var(--fx-tenue); }
.fx-reparto__resto { font: 700 13px var(--font-mono); color: var(--fx-acento); }
.fx-reparto__cuerpo { display: grid; grid-template-columns: minmax(0, 1fr) 240px; align-items: center; gap: 16px; }
.fx-reparto__lista { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.fx-atributo { --c: #fff; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; padding: 10px 12px; border-radius: 16px; background: #ffffff07; }
.fx-atributo--poder { --c: #ff6b4a; } .fx-atributo--astucia { --c: #87dffe; } .fx-atributo--encanto { --c: #ff5fa2; } .fx-atributo--aguante { --c: #c6fb89; }
.fx-atributo.is-baja { box-shadow: inset 0 0 0 1px #ff9a3c88; }
.fx-atributo__nombre { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 1px 10px; }
.fx-atributo__nombre svg { grid-row: span 2; width: 24px; height: 24px; fill: none; stroke: var(--c); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fx-atributo__nombre strong { font: 600 15px var(--font-body); }
.fx-atributo__nombre small { font-size: 12px; line-height: 1.35; color: var(--fx-tenue); }
.fx-atributo__control { display: flex; align-items: center; gap: 6px; }
.fx-atributo__boton { width: 38px; height: 38px; border: 1px solid #ffffff2e; border-radius: 50%; background: #ffffff0a; color: #fff; font: 700 18px/1 var(--font-body); cursor: pointer; }
.fx-atributo__boton:hover:not(:disabled) { border-color: var(--c); background: color-mix(in srgb, var(--c) 18%, transparent); }
.fx-atributo__boton:disabled { opacity: .3; cursor: not-allowed; }
.fx-atributo__valor { min-width: 34px; text-align: center; font: 400 24px/1 var(--font-display); color: var(--c); }
.fx-atributo__valor.is-bono { text-shadow: 0 0 12px var(--c); }
.fx-atributo__pips { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; }
.fx-atributo__pips i { height: 5px; border-radius: 3px; background: #ffffff14; }
.fx-atributo__pips i.is-lleno { background: var(--c); box-shadow: 0 0 6px color-mix(in srgb, var(--c) 60%, transparent); }
.fx-atributo__pips i.is-bono { background: repeating-linear-gradient(90deg, var(--c) 0 2px, transparent 2px 4px); }
.fx-atributo__pips i.is-cerrado { opacity: .35; background: repeating-linear-gradient(45deg, #ffffff10 0 2px, transparent 2px 4px); }
.fx-reparto__radar svg { width: 100%; height: auto; overflow: visible; }
.fx-radar__red { fill: none; stroke: #ffffff1f; stroke-width: .6; }
.fx-radar__forma { fill: color-mix(in srgb, var(--fx-acento) 30%, transparent); stroke: var(--fx-acento); stroke-width: 1.4; stroke-linejoin: round; transition: all .3s; }
.fx-reparto__radar text { fill: var(--fx-tenue); font: 600 7.5px var(--font-mono); letter-spacing: .04em; text-transform: uppercase; }
/* Its postures, round by round. */
.fx-rondas { display: grid; gap: 10px; }
.fx-ronda { display: grid; grid-template-columns: 82px minmax(0, 1fr); align-items: center; gap: 12px; }
.fx-ronda__n { font: 600 11px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--fx-tenue); }
.fx-ronda__opciones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.fx-postura { --c: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 46px; padding: 8px 10px; border: 1px solid #ffffff21; border-radius: 14px; background: #ffffff07; color: var(--fx-texto);
  font: 600 13.5px var(--font-body); cursor: pointer; transition: transform .12s, border-color .12s; }
.fx-postura svg { width: 20px; height: 20px; fill: none; stroke: var(--c); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.fx-postura--poder { --c: #ff6b4a; } .fx-postura--astucia { --c: #87dffe; } .fx-postura--encanto { --c: #ff5fa2; }
.fx-postura:hover { transform: translateY(-1px); border-color: var(--c); }
.fx-postura[aria-pressed="true"] { border-color: var(--c); background: color-mix(in srgb, var(--c) 22%, transparent); box-shadow: 0 0 18px color-mix(in srgb, var(--c) 30%, transparent); }
.fx-rondas__regla { margin-top: 2px; }
.fx-resumen { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.fx-resumen li { display: flex; justify-content: space-between; gap: 14px; padding: 12px 14px; border-radius: 14px; background: #ffffff08; font-size: 14px; }
.fx-resumen span { color: var(--fx-tenue); }
.fx-resumen strong { text-align: right; }

/* --------------------------------------------------------------- The sheet */
.fx-ficha__grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 34px; }
.fx-ficha__carta { position: sticky; top: 0; align-self: start; padding-top: 20px; }
.fx-ficha__datos { display: grid; align-content: start; gap: 14px; min-width: 0; padding-right: 30px; }
.fx-ficha__nombre { font: 400 40px/1.05 var(--font-display); color: var(--fx-acento); overflow-wrap: anywhere; }
.fx-ficha__duenio { font-size: 14px; color: var(--fx-tenue); }
.fx-ficha__historia { white-space: pre-line; font-size: 14.5px; line-height: 1.6; color: #e9dfe4; }
.fx-ficha__acciones { padding: 4px 0; }
.fx-progreso { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 6px 12px; }
.fx-progreso__nivel { font: 400 20px/1 var(--font-display); color: var(--fx-acento); }
.fx-progreso__barra { display: block; height: 10px; overflow: hidden; border-radius: 5px; background: #00000080; box-shadow: inset 0 0 0 1px #ffffff1f; }
.fx-progreso__barra i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--fx-rojo), var(--fx-acento)); box-shadow: 0 0 10px color-mix(in srgb, var(--fx-acento) 50%, transparent); transition: width .6s; }
.fx-progreso small { grid-column: 2; font: 11.5px var(--font-mono); color: var(--fx-tenue); }
.fx-cifras { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.fx-cifras__almas { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px 6px 10px; border: 1px solid #ffe7a155; border-radius: 99px; background: #00000066; font: 700 16px var(--font-mono); color: #ffe7a1; }
.fx-cifras__almas::after { content: 'almas'; font: 600 12px var(--font-body); color: var(--fx-tenue); }
.fx-cifras__almas svg { width: 20px; height: 20px; fill: #ffe7a133; stroke: #ffe7a1; stroke-width: 1.6; }
.fx-cifras__duelos { font: 600 13px var(--font-body); color: var(--fx-tenue); }
.fx-overlord { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 2px 12px; padding: 14px 16px; border: 1px solid #ffd36b88; border-radius: 18px;
  background: radial-gradient(ellipse at 0% 50%, #ffd36b22, transparent 70%), #ffffff06; box-shadow: 0 0 24px #ffd36b22; }
.fx-overlord svg { grid-row: span 3; width: 34px; height: 34px; fill: #ffd36b; stroke: #fff6d6; stroke-width: .8; filter: drop-shadow(0 0 8px #ffb347); }
.fx-overlord strong { font: 400 18px/1.1 var(--font-display); color: #ffd36b; }
.fx-overlord small { font-size: 12.5px; color: var(--fx-tenue); }
.fx-overlord em { color: #ffe7a1; }
.fx-pestanas { display: grid; gap: 14px; margin-top: 6px; }
.fx-pestanas__panel { display: grid; gap: 14px; }
.fx-rostro--ficha:empty { display: none; }
.fx-duelos { display: grid; gap: 10px; margin-top: 8px; }
.fx-duelos__lista { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.fx-duelo-fila { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; border-radius: 16px; background: #ffffff07; }
.fx-duelo-fila .pj-chip__foto { width: 44px; height: 44px; }
.fx-duelo-fila__texto { display: grid; min-width: 0; }
.fx-duelo-fila__texto strong { overflow: hidden; font: 600 14px var(--font-body); white-space: nowrap; text-overflow: ellipsis; }
.fx-duelo-fila__texto small { font-size: 12px; color: var(--fx-tenue); }
.fx-duelo-fila.is-pendiente { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fx-acento) 45%, transparent); }

/* ------------------------------------------------------------------ Duels */
.fx-duelo { width: min(760px, calc(100vw - 32px)); }
.fx-duelo .fx__cuerpo { display: grid; align-content: start; gap: 16px; }
.fx-duelo__titulo { font: 400 32px/1.05 var(--font-display); color: var(--fx-acento); }
.fx-duelo__frente { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 14px; padding: 18px; border-radius: 22px;
  background: radial-gradient(ellipse at 50% 50%, #e2423f26, transparent 70%), #00000033; }
.fx-duelo__frente.is-trono { box-shadow: inset 0 0 0 1px #ffd36b66, 0 0 30px #ffd36b22; }
.fx-duelo__vs { font: 400 34px/1 'Anton', Impact, sans-serif; color: var(--fx-rojo); text-shadow: 0 0 18px var(--fx-rojo); }
.fx-medallon { display: grid; justify-items: center; gap: 8px; text-align: center; min-width: 0; }
.fx-medallon__foto { width: 96px; height: 96px; border-radius: 50%; box-shadow: 0 0 0 3px #0b0710, 0 0 0 5px var(--aura), 0 0 28px color-mix(in srgb, var(--aura) 60%, transparent); font-size: 20px; }
.fx-medallon__texto { display: grid; min-width: 0; }
.fx-medallon__texto strong { overflow: hidden; font: 400 18px/1.15 var(--font-display); white-space: nowrap; text-overflow: ellipsis; }
.fx-medallon__texto small { font-size: 12px; color: var(--fx-tenue); }
.fx-apuesta { display: grid; gap: 6px; }
.fx-apuesta input { accent-color: var(--fx-acento); }
.fx-apuesta__valor { font: 400 24px/1 var(--font-display); color: #ffe7a1; }
/* The arena: both fighters, the postures that clashed, every blow. */
.fx-arena { display: grid; grid-template-columns: minmax(0, 1fr) minmax(130px, auto) minmax(0, 1fr); align-items: center; gap: 12px; padding: 20px 14px; border-radius: 24px;
  background: radial-gradient(ellipse at 50% 60%, #e2423f2e, transparent 70%), repeating-linear-gradient(90deg, #ffffff05 0 1px, transparent 1px 30px), #00000047; }
.fx-arena__centro { display: grid; justify-items: center; gap: 8px; min-height: 120px; }
.fx-arena__vs { font: 600 11px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fx-tenue); }
.fx-arena__postura { --c: #fff; display: grid; justify-items: center; gap: 4px; animation: fx-revela .45s cubic-bezier(.2, 1.4, .4, 1) both; }
.fx-arena__postura svg { width: 34px; height: 34px; padding: 8px; box-sizing: content-box; border-radius: 50%; background: color-mix(in srgb, var(--c) 18%, #0b0710); fill: none; stroke: var(--c); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fx-arena__postura b { font: 600 12px var(--font-body); }
.fx-arena__postura.is-vence svg { box-shadow: 0 0 0 2px var(--c), 0 0 22px var(--c); }
@keyframes fx-revela { from { transform: scale(.3) rotate(-30deg); opacity: 0; } }
.fx-luchador { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; min-width: 0; transition: filter .4s, transform .4s; }
.fx-luchador__foto { width: 110px; height: 110px; border-radius: 50%; box-shadow: 0 0 0 3px #0b0710, 0 0 0 5px var(--aura), 0 0 30px color-mix(in srgb, var(--aura) 55%, transparent); font-size: 22px; }
.fx-luchador strong { max-width: 100%; overflow: hidden; font: 400 17px/1.15 var(--font-display); white-space: nowrap; text-overflow: ellipsis; }
.fx-luchador__vida { display: block; width: 100%; max-width: 170px; height: 10px; overflow: hidden; border-radius: 5px; background: #00000099; box-shadow: inset 0 0 0 1px #ffffff26; }
.fx-luchador__vida i { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, #c6fb89, #6be08a); transition: width .7s cubic-bezier(.2, .8, .2, 1); }
.fx-luchador small { font: 11.5px var(--font-mono); color: var(--fx-tenue); }
.fx-luchador__golpe { position: absolute; top: 20px; left: 50%; translate: -50% 0; font: 400 34px/1 'Anton', Impact, sans-serif; color: #fff; -webkit-text-stroke: 1px #3a0508; text-shadow: 0 0 16px #ff2a2a; opacity: 0; pointer-events: none; }
.fx-luchador__golpe.is-visible { animation: fx-golpe 1.1s cubic-bezier(.2, .8, .3, 1) both; }
@keyframes fx-golpe { 0% { opacity: 0; transform: translateY(14px) scale(.6); } 15% { opacity: 1; transform: translateY(0) scale(1.15); } 100% { opacity: 0; transform: translateY(-46px) scale(.95); } }
.fx-luchador.is-golpeado .fx-luchador__foto { animation: fx-sacudida .35s ease-out; }
@keyframes fx-sacudida { 25% { transform: translateX(-6px) rotate(-3deg); } 50% { transform: translateX(5px) rotate(2deg); } 75% { transform: translateX(-2px); } }
.fx-luchador.is-ganador { transform: scale(1.06); }
.fx-luchador.is-ganador .fx-luchador__foto { box-shadow: 0 0 0 3px #0b0710, 0 0 0 6px #ffd36b, 0 0 44px #ffd36b; }
.fx-luchador.is-vencido { filter: grayscale(.85) brightness(.6); }
.fx-arena__rondas { display: grid; align-content: start; gap: 4px; margin: 0; padding: 0 0 0 18px; font-size: 13px; color: var(--fx-tenue); }
.fx-arena__fin { display: grid; justify-items: center; gap: 4px; padding: 18px; border-radius: 20px; background: radial-gradient(ellipse, #ffd36b26, transparent 70%); text-align: center; animation: fx-revela .5s both; }
.fx-arena__fin strong { font: 400 30px/1.1 var(--font-display); color: #ffd36b; text-shadow: 0 0 20px #ffb34788; }
.fx-arena__fin span { color: var(--fx-tenue); }

/* -------------------------------------------------------- The hierarchy */
.fx-jerarquia { width: min(1240px, calc(100vw - 32px)); }
.fx-jerarquia .fx__cuerpo { display: grid; align-content: start; gap: 26px; background: radial-gradient(ellipse 60% 40% at 50% 18%, #ffd36b1f, transparent 70%); }
.fx-jerarquia__cabecera { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 6px 50px 0; }
.fx-jerarquia__titulo { font: 400 clamp(40px, 6vw, 68px)/1 var(--font-display); color: #ffd36b; text-shadow: 0 0 34px #ffb34766; }
.fx-jerarquia__cabecera .fx-ayuda { max-width: 640px; }
/* The throne room: the first seat in the middle, raised, the others around it. */
.fx-tronos { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 34px 22px; padding: 30px 0 10px; }
.fx-trono { position: relative; display: grid; justify-items: center; gap: 10px; width: 200px; padding: 20px 0 16px; border-radius: 26px 26px 14px 14px;
  background: linear-gradient(180deg, transparent 40%, #ffd36b12), radial-gradient(ellipse 80% 30% at 50% 100%, #ffd36b26, transparent 70%); }
.fx-trono::after { content: ''; position: absolute; left: 10%; right: 10%; bottom: -6px; height: 12px; border-radius: 50%; background: radial-gradient(closest-side, #ffd36b66, transparent); filter: blur(2px); }
.fx-trono.is-primero { order: -1; width: 240px; transform: translateY(-18px); }
.fx-trono.is-primero .carta { width: 236px; }
.fx-trono .carta { width: 190px; }
/* Room for the «Overlord» plaque that hangs below the card. */
.fx-trono .carta.is-overlord { margin-bottom: 12px; }
/* The seat's number above the card's crown, between two deco lines. */
.fx-trono__rango { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; font: 400 24px/1 var(--font-display); color: #ffd36b; text-shadow: 0 0 14px #ffb347; }
.fx-trono__rango::before, .fx-trono__rango::after { content: ''; width: 28px; height: 1px; background: linear-gradient(90deg, transparent, #ffd36b); }
.fx-trono__rango::after { background: linear-gradient(90deg, #ffd36b, transparent); }
.fx-trono.is-libre .fx-trono__rango { margin-bottom: 4px; opacity: .6; }
.fx-trono__info { display: grid; justify-items: center; gap: 6px; padding: 0 8px; text-align: center; font-size: 13px; }
.fx-trono__dominio { font: 600 12px var(--font-mono); letter-spacing: .06em; color: #ffe7a1; }
.fx-trono__info em { color: var(--fx-tenue); }
.fx-trono.is-libre { min-height: 300px; align-content: center; }
.fx-trono__vacio { display: grid; place-items: center; width: 160px; aspect-ratio: 5 / 7.6; border: 2px dashed #ffd36b44; border-radius: 18px; color: #ffd36b88; font: 400 18px var(--font-display);
  background: radial-gradient(circle at 50% 40%, #ffd36b12, transparent 70%); }
.fx-dominio { display: grid; gap: 12px; max-width: 620px; justify-self: center; width: 100%; padding: 18px; border: 1px solid #ffd36b66; border-radius: 22px; background: #ffd36b0d; }
.fx-jerarquia__abajo { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 26px; }
.fx-aspirantes, .fx-cronica { display: grid; align-content: start; gap: 10px; padding: 18px; border: 1px solid #ffffff14; border-radius: 22px; background: #00000033; }
.fx-aspirante { display: grid; grid-template-columns: 26px minmax(0, 1fr) 120px auto; align-items: center; gap: 10px; }
.fx-aspirante__n { font: 400 18px/1 var(--font-display); color: var(--fx-tenue); text-align: center; }
.fx-aspirante small { font: 11.5px var(--font-mono); color: var(--fx-tenue); white-space: nowrap; }
.fx-cronica__lista { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 13.5px; }
.fx-cronica__lista li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; }
.fx-cronica__lista svg { width: 18px; height: 18px; fill: #ffd36b33; stroke: #ffd36b; stroke-width: 1.5; stroke-linejoin: round; }
.fx-cronica__lista li.is-cae svg { fill: #6f687855; stroke: #ff8a7e; transform: rotate(18deg) translateY(2px); }

/* ---------------------------------------------------------------- Premieres */
/* A rise, a fall or a new character: the whole screen, a few seconds, skipped with a click or Escape. */
.fx-cine { --aura: #e2423f; position: fixed; inset: 0; z-index: 2147483000; display: grid; place-items: center; width: auto; height: auto; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  overflow: hidden; color: #fff; text-align: center; cursor: pointer; opacity: 0; transition: opacity .45s;
  background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--aura) 34%, #1a0508) 0, #050103 70%); }
.fx-cine.is-visible { opacity: 1; }
.fx-cine.is-saliendo { opacity: 0; }
.fx-cine--asciende { background: radial-gradient(circle at 50% 45%, #6a3a0a 0, #1a0805 45%, #050103 75%); }
.fx-cine--cae { background: radial-gradient(circle at 50% 45%, #3a0a10 0, #120306 50%, #050103 80%); }
.fx-cine__escena { position: relative; display: grid; justify-items: center; gap: 10px; padding: 20px; }
.fx-cine__rayos { position: absolute; top: 200px; left: 50%; width: 1400px; height: 1400px; translate: -50% -50%; z-index: -1; pointer-events: none; opacity: .55;
  background: repeating-conic-gradient(from 0deg, #ffd36b26 0 6deg, transparent 6deg 18deg); -webkit-mask: radial-gradient(closest-side, #000 20%, transparent); mask: radial-gradient(closest-side, #000 20%, transparent); animation: fx-sello 40s linear infinite; }
.fx-cine--cae .fx-cine__rayos { background: repeating-conic-gradient(from 0deg, #e2423f22 0 4deg, transparent 4deg 22deg); }
.fx-cine__sello { position: absolute; top: 200px; left: 50%; width: 520px; height: 520px; translate: -50% -50%; z-index: -1; opacity: .18; animation: fx-sello 90s linear infinite reverse;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none' stroke='%23ffd36b' stroke-width='1'%3E%3Ccircle cx='100' cy='100' r='94'/%3E%3Ccircle cx='100' cy='100' r='82'/%3E%3Cpath d='M100 18L148.2 166.3 22 74.7h156L51.8 166.3z'/%3E%3C/svg%3E") center / contain no-repeat; }
.fx-cine__retrato { width: 220px; height: 220px; margin-top: 80px; border-radius: 50%; box-shadow: 0 0 0 4px #0b0710, 0 0 0 8px #ffd36b, 0 0 80px color-mix(in srgb, var(--aura) 70%, #ffb347); font-size: 44px;
  animation: fx-cine-retrato 1.1s cubic-bezier(.2, 1.2, .3, 1) both; }
.fx-cine--cae .fx-cine__retrato { filter: grayscale(.9) brightness(.75); box-shadow: 0 0 0 4px #0b0710, 0 0 0 8px #6f6878, 0 0 60px #e2423f88; }
@keyframes fx-cine-retrato { from { transform: scale(.2); opacity: 0; } }
.fx-cine__corona { position: absolute; top: 34px; left: 50%; width: 120px; height: 120px; translate: -50% 0; animation: fx-cine-corona 1.3s .5s cubic-bezier(.2, 1.4, .3, 1) both; }
.fx-cine__corona svg { width: 100%; height: 100%; fill: #ffd36b; stroke: #fff6d6; stroke-width: .7; stroke-linejoin: round; filter: drop-shadow(0 0 18px #ffb347) drop-shadow(0 6px 10px #000); }
@keyframes fx-cine-corona { from { transform: translateY(-120px) scale(1.6); opacity: 0; } }
.fx-cine--cae .fx-cine__corona { animation: fx-cine-cae 1.6s .6s cubic-bezier(.5, 0, .7, 1) both; }
.fx-cine--cae .fx-cine__corona svg { fill: #8d8590; filter: drop-shadow(0 0 10px #e2423f); }
@keyframes fx-cine-cae { 0% { transform: none; } 30% { transform: rotate(-8deg); } 100% { transform: translateY(260px) rotate(64deg); opacity: 0; } }
.fx-cine--bienvenida .fx-cine__corona { display: none; }
.fx-cine__ante { margin-top: 14px; font: 600 13px var(--font-mono); letter-spacing: .3em; text-transform: uppercase; color: #ffe7a1; animation: fx-cine-texto .7s .7s both; }
.fx-cine__grande { font: 400 clamp(64px, 13vw, 150px)/.9 'Anton', Impact, sans-serif; letter-spacing: .06em; text-transform: uppercase;
  background: linear-gradient(180deg, #fff6d6, #ffd36b 45%, #b0741a); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 30px #ffb34788); animation: fx-cine-grande 1s .9s cubic-bezier(.2, 1.2, .3, 1) both; }
.fx-cine--cae .fx-cine__grande { background: linear-gradient(180deg, #ffd6d0, #e2423f 50%, #5a0a10); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 0 24px #e2423f88); }
.fx-cine--bienvenida .fx-cine__grande { font: 400 clamp(46px, 9vw, 96px)/1 var(--font-display); letter-spacing: 0; text-transform: none; }
@keyframes fx-cine-grande { from { transform: scale(1.6); opacity: 0; letter-spacing: .4em; } }
@keyframes fx-cine-texto { from { transform: translateY(14px); opacity: 0; } }
.fx-cine__nombre { font: 400 clamp(28px, 5vw, 46px)/1.1 var(--font-display); text-shadow: 0 0 20px var(--aura); animation: fx-cine-texto .7s 1.3s both; }
.fx-cine__sub { font-size: 15px; color: #e9dfe4; animation: fx-cine-texto .7s 1.6s both; }
.fx-cine__sub:empty { display: none; }
.fx-cine__chispa { position: absolute; bottom: -20px; left: var(--x); width: 4px; height: 4px; border-radius: 50%; background: #ffd36b; box-shadow: 0 0 10px 3px #ffb34799; opacity: 0; animation: fx-chispa 3.2s var(--d) ease-out infinite; }
.fx-cine--cae .fx-cine__chispa { background: #ff6b5e; box-shadow: 0 0 10px 3px #e2423f99; }
@keyframes fx-chispa { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translate(20px, -620px); opacity: 0; } }
.fx-cine__saltar { position: absolute; right: 20px; bottom: 20px; min-height: 40px; padding: 8px 18px; border: 1px solid #ffffff40; border-radius: 99px; background: #00000080; color: #fff; font: 600 13px var(--font-body); cursor: pointer; }

/* -------------------------------------------------------------- My account */
.fx-cuenta { --fx-acento: var(--c-accent, #edce8e); --fx-tenue: var(--c-muted, #c3b6bd); display: grid; gap: 14px; padding: 22px; border: 1px solid #ffffff14; border-radius: 24px;
  background: radial-gradient(ellipse 80% 60% at 0% 0%, color-mix(in srgb, var(--fx-acento) 10%, transparent), transparent 70%), #ffffff05; }
.fx-cuenta__titulo { font: 400 28px/1.1 var(--font-display); color: var(--fx-acento); }
.fx-cuenta__cartas { display: flex; flex-wrap: wrap; gap: 26px 22px; padding-top: 18px; }
.fx-cuenta__item { display: grid; justify-items: center; gap: 12px; }
.fx-cuenta__nueva { display: grid; place-content: center; justify-items: center; gap: 8px; width: 210px; aspect-ratio: 5 / 7.6; border: 2px dashed color-mix(in srgb, var(--fx-acento) 45%, transparent); border-radius: 18px;
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--fx-acento) 12%, transparent), transparent 70%); color: var(--c-text, #f5eee4); text-align: center; cursor: pointer; transition: transform .2s, border-color .2s; }
.fx-cuenta__nueva:hover { transform: translateY(-4px); border-color: var(--fx-acento); }
.fx-cuenta__nueva svg { width: 54px; height: 54px; fill: none; stroke: var(--fx-acento); stroke-width: 1; }
.fx-cuenta__nueva strong { font: 400 20px/1.1 var(--font-display); }
.fx-cuenta__nueva small { font-size: 12.5px; color: var(--fx-tenue); }

/* -------------------------------------------------- On the map (js/rol.js) */
.mapa__yo-ficha { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 4px 14px 4px 4px; border: 1px solid #ffd36b55; border-radius: 99px; background: #0b0710e8; color: #f5eee4; font: 600 13px var(--font-body); cursor: pointer; }
.mapa__yo-ficha:hover { border-color: #ffd36b; }
.mapa__yo-ficha .pj-chip__foto { width: 28px; height: 28px; }
.mapa__yo-ficha.is-crear { padding-left: 14px; border-color: var(--c-accent); background: color-mix(in srgb, var(--c-accent) 22%, #0b0710e8); animation: afinidad-llama 2.4s ease-in-out infinite; }
.mapa__jerarquia { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 7px 14px 7px 11px; border: 1px solid #ffd36b66; border-radius: 99px; background: #0b0710e6; color: #ffe7a1; font: 600 13px var(--font-body); white-space: nowrap; cursor: pointer; }
.mapa__jerarquia:hover { border-color: #ffd36b; color: #fff; box-shadow: 0 0 16px #ffd36b33; }
.mapa__jerarquia svg { flex: none; width: 17px; height: 17px; fill: #ffd36b33; stroke: #ffd36b; stroke-width: 1.7; stroke-linejoin: round; }
/* A zone ruled by an Overlord: its crown floats over the building (a billboard, like the beacon). */
/* Seen from the whole map: a column of golden light from the roof up to the crown, and the Overlord's face under it. */
.mapa__deco--dominio { left: -60px; top: -200px; width: 120px; height: 200px; display: grid; justify-items: center; align-content: start; }
.mapa__deco--dominio::before { content: ''; position: absolute; left: 50%; bottom: 0; z-index: -1; width: 44px; height: 160px; translate: -50% 0;
  background: linear-gradient(to top, #ffd36b00, #ffe7a1dd 55%, #ffd36b00); -webkit-mask: linear-gradient(90deg, transparent, #000 38% 62%, transparent); mask: linear-gradient(90deg, transparent, #000 38% 62%, transparent); }
.mapa__deco--dominio svg { width: 96px; height: 96px; fill: #ffd36b; stroke: #fff6d6; stroke-width: .8; stroke-linejoin: round; filter: drop-shadow(0 0 16px #ffb347) drop-shadow(0 4px 6px #000a);
  animation: fx-dominio 3.4s ease-in-out infinite; }
@keyframes fx-dominio { 50% { translate: 0 -8px; } }
.mapa__deco--dominio .pj-chip__foto { width: 52px; height: 52px; margin-top: -16px; border-radius: 50%; box-shadow: 0 0 0 3px #0b0710, 0 0 0 5px #ffd36b, 0 0 24px #ffd36b; }
.mapa__zona.is-dominio .mapa__techo { box-shadow: 0 0 36px #ffd36b55; }
/* Who is in a zone: the character first, the account under it. */
.rol-persona__pj { display: block; font-size: 11.5px; color: var(--c-muted); }
.rol-persona.is-overlord .rol-persona__boton { box-shadow: inset 0 0 0 1px #ffd36b88; }

/* In a profile: the account's characters. */
.perfil-personajes { display: grid; gap: 12px; margin-top: 16px; }
.perfil-personajes__titulo { font: 600 11px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--c-muted, #c3b6bd); }
.perfil-personajes__cartas { display: flex; gap: 20px 16px; overflow-x: auto; padding: 24px 4px 14px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.perfil-personajes__cartas .carta { scroll-snap-align: start; }
@media (max-width: 700px) {
  .mapa__jerarquia { padding: 7px 10px; }
  .mapa__jerarquia .mapa__eventos-texto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* -------------------------------------------------------------------- Phone */
@media (max-width: 760px) {
  /* The whole screen (a modal dialog keeps a margin by default). */
  .fx { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; border: 0; border-radius: 0; }
  .fx__cuerpo { padding: 18px 16px 24px; }
  /* Floating over what scrolls under it: solid, with a halo in the window's colour. */
  .fx__cerrar { top: 10px; right: 10px; background: #120a10; box-shadow: 0 0 0 5px color-mix(in srgb, var(--fx-a) 72%, transparent), 0 6px 16px #000a; }
  /* The ritual: one column that scrolls as a whole (its header goes up with it), the steps as numbers with the current one
     named, its card only at the pact (on top), and the buttons always at the bottom, over a fade. */
  .fx-crear .fx__cuerpo { display: flex; flex-direction: column; overflow-x: hidden; overflow-y: auto; padding: 16px 14px 0; }
  .fx-crear .fx__cuerpo::before { position: fixed; top: 56%; left: 50%; width: 560px; height: 560px; }
  .fx-crear__titulo { font-size: 26px; }
  .fx-crear__pasos { flex-wrap: nowrap; gap: 4px; }
  .fx-crear__salto { padding: 3px; border-color: transparent; background: none; }
  .fx-crear__salto span { display: none; }
  .is-actual .fx-crear__salto { padding: 3px 12px 3px 3px; border-color: var(--fx-acento); background: #00000040; }
  .is-actual .fx-crear__salto span { display: inline; }
  /* It grows: a short step still has its buttons at the bottom of the screen. */
  .fx-crear__cuerpo { display: flex; flex: 1 0 auto; flex-direction: column; gap: 16px; margin-top: 14px; }
  .fx-crear__paso { overflow: visible; padding: 0 0 6px; }
  .fx-crear__vista { display: none; }
  .fx-crear[data-paso="pacto"] .fx-crear__vista { display: grid; order: -1; padding: 0; background: none; }
  .fx-crear[data-paso="pacto"] .carta--grande { width: min(260px, 100%); }
  .fx-crear__linea:not(:empty) { margin-top: 10px; }
  .fx-crear .fx__cuerpo > .fx-crear__pie { position: sticky; bottom: 0; z-index: 3; margin: 0 -14px; padding: 26px 14px max(14px, env(safe-area-inset-bottom)); border-top: 0;
    background: linear-gradient(transparent, var(--fx-b) 24px); }
  /* Each attribute: its name and its buttons on one line, what it does under them, its pips at the bottom. */
  .fx-atributo { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: 'icono nombre control' 'desc desc desc' 'pips pips pips'; gap: 6px 10px; }
  .fx-atributo__nombre { display: contents; }
  .fx-atributo__nombre svg { grid-area: icono; }
  .fx-atributo__nombre strong { grid-area: nombre; }
  .fx-atributo__nombre small { grid-area: desc; }
  .fx-atributo__control { grid-area: control; }
  .fx-atributo__pips { grid-area: pips; }
  .fx-crear__pie .fx-boton { flex: 1; }
  .fx-especies { grid-template-columns: 1fr 1fr; }
  .fx-especie small { display: none; }
  .fx-reparto__cuerpo { grid-template-columns: minmax(0, 1fr); }
  .fx-reparto__radar { width: 230px; justify-self: center; order: -1; }
  .fx-ronda { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .fx-postura span { font-size: 12.5px; }
  /* The sheet: the card on top, then its data; the actions within reach of the thumb. */
  .fx-ficha__grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .fx-ficha__carta { position: static; justify-self: center; padding-top: 26px; }
  .fx-ficha__carta .carta { width: 250px; }
  .fx-ficha__datos { padding-right: 0; }
  .fx-ficha__nombre { font-size: 32px; }
  .fx-ficha__acciones .fx-boton { flex: 1 1 100%; }
  /* Its tabs stay at the top while their panel scrolls, beside the close button (never under it). */
  .fx-pestanas__barra { position: sticky; top: 0; z-index: 2; margin-right: 50px; background: color-mix(in srgb, var(--fx-a) 94%, #000); }
  /* A duel: both faces side by side (the postures fit on the first screen), its buttons always at the bottom. */
  .fx-duelo__frente { gap: 6px; padding: 14px 8px; }
  .fx-duelo__vs { font-size: 26px; }
  .fx-medallon__foto { width: 64px; height: 64px; }
  .fx-medallon__texto strong { font-size: 15px; white-space: normal; }
  .fx-duelo__titulo { padding-right: 46px; font-size: 26px; }
  .fx-duelo .fx__cuerpo { padding-bottom: 0; }
  .fx-duelo .fx__cuerpo > :last-child:not(.fx-duelo__acciones) { margin-bottom: 24px; }
  .fx-duelo .fx__cuerpo > .fx-duelo__acciones { position: sticky; bottom: 0; z-index: 3; margin: 0 -16px; padding: 22px 16px max(16px, env(safe-area-inset-bottom));
    background: linear-gradient(transparent, var(--fx-b) 22px); }
  .fx-duelo__acciones .fx-boton { flex: 1; }
  .fx-arena { grid-template-columns: 1fr 1fr; }
  .fx-arena__centro { grid-column: 1 / -1; grid-row: 2; grid-template-columns: repeat(3, auto); justify-content: center; align-items: center; min-height: 0; }
  .fx-luchador__foto { width: 84px; height: 84px; }
  /* The hierarchy: the seats as a row to swipe, the first one first. */
  .fx-jerarquia__cabecera { padding: 4px 30px 0; }
  .fx-tronos { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; padding: 30px 16px 14px; margin: 0 -16px; scrollbar-width: none; }
  .fx-trono { flex: none; scroll-snap-align: center; }
  .fx-trono.is-primero { transform: none; }
  .fx-jerarquia__abajo { grid-template-columns: minmax(0, 1fr); }
  .fx-aspirante { grid-template-columns: 22px minmax(0, 1fr) auto; }
  .fx-aspirante .fx-progreso__barra { grid-column: 2 / -1; grid-row: 2; }
  .fx-cine__retrato { width: 160px; height: 160px; margin-top: 70px; }
  .fx-cine__corona { width: 90px; height: 90px; top: 30px; }
  .fx-cuenta { padding: 18px 14px; }
  .fx-cuenta__cartas { justify-content: center; }
  .fx-cuenta__nueva, .fx-cuenta__item .carta { width: 160px; }
}

/* --------------------------------------------------------------------- Calm */
html.motion-off .carta.is-overlord::before, html.motion-off .carta.is-overlord .carta__cinta::after, html.motion-off .fx-crear .fx__cuerpo::before,
html.motion-off :is(.fx-cine__rayos, .fx-cine__sello, .fx-cine__chispa, .fx-cine__retrato, .fx-cine__corona, .fx-cine__ante, .fx-cine__grande, .fx-cine__nombre, .fx-cine__sub, .fx-arena__postura, .fx-arena__fin, .mapa__yo-ficha, .mapa__deco--dominio svg) { animation: none !important; }
html.motion-off .fx-cine__chispa { display: none; }
@media (prefers-reduced-motion: reduce) {
  .carta.is-overlord::before, .carta.is-overlord .carta__cinta::after, .fx-crear .fx__cuerpo::before,
  :is(.fx-cine__rayos, .fx-cine__sello, .fx-cine__chispa, .fx-cine__retrato, .fx-cine__corona, .fx-cine__ante, .fx-cine__grande, .fx-cine__nombre, .fx-cine__sub, .fx-arena__postura, .fx-arena__fin, .mapa__yo-ficha, .mapa__deco--dominio svg) { animation: none !important; }
  .fx-cine__chispa { display: none; }
  button.carta, .fx-luchador, .fx-luchador__vida i { transition: none; }
}
