/* Círculos · estilo A — la interfaz en píxel gótico. Solo cuenta con html.ea (guia-a.js la pone si ARTA.on; ?viejo la quita).
   Paneles de ciruela oscura con borde claro arriba-izquierda y oscuro abajo-derecha, clavos en las esquinas, letra de píxel. */
@import url('https://fonts.googleapis.com/css2?family=Jacquard+24&family=Pixelify+Sans:wght@400;500;700&display=swap');

html.ea { --ink: #f0dce8; --dim: #a07a92; --gold: #ffd890; --gold2: #ffe8b0; --pink: #ff7ab8; --mag: #e0208c; --bg: #0c040a; --edge: #6a3058; --panel: #1e0c1a;
  --pl: #6a3058; --pd: #3a1834; --stud: var(--mag); --good: #9cff7a; --bad: #ff5a6a; --px: "Pixelify Sans", "Silkscreen", monospace; --goth: "Jacquard 24", "Pixelify Sans", serif; }
html.ea body { font-family: var(--px); background: var(--bg); }
html.ea *, .ea-card, .ea-card * { font-variant-ligatures: none !important; font-feature-settings: 'liga' 0, 'clig' 0, 'dlig' 0, 'calt' 0 !important; }
html.ea canvas { image-rendering: pixelated; image-rendering: crisp-edges; }
html.ea .dim { background: radial-gradient(ellipse at center, rgba(20,6,18,.82), rgba(6,2,6,.96)); }
html.ea .dim::before { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.18) 0 2px, transparent 2px 4px); }

/* tipografía */
html.ea h1 { font-family: var(--goth); font-weight: 400; letter-spacing: .02em; line-height: .95; }
html.ea h2 { font-family: var(--px); font-weight: 700; letter-spacing: .04em; line-height: 1.05; }
html.ea h1 { font-size: clamp(76px, 20vw, 168px); background: linear-gradient(#fff4d0 0 30%, #ffd890 30% 50%, #e0208c 50% 72%, #6a0e40 72%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 0 #0c030a) drop-shadow(4px 0 0 #0c030a) drop-shadow(0 0 24px rgba(224,32,140,.35)); }
html.ea h2 { font-size: clamp(24px, 4.6vw, 38px); color: var(--gold); text-shadow: 3px 3px 0 #0c030a, 0 0 18px rgba(224,32,140,.3); }
html.ea h3 { font: 700 13px var(--px); letter-spacing: .16em; color: var(--pink); text-transform: uppercase; }
html.ea .sub { font: 500 clamp(16px, 2.4vw, 20px) var(--px); font-style: normal; line-height: 1.35; color: var(--ink); }
html.ea .hint { font: 400 14px var(--px); font-style: normal; color: var(--dim); line-height: 1.45; }
html.ea em, html.ea i:not([class]) { font-style: normal; }
html.ea a { color: var(--gold); }
html.ea .n, html.ea .v, html.ea .souls, html.ea .lvl .big { font-family: "Silkscreen", var(--px); }

/* paneles: el lenguaje de la maqueta (borde claro arriba-izq., oscuro abajo-der., clavos en las esquinas) */
html.ea .box, html.ea .offer, html.ea .char, html.ea .pl, html.ea .lvl button, html.ea .pop, html.ea .evoready, html.ea .minos, html.ea .ea-card, html.ea .ea-entry, html.ea .tbl, html.ea .retos {
  border: 1px solid; border-color: var(--pl) var(--pd) var(--pd) var(--pl); border-radius: 0;
  box-shadow: 0 0 0 1px #0c040a, inset 0 1px 0 #2c1426;
  background:
    linear-gradient(var(--stud), var(--stud)) top left / 2px 2px no-repeat,
    linear-gradient(var(--stud), var(--stud)) top right / 2px 2px no-repeat,
    linear-gradient(var(--stud), var(--stud)) bottom left / 2px 2px no-repeat,
    linear-gradient(var(--stud), var(--stud)) bottom right / 2px 2px no-repeat,
    var(--panel); }
html.ea .box { background-color: #1a0a16e6; }

/* botones */
html.ea button { font: 500 16px var(--px); color: var(--ink); border-radius: 0; padding: 10px 16px; letter-spacing: .02em;
  background: linear-gradient(#3a1630 0 2px, #2a0e22 2px calc(100% - 2px), #16060f calc(100% - 2px)); border: 1px solid; border-color: #8a4070 #3a1030 #3a1030 #8a4070;
  outline: none; box-shadow: 0 0 0 1px #0c040a, 0 3px 0 #0c040a; }
html.ea button:hover:not(:disabled), html.ea button:focus-visible { border-color: var(--pink) #6a1a4a #6a1a4a var(--pink); color: #fff; outline: none; }
html.ea button:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 0 0 1px #0c040a, 0 1px 0 #0c040a; }
html.ea button.main { font: 700 18px var(--px); letter-spacing: .06em; text-transform: uppercase; padding: 12px 26px; color: #fff4dc;
  background: linear-gradient(#a02a60 0 2px, #6a1a40 2px calc(100% - 3px), #3a0a22 calc(100% - 3px)); border-color: #ffd890 #8a5a28 #8a5a28 #ffd890; }
html.ea button.main:hover:not(:disabled), html.ea button.main:focus-visible { border-color: #fff4d0 #ffd890 #ffd890 #fff4d0; }
html.ea button.ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--dim); font-style: normal; text-decoration: underline dotted; text-underline-offset: 4px; }
html.ea button.ghost:hover:not(:disabled) { color: var(--pink); border-color: transparent; }
html.ea #back { font: 500 15px var(--px); font-style: normal; color: var(--dim); }
html.ea .corner { font: 700 15px var(--px); background: #1e0c1ad0; }
html.ea #touchHelp { font: 500 15px var(--px); font-style: normal; }
html.ea #netbar { font: 500 14px var(--px); font-style: normal; background: #1e0c1ae0; border: 1px solid; border-color: var(--pl) var(--pd) var(--pd) var(--pl); color: var(--gold); }

/* título */
html.ea #title .tag { font: 700 12px var(--px); letter-spacing: .32em; color: var(--pink); }
html.ea #title .who { font: 500 16px var(--px); font-style: normal; }
html.ea .circles { gap: 8px; }
html.ea .circles i { border-radius: 0; width: 12px; height: 12px; border-width: 2px; box-shadow: 0 0 0 1px #0c040a, 0 0 8px currentColor; }
html.ea .retos { padding: 10px 14px; font: 400 14px var(--px); }

/* personajes */
html.ea .char { --stud: var(--cc); gap: 3px; background-color: color-mix(in srgb, var(--cc) 12%, #1e0c1a); }
html.ea .char b { font: 700 18px var(--px); color: #fff0d0; letter-spacing: .03em; text-shadow: 2px 2px 0 #0c030a; }
html.ea .char small { font: 700 11px var(--px); letter-spacing: .14em; }
html.ea .char span { font: 400 14px var(--px); line-height: 1.3; }
html.ea .char em { font: 400 13px var(--px); }
html.ea .char .lk { font: 400 13px var(--px); font-style: normal; }
html.ea .char.sel { border-color: #fff4d0; box-shadow: 0 0 0 1px #0c040a, 0 0 0 3px var(--cc), 0 0 22px color-mix(in srgb, var(--cc) 45%, transparent); }
html.ea .char .pk i { font: 700 11px var(--px); border-radius: 0; }
html.ea .vrow button { font: 700 14px var(--px); }

/* sala */
html.ea .code { font: 400 clamp(44px, 12vw, 72px) "Silkscreen", var(--px); letter-spacing: .18em; color: #fff0c8; text-shadow: 4px 4px 0 #0c030a, 0 0 18px rgba(224,32,140,.4); }
html.ea .pl { --stud: currentColor; }
html.ea .pl b { font: 500 15px var(--px); } html.ea .pl small { font: 400 13px var(--px); font-style: normal; }
html.ea input.codein { font: 400 32px "Silkscreen", var(--px); letter-spacing: .3em; border-radius: 0; background: #12060e; border: 2px solid; border-color: #3a1030 #8a4070 #8a4070 #3a1030; color: #fff0c8; }
html.ea .err { font: 400 14px var(--px); font-style: normal; }

/* tienda: la cuenta de Judas */
html.ea .bubble { font: 500 15px var(--px); font-style: normal; background: #f0e2c8; color: #2a0e1e; border-radius: 0; box-shadow: 0 0 0 2px #0c040a, 3px 3px 0 2px #0c040a; }
html.ea .bubble::after { border-top-color: #f0e2c8; }
@media (max-width: 1000px) { html.ea .bubble::after { border-top-color: transparent; border-right-color: #f0e2c8; } }
html.ea .shead h2 { font-size: clamp(22px, 3.6vw, 32px); }
html.ea .offer { --stud: var(--rc); background-color: color-mix(in srgb, var(--rc) 9%, #1e0c1a); }
html.ea .offer b { font: 700 16px var(--px); color: #fff0d0; line-height: 1.1; text-shadow: 2px 2px 0 #0c030a; }
html.ea .offer small { font: 700 11px var(--px); letter-spacing: .1em; }
html.ea .offer .fx { font: 400 14px var(--px); line-height: 1.35; } html.ea .offer .q { font: 400 13px var(--px); font-style: normal; color: var(--dim); }
html.ea .offer .evo { font: 400 13px var(--px); font-style: normal; } html.ea .offer .set { font: 700 11px var(--px); }
html.ea .offer canvas, html.ea .evoready canvas { width: 48px; height: 48px; background: #0c040a; border: 1px solid; border-color: var(--pd) var(--pl) var(--pl) var(--pd); }
html.ea .offer .buy button { font: 700 14px var(--px); }
html.ea .offer.locked { box-shadow: 0 0 0 1px #0c040a, inset 0 0 0 2px var(--gold); }
html.ea .evoready { --stud: #ffc040; background-color: #2a1a08; } html.ea .evoready b { font: 700 14px var(--px); }
html.ea .minos { --stud: #ff5a4a; display: flow-root; text-align: left; font: 400 15px var(--px); font-style: normal; border-left-width: 1px; background-color: #2a0a12; }
html.ea .minos b { font: 700 16px var(--px); color: #ff8a70; }
html.ea .minos canvas.ea-port { float: left; margin: 0 10px 0 0; }
html.ea .slot, html.ea .it { border-radius: 0; background: #0c040a; box-shadow: 0 0 0 1px #0c040a, inset 1px 1px 0 #2c1426; }
html.ea .slot i, html.ea .it i { font: 700 11px "Silkscreen", var(--px); }
html.ea .stats, html.ea .rules { font: 400 14px var(--px); }
html.ea .pop { --stud: var(--gold); font: 400 14px var(--px); }
html.ea .pop b { font: 700 16px var(--px); color: #fff0d0; }
html.ea .mates { font: 400 13px var(--px); } html.ea .mates span { border-radius: 0; }
html.ea .lvl button { --stud: var(--rc); background-color: color-mix(in srgb, var(--rc) 10%, #1e0c1a); }
html.ea .lvl b { font: 700 16px var(--px); } html.ea .lvl small { font: 400 13px var(--px); font-style: normal; }
html.ea .lvl .big { font-size: 26px; color: var(--good); text-shadow: 2px 2px 0 #0c040a; }
html.ea .lvl button.perk span { font: 400 14px var(--px); }
html.ea .stick { background: linear-gradient(transparent, var(--bg) 40%); }

/* pausa y final */
html.ea .opts button { text-align: center; }
html.ea .verses { font: 500 clamp(17px, 2.6vw, 22px) var(--px); font-style: normal; color: #fff0d8; line-height: 1.5; }
html.ea .tbl { padding: 10px 16px; font: 400 16px var(--px); }
html.ea .unl { font: 700 16px var(--px); color: var(--gold); }
html.ea .ea-homero { display: flex; gap: 16px; align-items: center; justify-content: center; text-align: left; flex-wrap: wrap; }

/* fichas de lo nuevo: al borde, sin tapar el centro, sin bloquear */
#ea-cards { position: fixed; z-index: 4; right: calc(8px + var(--sr, 0px)); top: calc(56px + var(--st, 0px)); width: min(250px, 46vw); pointer-events: none; }
.ea-card { --stud: var(--mag); display: flex; gap: 8px; align-items: center; padding: 8px 10px; pointer-events: auto; cursor: pointer; color: #f0dce8; font: 400 13px "Pixelify Sans", monospace; line-height: 1.25;
  animation: ea-in .25s steps(4) both; }
.ea-card.out { animation: ea-out .3s steps(4) both; }
.ea-card canvas { flex: none; image-rendering: pixelated; }
.ea-card b { display: block; font: 700 15px "Pixelify Sans", monospace; color: #ffd890; line-height: 1.1; margin-bottom: 2px; text-shadow: 1px 1px 0 #0c030a; }
.ea-card small { display: block; font: 700 10px "Pixelify Sans", monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--pink, #ff7ab8); }
.ea-card.boss { --stud: #ffd890; border-color: #ffd890 #8a5a28 #8a5a28 #ffd890; }
@keyframes ea-in { from { transform: translateX(110%); } to { transform: none; } }
@keyframes ea-out { to { transform: translateX(110%); opacity: 0; } }
@media (max-width: 520px) { #ea-cards { width: min(200px, 54vw); top: calc(118px + var(--st, 0px)); } .ea-card { font-size: 12px; padding: 6px 8px; } .ea-card b { font-size: 14px; } }
@media (max-height: 520px) and (orientation: landscape) { #ea-cards { top: calc(52px + var(--st, 0px)); width: 210px; } html.ea h1 { font-size: 64px; } html.ea #title .center { gap: 8px; } }

/* el bestiario (desde la pausa) */
.ea-book { width: min(980px, 100%); margin: 0 auto; display: flex; flex-direction: column; gap: 10px; padding-bottom: 20px; }
.ea-book .ea-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ea-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
html.ea .ea-tabs button { padding: 7px 12px; font-size: 14px; }
html.ea .ea-tabs button.on { color: #fff4dc; border-color: #ffd890 #8a5a28 #8a5a28 #ffd890; background: linear-gradient(#a02a60 0 2px, #6a1a40 2px calc(100% - 3px), #3a0a22 calc(100% - 3px)); }
.ea-book h3.ea-circ { margin-top: 8px; text-align: left; }
.ea-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 8px; }
.ea-entry { display: flex; gap: 10px; align-items: center; padding: 8px 10px; text-align: left; font: 400 13px "Pixelify Sans", monospace; line-height: 1.3; color: #f0dce8; }
.ea-entry canvas { flex: none; background: #0c040a; }
.ea-entry b { display: block; font: 700 15px "Pixelify Sans", monospace; color: #fff0d0; line-height: 1.15; }
.ea-entry small { display: block; font: 700 10px "Pixelify Sans", monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--dim, #a07a92); margin-bottom: 2px; }
.ea-entry.unseen b { color: #6a4a62; } .ea-entry.unseen { color: #6a4a62; }
.ea-entry .g { color: #9cff7a; } .ea-entry .r { color: #ff5a6a; }

.scr:not([hidden]) ~ #ea-cards { display: none; }
html.ea #pause.ea-reading { background: rgba(10,3,9,.97); }
@media (max-width: 430px) {
  html.ea .offer b { font-size: 14px; } html.ea .offer .fx { font-size: 12px; } html.ea .offer small { font-size: 10px; letter-spacing: .06em; }
  html.ea .offer .buy button { font-size: 12px; padding: 7px 4px; } html.ea .offer .evo { font-size: 12px; }
  html.ea .char b { font-size: 16px; } html.ea .char span { font-size: 13px; }
}

/* los iconos de 32 en los huecos de armas: a su tamaño (el flex los aplastaba a 6 px) */
html.ea .slot canvas { flex: none; width: 32px; height: 32px; max-width: 88%; max-height: 88%; aspect-ratio: 1; }
/* las ofrendas de la tienda y los huecos son botones: sin el relleno de html.ea button (recortaba los iconos de 32) */
html.ea .it, html.ea .slot { padding: 0; }
html.ea .it canvas { width: 28px; height: 28px; }
/* r9 · cartas de nivel en el momento, duetos, cascada de premios y final de victoria, en píxel gótico */
html.ea .lvl .lvw .fx, html.ea .lvw .was, html.ea .duo { font-family: var(--px); font-style: normal; }
html.ea .lvw .fx { font-size: 14px; } html.ea .lvw .was { font-size: 12px; } html.ea .duo { font-size: 12px; line-height: 1.25; }
html.ea .lvl kbd { font: 400 12px var(--px); color: #8a7a9a; }
html.ea .lvl.now button { box-shadow: 0 0 0 1px #0c040a, 0 6px 18px #0008; }
html.ea .lvl.now button:hover:not(:disabled), html.ea .lvl.now button:focus-visible { transform: translateY(-2px); }
html.ea .unl.cas { font-family: var(--px); font-size: 16px; background: #1e0c1aee; border: 2px solid #6a3058; box-shadow: inset 0 0 0 2px #0c040a; }
html.ea .unl.cas b { color: #ffd890; } html.ea .unl.cas small { font: 400 12px var(--px); }
html.ea #end.won h2 { color: #fff4c8; text-shadow: 3px 3px 0 #0c040a, 0 0 18px #8aa0ff66; }
html.ea #end.won .verses { color: #e8ecff; }
html.salida #ea-cards, html.salida #pauseBtn { display: none !important; }
@media (max-width: 520px) { #ea-cards { top: auto; bottom: calc(76px + var(--sb, 0px)); } }   /* r9: en vertical, las cartas de la guía bajan: arriba tapaban la barra del guardián */
/* r10 · cartas cortas, insignias, el guardián que espera, el detalle del pecador y los toques de lo nuevo */
html.ea .offer .big, html.ea .lvl .big { font: 500 14px var(--px); color: var(--ink); text-shadow: none; } html.ea .offer .big .g, html.ea .lvl .big .g { font: 400 20px "Silkscreen", var(--px); color: var(--good); text-shadow: 2px 2px 0 #0c040a; }
html.ea .lvl .big { font: 400 22px "Silkscreen", var(--px); color: var(--good); }
html.ea .offer .big small { font: 400 12px var(--px); color: var(--dim); }
html.ea .lvl .one { font: 400 13px var(--px); }
html.ea .badge { font: 700 11px var(--px); letter-spacing: .03em; border-color: currentColor; background: #0c040a; }
html.ea .offer .more, html.ea .lvl .more { font: 400 13px var(--px); border-radius: 0; border-color: var(--rc); background: #1e0c1af8; }
html.ea .offer .more i, html.ea .lvl .more i { font-style: normal; color: var(--dim); }
html.ea .bossnext { --stud: #ffd890; border: 1px solid; border-color: #ffd890 #8a5a28 #8a5a28 #ffd890; border-radius: 0; background-color: #2a1208; font: 400 14px var(--px); }
html.ea .bossnext small { font: 700 11px var(--px); letter-spacing: .14em; } html.ea .bossnext b { font: 700 17px var(--px); text-shadow: 2px 2px 0 #0c030a; } html.ea .bossnext i { font-style: normal; }
html.ea .minos .terr { font: 400 14px var(--px); } html.ea .minos .terr b { font: 700 14px var(--px); color: #ffd890; }
html.ea .cdet { font: 400 14px var(--px); border: 1px solid; border-color: var(--pl) var(--pd) var(--pd) var(--pl); background: #1a0a16e6; }
html.ea .cdet > b { font: 700 16px var(--px); } html.ea .cdet > i { font-style: normal; } html.ea .cdet em { font: 400 13px var(--px); }
html.ea .lvpanel { border-bottom-color: var(--pl); }
html.ea details.box > summary h3 { display: inline; }
/* r10 · lo nuevo en una línea arriba (móvil, y con el guardián): no tapa un cuarto de la pantalla */
#ea-toast { position: fixed; z-index: 4; left: 50%; transform: translateX(-50%); max-width: min(560px, calc(100vw - 24px)); pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font: 400 13px "Pixelify Sans", monospace; color: #f0dce8; background: #1e0c1ae8; border: 1px solid; border-color: #6a3058 #3a1834 #3a1834 #6a3058; padding: 4px 10px; animation: ea-toast 2.2s steps(6) both; }
#ea-toast b { color: #ffd890; font-weight: 700; } #ea-toast small { color: #ff7ab8; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 10px; margin-right: 6px; }
@keyframes ea-toast { 0% { opacity: 0; } 8%, 85% { opacity: 1; } 100% { opacity: 0; } }
.scr:not([hidden]) ~ #ea-toast { display: none; }
/* r10 · móvil: cartas más bajas (la tienda en vertical medía 1618 px; en horizontal, una palabra por línea) */
@media (max-width: 600px), (max-height: 520px) and (orientation: landscape) {
  html.ea .lvl b, html.ea .offer b { font-size: 13px; line-height: 1.1; } html.ea .lvl small, html.ea .offer small { font-size: 10px; letter-spacing: .05em; }
  html.ea .lvl .big, html.ea .offer .big .g, html.ea .lvl .big .g { font-size: 16px; } html.ea .lvl .one { font-size: 12px; }
  .lvw canvas { width: 28px; height: 28px; } .lvw .lvtop { gap: 6px; } .lvl kbd { display: none; } .lvl button, .offer { padding: 6px 7px; gap: 3px; }
  html.ea .bubble { font-size: 13px; padding: 4px 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  html.ea .offer .buy button { padding: 6px 4px; } html.ea .offer .buy .lk { width: 34px; }
  html.ea .shead h2 { font-size: 22px; }
}
@media (max-width: 1000px) { .shop .side > .box:nth-child(1) { position: sticky; top: calc(-10px - var(--st, 0px)); z-index: 6; } }   /* las almas siempre a la vista */
/* r10 · elegir pecador en horizontal: cartas en fila (retrato a la izquierda), el detalle debajo y «Bajar» en su barra fija */
@media (max-height: 520px) and (orientation: landscape) {
  #chars .chars { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
  #chars .char { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 8px; row-gap: 0; align-items: center; text-align: left; padding: 5px 8px; }
  #chars .char canvas { grid-row: 1 / span 3; } #chars .char > small, #chars .char > b, #chars .char > span:not(.pk) { grid-column: 2; }
  html.ea #chars .char b { font-size: 14px; } html.ea #chars .char > span { font-size: 11px; line-height: 1.2; min-height: 0; } html.ea #chars .char small { font-size: 9px; letter-spacing: .06em; }
  html.ea #chars .cdet { font-size: 12px; line-height: 1.25; } html.ea #chars h2 { font-size: 22px; }
}
@media (max-height: 520px) and (orientation: landscape) { html.ea .shop .stick #readyBtn { font-size: 14px; padding: 9px 8px; letter-spacing: .02em; } }
