/* CYBER JAPAN — Jacare: laca negra, rojo eléctrico, metal blanco, arquitectura japonesa. */
:root[data-theme="CYBER JAPAN"] {
  --acento: #b70a29;
  --acento-2: #b70a29;
  --acento-tx: #fff;
  --destello: #fce0e5;
  --brand-light: #ff3d5c;
  --timer-accent: #ff516b;
  --bg: #f7edef;
  --panel: #fffafb;
  --soft: #f0e1e5;
  --line: #dbb7c1;
  --ink: #230b14;
  --muted: #593947;
  --third: #6e4857;
  --side: #0b0710;
  --side2: #20101d;
  --side-tx: #fff2f5;
  --side-sub: #c4a7b9;
  --hero: #130a12;
  --hero-tx: #fff5f7;
  --hero-sub: #dbbbc9;
  --tinta: #be17420c;
  --texture: #c91c3004;
  --cyber-line: #c5153c;
  --r: 6px;
  --rs: 4px;
}
:root[data-theme="CYBER JAPAN"][data-mode="oscuro"] {
  --acento: #ff516b;
  --acento-2: #ff7891;
  --acento-tx: #20040c;
  --destello: #38101e;
  --bg: #09070e;
  --panel: #15101a;
  --soft: #211522;
  --line: #4c2639;
  --ink: #fff1f6;
  --muted: #dcc1cf;
  --third: #baa0b2;
  --ok: #91edc8;
  --ok-bg: #152e28;
  --warn: #ffe0a1;
  --warn-bg: #372714;
  --error: #ff9eab;
  --error-bg: #3a1422;
  --tinta: #ff9ca40b;
  --texture: #ed315a06;
}
.cyber-backdrop,
.jacare-signature {
  display: none;
}
[data-theme="CYBER JAPAN"] .cyber-backdrop {
  display: block;
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  color: var(--cyber-line);
}
.cyber-backdrop > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.32;
}
.cyber-sun {
  position: absolute;
  width: 470px;
  height: 470px;
  border-radius: 50%;
  right: 2vw;
  top: 15vh;
  background: repeating-linear-gradient(
    0deg,
    transparent 0 5px,
    #e90e30 5px 7px
  );
  opacity: 0.09;
  box-shadow: 0 0 100px 25px #fa163b30;
}
.cyber-vertical {
  position: absolute;
  right: 3%;
  top: 33%;
  writing-mode: vertical-rl;
  font: 68px var(--kanji);
  letter-spacing: 22px;
  opacity: 0.19;
}
.cyber-coordinate {
  position: absolute;
  left: 25%;
  bottom: 30px;
  font: 10px monospace;
  letter-spacing: 4px;
  opacity: 0.55;
}
.cyber-scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 48%, #ff164408 50%, transparent 52%);
  background-size: 100% 180%;
  animation: cyber-sweep 16s linear infinite;
}
[data-theme="CYBER JAPAN"] .dojo-art {
  opacity: 0.35;
}
[data-theme="CYBER JAPAN"] .sidebar {
  background: linear-gradient(160deg, #210b17cc, transparent 26%), #0b0710;
  border-right: 1px solid #ee174944;
  box-shadow: 8px 0 35px #d7092910;
}
[data-theme="CYBER JAPAN"] .sidebar nav a.active {
  background: linear-gradient(90deg, #b8113440, #e91e4210);
  border-color: #ff345c;
  box-shadow:
    inset 3px 0 #ff345c,
    0 0 18px #e9203010;
}
[data-theme="CYBER JAPAN"] .topbar {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
}
[data-theme="CYBER JAPAN"] .card,
[data-theme="CYBER JAPAN"] .stat {
  border-radius: 7px;
  border-color: var(--line);
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--acento) 4%, transparent),
      transparent 40%
    ),
    var(--panel);
  box-shadow:
    inset 0 1px #fa8cac12,
    0 8px 30px #00000012;
}
[data-theme="CYBER JAPAN"] .cardhead {
  border-bottom-color: var(--line);
}
[data-theme="CYBER JAPAN"] .hero {
  background: linear-gradient(105deg, #150b15 40%, #3b0b1c 100%);
  border: 1px solid #ff395d60;
  box-shadow:
    inset 0 1px #ff8eac55,
    0 12px 55px #cb0c2520;
}
[data-theme="CYBER JAPAN"] .hero:before {
  background: linear-gradient(90deg, #ff315b, #ff879a, #ff315b);
  box-shadow: 0 0 20px #ff315b99;
}
[data-theme="CYBER JAPAN"] .hero-art {
  opacity: 1;
  mask-image: none;
}
[data-theme="CYBER JAPAN"] .brush-line {
  background: #ff315b;
  box-shadow: 0 4px 18px #ff315b55;
}
[data-theme="CYBER JAPAN"] .title-signature h1 {
  text-shadow: 2px 1px #f517341f;
}
[data-theme="CYBER JAPAN"] .hanko {
  box-shadow:
    3px 3px 0 #600c26,
    0 0 20px #ff16382e;
}
[data-theme="CYBER JAPAN"] .btn {
  border-radius: 5px;
}
[data-theme="CYBER JAPAN"] .btn.primary {
  border: 1px solid #ff90a6;
  box-shadow:
    inset 0 1px #ffc4d2,
    0 4px 24px #ff164333;
}
[data-theme="CYBER JAPAN"] .btn:hover {
  box-shadow: 0 0 22px #fa25452c;
  border-color: var(--acento);
}
[data-theme="CYBER JAPAN"] input:focus,
[data-theme="CYBER JAPAN"] select:focus {
  outline: 2px solid var(--acento);
  outline-offset: 3px;
  box-shadow: 0 0 15px #ff24552c;
}
.cyber-emblem {
  position: relative;
  width: 340px;
  max-width: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  color: #ff4164;
}
.cyber-emblem .hannya-art {
  position: relative;
  inset: auto;
  width: 70%;
  height: 82%;
  transform: none;
  filter: drop-shadow(0 0 13px #ff214c66);
}
.cyber-emblem .hannya-art svg {
  width: 100%;
  height: 100%;
  filter: saturate(0.75) contrast(1.2);
}
.cyber-emblem .hannya-art > span {
  display: none;
}
.cyber-orbit {
  position: absolute;
  inset: 3%;
  border: 1px solid #fa315a77;
  border-radius: 50%;
  box-shadow:
    inset 0 0 25px #ff164415,
    0 0 25px #ff164415;
}
.orbit-a {
  border-top: 3px solid #ff4265;
  border-bottom: 3px solid #ff4265;
  animation: cyber-orbit 36s linear infinite;
}
.orbit-b {
  inset: 9%;
  border: 1px dashed #ff9aad66;
  animation: cyber-orbit 60s linear reverse infinite;
}
.cyber-code {
  position: absolute;
  z-index: 2;
  letter-spacing: 3px;
  font: 600 12px monospace;
  color: #ffccd8;
  background: #190c16;
  padding: 4px 12px;
  border: 1px solid #fe315d55;
}
.code-top {
  top: 2%;
}
.code-bottom {
  bottom: 0;
  font-size: 10px;
}
.cyber-wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
[data-theme="CYBER JAPAN"] .jacare-signature {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 1440px;
  margin: 24px auto 0;
  padding: 20px 30px 35px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 600 12px var(--body);
  letter-spacing: 3px;
}
.jacare-signature small {
  display: block;
  font: 400 13px var(--body);
  letter-spacing: 0;
}
.jacare-signature small b {
  font: italic 800 30px var(--sports);
  color: var(--ink);
  margin-left: 4px;
  text-shadow: 2px 1px #ff315b44;
}
.signature-seal {
  color: #fff5f7;
  background: #b72b25;
  padding: 4px 7px;
  border: 1px solid #ffab9e;
  font: 30px var(--kanji);
  transform: rotate(-6deg);
}
.jacare-signature > i {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, var(--acento), transparent);
}
.signature-edition {
  text-align: right;
  color: var(--acento);
  font-size: 20px;
}
.signature-edition small {
  font: 9px monospace;
  color: var(--third);
}
.palette.p8 {
  background: linear-gradient(90deg, #ff315b 50%, #0b0710 50%);
  box-shadow: 0 0 12px #fc1b5055;
}
[data-theme="CYBER JAPAN"] .timer-stage {
  --timer-color: var(--timer-accent);
  border-radius: 6px;
  border-color: #d62e515e;
  background:
    radial-gradient(ellipse at 50% 44%, #46112666, transparent 61%),
    repeating-linear-gradient(0deg, #f91e4505 0 1px, transparent 1px 4px),
    #100a13;
  box-shadow:
    inset 0 1px #ff7b9866,
    0 20px 65px #ee123620;
}
[data-theme="CYBER JAPAN"] .timer-stage:before {
  color: #ff315b0a;
  font-size: 180px;
  right: -20px;
  bottom: 90px;
}
[data-theme="CYBER JAPAN"] .timer-stage:after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid #ed30551b;
  clip-path: polygon(
    0 0,
    22% 0,
    22% 1%,
    1% 1%,
    1% 20%,
    0 20%,
    0 80%,
    1% 80%,
    1% 99%,
    22% 99%,
    22% 100%,
    78% 100%,
    78% 99%,
    99% 99%,
    99% 80%,
    100% 80%,
    100% 20%,
    99% 20%,
    99% 1%,
    78% 1%,
    78% 0,
    100% 0,
    100% 100%,
    0 100%
  );
  pointer-events: none;
}
[data-theme="CYBER JAPAN"] .timer-circle {
  border: 1px solid #ff4a6a2a;
  border-radius: 50%;
  box-shadow:
    0 0 0 9px #fd345607,
    inset 0 0 65px #f02d4a0b;
}
[data-theme="CYBER JAPAN"] .timer-circle #timer-progress {
  filter: drop-shadow(0 0 8px #ff335688);
}
[data-theme="CYBER JAPAN"] .timer-top > span {
  color: #e3a6ba;
}
[data-theme="CYBER JAPAN"] .timer-circle strong {
  text-shadow:
    3px 0 #ff295433,
    0 0 30px #ff315b24;
}
[data-theme="CYBER JAPAN"] .timer-controls .timer-primary {
  border-color: #ff94ae;
  background: linear-gradient(100deg, #ff4263, #ff7890);
  box-shadow:
    inset 0 1px #ffc4d1,
    0 5px 30px #f615443d;
}
[data-theme="CYBER JAPAN"] .timer-stage[data-phase="descanso"] {
  --timer-color: #f5a1bb;
}
[data-theme="CYBER JAPAN"] .timer-stage[data-phase="enfriamiento"] {
  --timer-color: #e7d6ed;
}
@keyframes cyber-sweep {
  to {
    background-position: 0 180%;
  }
}
@keyframes cyber-orbit {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 760px) {
  .cyber-vertical {
    right: -20px;
    font-size: 55px;
  }
  .cyber-sun {
    width: 320px;
    height: 320px;
    right: -80px;
  }
  .cyber-emblem {
    width: 260px;
    margin: auto;
  }
  [data-theme="CYBER JAPAN"] .jacare-signature {
    padding: 18px 16px 32px;
    gap: 10px;
    margin-top: 16px;
  }
  .jacare-signature {
    letter-spacing: 2px;
  }
  .jacare-signature small b {
    font-size: 28px;
  }
  .signature-edition {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cyber-orbit,
  .cyber-scan {
    animation: none;
  }
}
