/* Romu character cards — scoped to #romu-cards only. Do not leak into the rest of Glowjo. */
#romu-cards{
  --romu-gold:#f7d573;
  --romu-gold-light:#fff6d8;
  --romu-gold-dark:#c1a264;
  --romu-uv:#8a2be2;
  --romu-uv-light:#bf00ff;
  --romu-cyan:#4eb9dc;
  position:relative;
  overflow:hidden;
  margin:10px 0 28px;
  padding:36px 16px 32px;
  border-radius:18px;
  border:1px solid rgba(138,43,226,.28);
  background:rgba(3,3,8,.35);
  scroll-margin-top:100px;
  color:#efeaff;
}
#romu-cards .romu-geo{
  position:absolute;
  inset:0;
  z-index:0;
  display:flex;
  justify-content:center;
  align-items:center;
  overflow:hidden;
  perspective:1000px;
  pointer-events:none;
}
#romu-cards .romu-shape{
  position:absolute;
  border-radius:50%;
  border:1px solid rgba(138,43,226,.15);
  box-shadow:0 0 30px rgba(138,43,226,.1),inset 0 0 20px rgba(138,43,226,.05);
  animation:romuBreathe 10s ease-in-out infinite alternate;
}
#romu-cards .romu-shape-1{width:40vw;height:40vw;max-width:640px;max-height:640px;animation-delay:0s}
#romu-cards .romu-shape-2{width:55vw;height:55vw;max-width:860px;max-height:860px;animation-delay:-2s}
#romu-cards .romu-shape-3{width:70vw;height:70vw;max-width:1100px;max-height:1100px;animation-delay:-4s}
#romu-cards .romu-tesseract{
  position:absolute;
  width:min(300px,70vw);
  height:min(300px,70vw);
  transform-style:preserve-3d;
  animation:romuRotate3d 30s linear infinite;
}
#romu-cards .romu-cube{
  position:absolute;
  inset:0;
  border:2px solid rgba(191,0,255,.4);
  box-shadow:0 0 20px rgba(191,0,255,.3),inset 0 0 20px rgba(138,43,226,.3);
}
#romu-cards .romu-cube-inner{
  transform:scale(.5) translateZ(50px);
  border-color:rgba(247,213,115,.5);
  box-shadow:0 0 15px rgba(247,213,115,.28);
}
#romu-cards .romu-cube-outer{
  transform:scale(1) translateZ(-50px) rotateZ(45deg);
}
#romu-cards .romu-tesseract-line{
  position:absolute;
  background:linear-gradient(90deg,transparent,rgba(138,43,226,.6),transparent);
  height:2px;
  width:50%;
  top:50%;
  left:25%;
  transform-origin:center;
}
#romu-cards .romu-line-1{transform:rotateZ(45deg) translateZ(25px)}
#romu-cards .romu-line-2{transform:rotateZ(-45deg) translateZ(25px)}
@keyframes romuRotate3d{
  0%{transform:rotateX(0deg) rotateY(0deg) rotateZ(0deg)}
  100%{transform:rotateX(360deg) rotateY(360deg) rotateZ(360deg)}
}
@keyframes romuBreathe{
  0%{transform:scale(1);opacity:.5}
  100%{transform:scale(1.05);opacity:.8}
}

#romu-cards .romu-inner{position:relative;z-index:1}
#romu-cards .romu-hero{text-align:center;max-width:720px;margin:0 auto 8px;padding:8px 4px 18px}
#romu-cards .romu-kicker{
  margin:0 0 .4em;
  font-family:Orbitron,'Exo 2',sans-serif;
  font-size:clamp(.72rem,2.8vw,.85rem);
  letter-spacing:.28em;
  text-transform:uppercase;
  color:#cbb4ff;
}
#romu-cards h2.romu-title,
#romu-cards h3.romu-name{
  background:none;
  -webkit-background-clip:unset;
  background-clip:unset;
  color:inherit;
  -webkit-text-fill-color:unset;
  filter:none;
  animation:none;
  padding-left:0;
  text-shadow:none;
}
#romu-cards h2.romu-title::before,
#romu-cards h3.romu-name::before{content:none;display:none}
#romu-cards h2.romu-title{
  margin:.1em 0 .25em;
  font-family:Orbitron,'Exo 2',sans-serif;
  font-weight:800;
  font-size:clamp(2.2rem,9vw,4.1rem);
  letter-spacing:.14em;
  text-transform:uppercase;
  color:#f0e6ff;
  -webkit-text-fill-color:#f0e6ff;
  text-shadow:0 0 10px #8a2be2,0 0 20px #8a2be2,0 0 40px #bf00ff;
}
#romu-cards .romu-sub{
  margin:.15em 0 .35em;
  font-family:Orbitron,'Exo 2',sans-serif;
  font-weight:700;
  font-size:clamp(.95rem,3.2vw,1.35rem);
  letter-spacing:.06em;
  line-height:1.35;
  background:linear-gradient(90deg,var(--romu-gold-light),var(--romu-gold),var(--romu-gold-dark),var(--romu-gold));
  background-size:200% 100%;
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  -webkit-text-fill-color:transparent;
  filter:drop-shadow(0 0 10px rgba(247,213,115,.45));
}
#romu-cards .romu-he{
  margin:0 0 .8em;
  font-size:.95rem;
  color:#cbb4ff;
}
#romu-cards .romu-he [lang="he"]{
  font-family:'Noto Sans Hebrew','SBL Hebrew','Ezra SIL','Arial Hebrew',sans-serif;
  font-size:1.15em;
}
#romu-cards .romu-lead{
  margin:0 auto 1.2em;
  max-width:38em;
  font-family:'Exo 2',system-ui,sans-serif;
  font-size:clamp(.98rem,2.8vw,1.12rem);
  line-height:1.55;
  color:#d9d3ef;
}
#romu-cards .romu-initiate{
  position:relative;
  overflow:hidden;
  display:inline-block;
  border:1px solid rgba(255,255,255,.35);
  border-radius:999px;
  padding:14px 28px;
  min-height:48px;
  font-family:Orbitron,'Exo 2',sans-serif;
  font-weight:700;
  font-size:.82rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:#14112e;
  cursor:pointer;
  background:linear-gradient(90deg,var(--romu-gold-dark),var(--romu-gold),var(--romu-gold-light),var(--romu-gold),var(--romu-gold-dark));
  background-size:300% 100%;
  animation:romuGoldFlow 4s linear infinite;
  box-shadow:0 0 20px rgba(247,213,115,.35),inset 0 1px 0 rgba(255,255,255,.5);
  isolation:isolate;
}
#romu-cards .romu-initiate::before{
  content:"";
  position:absolute;
  top:0;
  left:-45%;
  width:40%;
  height:100%;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.75),transparent);
  transform:skewX(-20deg);
  animation:romuShine 3s ease-in-out infinite;
  pointer-events:none;
  z-index:1;
}
#romu-cards .romu-initiate > span{position:relative;z-index:2}
#romu-cards .romu-initiate:hover,
#romu-cards .romu-initiate:focus-visible{
  transform:translateY(-2px) scale(1.02);
  box-shadow:0 0 32px rgba(247,213,115,.6),inset 0 1px 0 rgba(255,255,255,.6);
}
#romu-cards .romu-initiate:focus-visible{
  outline:2px solid var(--romu-gold);
  outline-offset:3px;
}
@keyframes romuGoldFlow{
  0%{background-position:0% 50%}
  100%{background-position:300% 50%}
}
@keyframes romuShine{
  0%,20%{transform:translateX(0) skewX(-20deg);opacity:0}
  35%{opacity:1}
  70%{transform:translateX(280%) skewX(-20deg);opacity:0}
  100%{transform:translateX(280%) skewX(-20deg);opacity:0}
}

#romu-cards .romu-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:16px;
  margin-top:10px;
  scroll-margin-top:100px;
}
#romu-cards.romu-armed:not(.is-initiated) .romu-grid{
  height:0;
  overflow:hidden;
  margin:0;
  visibility:hidden;
}
#romu-cards.romu-armed .romu-card{
  opacity:0;
  transform:translateY(18px);
  pointer-events:none;
}
#romu-cards.romu-armed .romu-card.is-revealed,
#romu-cards:not(.romu-armed) .romu-card{
  opacity:1;
  transform:none;
  pointer-events:auto;
  transition:opacity .55s ease,transform .55s ease;
}

#romu-cards .romu-card{
  position:relative;
  background:rgba(10,10,15,.65);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  border:1px solid rgba(255,255,255,.05);
  border-radius:12px;
  padding:22px 18px 18px;
  overflow:hidden;
  color:#efeaff;
  transition:transform .35s ease,border-color .35s ease,box-shadow .35s ease;
}
#romu-cards .romu-card::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:0;
  background:linear-gradient(160deg,rgba(30,16,48,.4),rgba(0,0,0,.28) 55%,rgba(138,43,226,.08));
}
#romu-cards .romu-card-toggle,
#romu-cards .romu-details{position:relative;z-index:1}
#romu-cards .romu-card-toggle{
  display:block;
  width:100%;
  margin:0;
  padding:0;
  border:0;
  background:transparent;
  color:inherit;
  font:inherit;
  text-align:left;
  cursor:pointer;
}
#romu-cards .romu-card-toggle:focus-visible{
  outline:2px solid var(--romu-gold);
  outline-offset:4px;
  border-radius:8px;
}
#romu-cards h3.romu-name{
  margin:0 0 .35em;
  font-family:Orbitron,'Exo 2',sans-serif;
  font-weight:700;
  font-size:clamp(1.05rem,3.4vw,1.35rem);
  letter-spacing:.04em;
  line-height:1.25;
  color:var(--romu-gold);
  -webkit-text-fill-color:var(--romu-gold);
  text-shadow:0 0 12px rgba(247,213,115,.35);
}
#romu-cards .romu-role{
  margin:0 0 12px;
  padding-bottom:8px;
  border-bottom:1px solid rgba(138,43,226,.45);
  font-family:'Exo 2',sans-serif;
  font-size:.72rem;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:#c9a0ff;
}
#romu-cards .romu-mantra{
  margin:0 0 8px;
  font-family:'Exo 2',system-ui,sans-serif;
  font-style:italic;
  font-size:.98rem;
  line-height:1.45;
  color:#d9d3ef;
}
#romu-cards .romu-mantra-label{
  display:block;
  margin-bottom:4px;
  font-style:normal;
  font-size:.68rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:#c9a0ff;
  font-weight:700;
}
#romu-cards .romu-hint{
  display:block;
  margin-top:8px;
  font-size:.72rem;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:#8f86b3;
}
#romu-cards .romu-hint::after{content:"Tap to open"}
#romu-cards .romu-card.is-open .romu-hint::after{content:"Tap to close"}
#romu-cards .romu-details{margin-top:4px}
#romu-cards .romu-details[hidden]{display:none}
#romu-cards .romu-block{margin:14px 0 0}
#romu-cards .romu-block h4{
  margin:0 0 6px;
  font-family:Orbitron,'Exo 2',sans-serif;
  font-size:.72rem;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--romu-gold);
  font-weight:700;
}
#romu-cards .romu-dots{
  list-style:none;
  margin:0;
  padding:0;
  font-family:'Exo 2',system-ui,sans-serif;
  font-size:.95rem;
  line-height:1.45;
  color:#d9d3ef;
}
#romu-cards .romu-dots li{padding:2px 0 2px 1em;position:relative}
#romu-cards .romu-dots li::before{
  content:"°";
  position:absolute;
  left:0;
  color:#bf00ff;
  font-weight:700;
}
#romu-cards .romu-scroll{
  margin-top:16px;
  padding:12px 14px;
  background:rgba(0,0,0,.5);
  border:1px solid #222;
  border-radius:8px;
}
#romu-cards .romu-scroll dl{margin:0}
#romu-cards .romu-scroll dt{
  margin:8px 0 1px;
  font-family:Orbitron,'Exo 2',sans-serif;
  font-size:.62rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:#c9a0ff;
  font-weight:700;
}
#romu-cards .romu-scroll dt:first-child{margin-top:0}
#romu-cards .romu-scroll dd{
  margin:0;
  font-family:'Exo 2',system-ui,sans-serif;
  font-size:.92rem;
  color:#c8c4d8;
}
#romu-cards .romu-breath{white-space:pre-line}

#romu-cards .romu-circuit{
  position:absolute;
  background:#bf00ff;
  box-shadow:0 0 8px #bf00ff,0 0 16px #8a2be2;
  opacity:0;
  pointer-events:none;
  z-index:2;
}
#romu-cards .romu-circuit-top{top:0;left:0;height:2px;width:0}
#romu-cards .romu-circuit-right{top:0;right:0;width:2px;height:0}
#romu-cards .romu-circuit-bottom{bottom:0;right:0;height:2px;width:0}
#romu-cards .romu-circuit-left{bottom:0;left:0;width:2px;height:0}
@keyframes romuTraceX{from{width:0;opacity:1}to{width:100%;opacity:1}}
@keyframes romuTraceY{from{height:0;opacity:1}to{height:100%;opacity:1}}

#romu-cards .romu-card.is-open,
#romu-cards .romu-card.is-tracing{
  transform:translateY(-5px);
  border-color:rgba(191,0,255,.5);
  box-shadow:0 0 30px rgba(138,43,226,.2),inset 0 0 20px rgba(138,43,226,.15);
}
#romu-cards .romu-card.is-tracing .romu-circuit-top{animation:romuTraceX 1s ease forwards}
#romu-cards .romu-card.is-tracing .romu-circuit-right{animation:romuTraceY 1s ease .2s forwards}
#romu-cards .romu-card.is-tracing .romu-circuit-bottom{animation:romuTraceX 1s ease .4s forwards}
#romu-cards .romu-card.is-tracing .romu-circuit-left{animation:romuTraceY 1s ease .6s forwards}

@media (hover:hover) and (pointer:fine){
  #romu-cards .romu-card:hover{
    transform:translateY(-5px);
    border-color:rgba(191,0,255,.5);
    box-shadow:0 0 30px rgba(138,43,226,.2),inset 0 0 20px rgba(138,43,226,.15);
  }
  #romu-cards .romu-card:hover .romu-circuit-top{animation:romuTraceX 1s ease forwards}
  #romu-cards .romu-card:hover .romu-circuit-right{animation:romuTraceY 1s ease .2s forwards}
  #romu-cards .romu-card:hover .romu-circuit-bottom{animation:romuTraceX 1s ease .4s forwards}
  #romu-cards .romu-card:hover .romu-circuit-left{animation:romuTraceY 1s ease .6s forwards}
}

@media (min-width:720px){
  #romu-cards{padding:44px 22px 36px}
  #romu-cards .romu-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
}
@media (min-width:1100px){
  #romu-cards .romu-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}

@media (prefers-reduced-motion:reduce){
  #romu-cards .romu-shape,
  #romu-cards .romu-tesseract,
  #romu-cards .romu-initiate,
  #romu-cards .romu-initiate::before,
  #romu-cards .romu-circuit,
  #romu-cards .romu-card:hover .romu-circuit-top,
  #romu-cards .romu-card:hover .romu-circuit-right,
  #romu-cards .romu-card:hover .romu-circuit-bottom,
  #romu-cards .romu-card:hover .romu-circuit-left,
  #romu-cards .romu-card.is-tracing .romu-circuit-top,
  #romu-cards .romu-card.is-tracing .romu-circuit-right,
  #romu-cards .romu-card.is-tracing .romu-circuit-bottom,
  #romu-cards .romu-card.is-tracing .romu-circuit-left{
    animation:none !important;
  }
  #romu-cards .romu-shape{opacity:.65}
  #romu-cards .romu-initiate::before{display:none}
  #romu-cards.romu-armed .romu-card.is-revealed{transition:none}
  #romu-cards .romu-card,
  #romu-cards .romu-card.is-open,
  #romu-cards .romu-card.is-tracing,
  #romu-cards .romu-card:hover,
  #romu-cards .romu-initiate:hover,
  #romu-cards .romu-initiate:focus-visible{
    transition:none;
    transform:none;
  }
  #romu-cards .romu-card.is-open{
    border-color:rgba(191,0,255,.5);
    box-shadow:0 0 30px rgba(138,43,226,.2),inset 0 0 20px rgba(138,43,226,.15);
  }
}

/* Character card art */
#romu-cards .romu-pic{display:block;margin:0 0 14px;aspect-ratio:1/1;border-radius:10px;overflow:hidden;
  border:1px solid rgba(247,213,115,.45);
  box-shadow:0 0 0 1px rgba(138,43,226,.35),0 0 18px rgba(138,43,226,.25),0 6px 18px rgba(0,0,0,.45);
  background:#14112e}
#romu-cards .romu-pic img{display:block;width:100%;height:100%;object-fit:cover}
#romu-cards .romu-card.is-open .romu-pic{border-color:rgba(191,0,255,.55);box-shadow:0 0 0 1px rgba(247,213,115,.4),0 0 24px rgba(191,0,255,.3),0 6px 18px rgba(0,0,0,.45)}

/* Template v2 pictures (Nov 10, 2026): full-bleed card art, quiet violet frame instead of gold. */
#romu-cards .romu-pic{border-color:rgba(181,140,240,.35);box-shadow:0 0 18px rgba(138,43,226,.25),0 6px 18px rgba(0,0,0,.45);background:#0b0918}
/* Empty picture slot: shows until img/romu/<slug>.webp + .jpg exist; no code change needed. */
#romu-cards .romu-pic--slot{position:relative}
#romu-cards .romu-pic--slot picture{position:absolute;inset:0;z-index:1}
#romu-cards .romu-pic--slot.is-empty picture{display:none}
#romu-cards .romu-slot-ph{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;
  background:radial-gradient(circle at 50% 45%,rgba(138,43,226,.22),rgba(11,9,24,.96) 62%),#0b0918;overflow:hidden;text-align:center}
#romu-cards .romu-slot-ring{position:absolute;left:50%;top:45%;width:72%;aspect-ratio:1/1;transform:translate(-50%,-50%);border-radius:50%;
  border:3px solid rgba(181,140,240,.38);box-shadow:0 0 22px rgba(181,140,240,.25),inset 0 0 22px rgba(181,140,240,.18)}
#romu-cards .romu-slot-ring::after{content:"";position:absolute;inset:16px;border-radius:50%;border:2px dashed rgba(181,140,240,.3)}
#romu-cards .romu-slot-name{position:relative;font-family:'Exo 2',sans-serif;font-weight:700;font-size:clamp(1.1rem,4vw,1.5rem);color:#c9a7ff;letter-spacing:.04em;text-shadow:0 0 14px rgba(181,140,240,.5)}
#romu-cards .romu-slot-note{position:relative;font-family:'Exo 2',sans-serif;font-size:.7rem;letter-spacing:.2em;text-transform:uppercase;color:#9d8fc4}
#romu-cards .romu-attr{margin:0;font-family:'Exo 2',system-ui,sans-serif;font-size:.93rem;line-height:1.5;color:#d9d3ef}

/* Somatic Heroes picture hover (Nov 13, 2026, phEEnix): picture expands and animates on mouse hover. */
#romu-cards .romu-pic{position:relative;transition:transform .45s cubic-bezier(.2,.8,.2,1),box-shadow .45s ease,border-color .45s ease}
#romu-cards .romu-pic img{transition:transform .7s cubic-bezier(.2,.8,.2,1),filter .7s ease}
#romu-cards .romu-pic::after{content:"";position:absolute;inset:0;z-index:2;pointer-events:none;opacity:0;
  background:linear-gradient(115deg,transparent 30%,rgba(255,255,255,.28) 48%,rgba(191,0,255,.22) 52%,transparent 70%);
  background-size:250% 100%;background-position:150% 0}
@media (hover:hover) and (pointer:fine){
  #romu-cards .romu-card:hover{z-index:3}
  #romu-cards .romu-card:hover .romu-pic{transform:scale(1.04);border-color:rgba(247,213,115,.7);
    animation:romuPicPulse 1.8s ease-in-out .45s infinite}
  #romu-cards .romu-card:hover .romu-pic img{transform:scale(1.14) rotate(-1deg);filter:saturate(1.25) brightness(1.08)}
  #romu-cards .romu-card:hover .romu-pic::after{opacity:1;animation:romuPicShine 1.1s ease forwards}
}
@keyframes romuPicPulse{
  0%,100%{box-shadow:0 0 22px rgba(191,0,255,.35),0 0 0 1px rgba(247,213,115,.45),0 8px 22px rgba(0,0,0,.5)}
  50%{box-shadow:0 0 38px rgba(191,0,255,.6),0 0 14px rgba(0,229,255,.35),0 8px 22px rgba(0,0,0,.5)}
}
@keyframes romuPicShine{from{background-position:150% 0}to{background-position:-60% 0}}
@media (prefers-reduced-motion:reduce){
  #romu-cards .romu-card:hover .romu-pic,#romu-cards .romu-card:hover .romu-pic::after{animation:none !important}
  #romu-cards .romu-card:hover .romu-pic img{transform:scale(1.05)}
}

/* Click opens the full card (Nov 13, 2026, phEEnix): open card spans the whole row; hover zoom pauses while open. */
#romu-cards .romu-card.is-open{grid-column:1/-1}
#romu-cards .romu-card.is-open .romu-pic{max-width:min(460px,100%);margin-left:auto;margin-right:auto}
#romu-cards .romu-card-toggle{cursor:pointer}
@media (hover:hover) and (pointer:fine){
  #romu-cards .romu-card.is-open:hover .romu-pic{transform:none;animation:none}
  #romu-cards .romu-card.is-open:hover .romu-pic img{transform:none;filter:none}
  #romu-cards .romu-card.is-open:hover .romu-pic::after{opacity:0;animation:none}
}
