/* JereChess 2.1 · Identidad visual de Jugar. No cambia el tablero ni la lógica. */
:root[data-jc-theme="original-oscura"] {--jc21-theme-bg:#080808;--jc21-theme-text:#ffffff;--jc21-theme-accent:#e32936;--jc21-theme-surface:#111111;--jc21-theme-inset:#171717;--jc21-theme-outline:#a02d3a;}
:root[data-jc-theme="personalizada"]{--jc21-theme-bg:var(--jc21-bg);--jc21-theme-text:var(--jc21-text);--jc21-theme-accent:var(--jc21-accent);--jc21-theme-surface:var(--jc21-surface);--jc21-theme-inset:var(--jc21-inset);--jc21-theme-outline:var(--jc21-outline);}
html[data-jc-theme] {color-scheme:normal;--play-bg:var(--jc21-theme-bg);--play-ink:var(--jc21-theme-text);--play-accent:var(--jc21-theme-accent);--play-card:var(--jc21-theme-surface);--play-inset:var(--jc21-theme-inset);--play-border:var(--jc21-theme-outline);--play-action-ink:var(--jc21-action-text, var(--play-bg));}
html[data-jc-theme="original-oscura"] {--play-action-ink:#ffffff;}
html[data-jc-theme="original-clara"] {--play-action-ink:#ffffff;}
html[data-jc-theme="vino"] {--play-action-ink:#241126;}
html[data-jc-theme="elegante"] {--play-action-ink:#182433;}
html[data-jc-theme="rosa-niebla"] {--play-action-ink:#ffffff;}
html[data-jc-theme="calida"] {--play-action-ink:#172a33;}
html[data-jc-theme="clasica"] {--play-action-ink:#182337;}
html[data-jc-theme] body[data-jc-theme-module="jugar"] {
  background:var(--play-bg)!important;color:var(--play-ink)!important;
  font-family:Montserrat,Arial,sans-serif;--bg:var(--play-bg);--background:var(--play-bg);
  --bg-secondary:var(--play-card);--card:var(--play-card);--surface:var(--play-card);
  --panel:var(--play-card);--button:var(--play-inset);--border:var(--play-border);
  --silver:var(--play-ink);--muted:var(--play-ink);--text:var(--play-ink);--accent:var(--play-accent);
}
html[data-jc-theme] body[data-jc-theme-module="jugar"] .jere-site-nav.jc-global-nav {
  background:var(--play-card)!important;border-bottom:1px solid var(--play-border)!important;box-shadow:none!important;
}
html[data-jc-theme] body[data-jc-theme-module="jugar"] .jc-global-nav .jere-tab {
  border:1px solid var(--play-border)!important;border-radius:12px!important;
  background:var(--play-inset)!important;color:var(--play-ink)!important;
  box-shadow:none!important;min-height:40px;
}
html[data-jc-theme] body[data-jc-theme-module="jugar"] .jc-global-nav .jere-tabs {align-items:center!important;gap:9px!important;align-self:center!important;top:auto!important}
html[data-jc-theme] body[data-jc-theme-module="jugar"] .jc-global-nav .jere-tab:hover,
html[data-jc-theme] body[data-jc-theme-module="jugar"] .jc-global-nav .jere-tab:focus-visible,
html[data-jc-theme] body[data-jc-theme-module="jugar"] .jc-global-nav .jere-tab[aria-current="page"] {
  color:var(--play-accent)!important;border-color:var(--play-accent)!important;background:var(--play-card)!important;
  box-shadow:inset 0 0 0 1px var(--play-accent)!important;
}
html[data-jc-theme] body[data-jc-theme-module="jugar"] .jc-global-nav .jc-account,
html[data-jc-theme] body[data-jc-theme-module="jugar"] .jc-global-nav .jc-account-menu,
html[data-jc-theme] body[data-jc-theme-module="jugar"] .jc-global-nav .jere-explore-menu {
 background:var(--play-card)!important;color:var(--play-ink)!important;border-color:var(--play-border)!important;
}
html[data-jc-theme] body[data-jc-theme-module="jugar"] .jc-global-nav .jc-account-menu :is(a,button),
html[data-jc-theme] body[data-jc-theme-module="jugar"] .jc-global-nav .jere-explore-menu a,
html[data-jc-theme] body[data-jc-theme-module="jugar"] .jc-global-nav .jc-account-label {color:var(--play-ink)!important}
html[data-jc-theme] body[data-jc-theme-module="jugar"] .jc-global-nav .jc-account-menu :is(a,button):hover,
html[data-jc-theme] body[data-jc-theme-module="jugar"] .jc-global-nav .jere-explore-menu a:hover {
 background:var(--play-inset)!important;color:var(--play-accent)!important;
}
html[data-jc-theme] body[data-jc-theme-module="jugar"] .jere-name {color:var(--play-ink)!important;-webkit-text-stroke:1.1px var(--play-accent)!important;text-shadow:none!important}
html[data-jc-theme] body[data-jc-theme-module="jugar"] .chess-name {color:var(--play-accent)!important;-webkit-text-stroke:1.1px var(--play-ink)!important;text-shadow:none!important}
html[data-jc-theme] body[data-jc-theme-module="jugar"] .jc-global-nav .logo:before {
 background:radial-gradient(ellipse,color-mix(in srgb,var(--play-accent) 27%,transparent),transparent 75%)!important;
}
html[data-jc-theme] body[data-jc-theme-module="jugar"] .brand-logo {filter:drop-shadow(0 0 7px color-mix(in srgb,var(--play-accent) 29%,transparent))!important}
html[data-jc-theme] body[data-jc-theme-module="jugar"] .page-title {font-family:Montserrat,Arial,sans-serif;letter-spacing:-.045em;color:var(--play-ink);}
html[data-jc-theme] body[data-jc-theme-module="jugar"] .mode,
html[data-jc-theme] body[data-jc-theme-module="jugar"] .mode:nth-child(2),
html[data-jc-theme] body[data-jc-theme-module="jugar"] .side-panel {
 background:var(--play-card)!important;border:1px solid var(--play-border)!important;
 color:var(--play-ink)!important;box-shadow:none!important;border-radius:21px;
}
html[data-jc-theme] body[data-jc-theme-module="jugar"] .mode-selectable:hover,
html[data-jc-theme] body[data-jc-theme-module="jugar"] .mode-selectable:focus-visible {
 background:var(--play-inset)!important;border-color:var(--play-accent)!important;transform:translateY(-2px);
}
html[data-jc-theme] body[data-jc-theme-module="jugar"] .mode-selectable {transition:background .18s,border-color .18s,transform .18s}
html[data-jc-theme] body[data-jc-theme-module="jugar"] .status,
html[data-jc-theme] body[data-jc-theme-module="jugar"] .match-info {color:var(--play-ink)!important;border-color:var(--play-border)!important}
html[data-jc-theme] body[data-jc-theme-module="jugar"] :is(.action-link,.action-play,.local-start,.setup-start,.result-actions #resultRematch) {
 background:var(--play-accent)!important;color:var(--play-action-ink)!important;border:1px solid var(--play-border)!important;
 border-radius:13px;font-family:Montserrat,Arial,sans-serif;font-weight:800;
}
html[data-jc-theme] body[data-jc-theme-module="jugar"] :is(.action-link,.action-play,.local-start,.setup-start):hover {filter:brightness(1.08);transform:translateY(-1px)}
html[data-jc-theme] body[data-jc-theme-module="jugar"] :is(.local-dialog,.setup-dialog,.resign-dialog,.result-dialog,.game-appearance-panel) {
 background:var(--play-card)!important;color:var(--play-ink)!important;border:1px solid var(--play-border)!important;
 box-shadow:0 17px 45px #0005!important;border-radius:18px!important;
}
html[data-jc-theme] body[data-jc-theme-module="jugar"] :is(.local-dialog h2,.local-dialog h3,.setup-dialog h2,.setup-dialog h3,.resign-dialog h2,.result-dialog h2,.result-message,.resign-dialog p,.local-status,.setup-error,.small-info,.muted,.game-appearance-panel label,.setup-custom label,.local-custom label,.setup-level strong,.result-card span,.result-card strong,.match-info strong) {color:var(--play-ink)!important}
html[data-jc-theme] body[data-jc-theme-module="jugar"] :is(.local-modes button,.setup-modes button,.local-close,.setup-close,.result-close,.resign-actions button,.result-actions button,.result-actions a,.controls button,.back-link,#gameAppearanceToggle,.promotion #promotionCancel,.promotion-options button) {
 background:var(--play-inset)!important;color:var(--play-ink)!important;border:1px solid var(--play-border)!important;border-radius:11px!important;
}
html[data-jc-theme] body[data-jc-theme-module="jugar"] :is(.local-modes button,.setup-modes button)[aria-pressed="true"] {
 background:var(--play-accent)!important;color:var(--play-action-ink)!important;border-color:var(--play-accent)!important;
 box-shadow:none!important;
}
html[data-jc-theme] body[data-jc-theme-module="jugar"] :is(.local-modes button,.setup-modes button,.controls button,.back-link,.resign-actions button,.result-actions button,.result-actions a,#gameAppearanceToggle):hover {
 border-color:var(--play-accent)!important;color:var(--play-accent)!important;
}
html[data-jc-theme] body[data-jc-theme-module="jugar"] :is(.local-dialog input[type=number],.local-dialog select,.setup-dialog input[type=number],.setup-dialog select,.game-appearance-panel select,.local-summary,.setup-summary,.result-card,.move-history) {
 background:var(--play-inset)!important;color:var(--play-ink)!important;border:1px solid var(--play-border)!important;
}
html[data-jc-theme] body[data-jc-theme-module="jugar"] :is(.local-dialog input[type=range],.setup-dialog input[type=range]) {accent-color:var(--play-accent)!important}
html[data-jc-theme] body[data-jc-theme-module="jugar"] :is(.clock,.clock.active) {background:var(--play-inset)!important;color:var(--play-ink)!important;border-color:var(--play-border)!important}
html[data-jc-theme] body[data-jc-theme-module="jugar"] .clock.active{border-color:var(--play-accent)!important}
html[data-jc-theme] body[data-jc-theme-module="jugar"] .clock.urgent{background:#8b2831!important;color:#fff!important}
html[data-jc-theme] body[data-jc-theme-module="jugar"] .appearance-anchor .game-appearance-panel::before {background:var(--play-card)!important;border-color:var(--play-border)!important}
html[data-jc-theme] body[data-jc-theme-module="jugar"] :is(.result-badge,.result-card) {border-color:var(--play-border)!important;color:var(--play-ink)!important}
html[data-jc-theme] body[data-jc-theme-module="jugar"] .resign-actions #resignConfirm {background:#9f3f4d!important;color:white!important;border-color:#e17483!important}
/* Ajedrez: no tocar .square, .piece, .chess-board ni los temas específicos del tablero. */
html[data-jc-theme] body[data-jc-theme-module="jugar"] .jc21-theme-trigger {
 background:var(--play-card)!important;color:var(--play-ink)!important;border-color:var(--play-border)!important;
}
html[data-jc-theme] body[data-jc-theme-module="jugar"] .jc21-theme-trigger:hover {border-color:var(--play-accent)!important;color:var(--play-accent)!important}
@media(prefers-reduced-motion:reduce){html[data-jc-theme] body[data-jc-theme-module="jugar"] .mode-selectable {transition:none!important;transform:none!important}}


/* JereChess 2.1 · Corrección de acentos en Jugar/Stockfish.
   Un único acento: se hereda del tema activo, incluida Personalizada.
   Los colores de las casillas y las piezas quedan intactos. */
html[data-jc-theme] body[data-jc-theme-module="jugar"] #moveHistory.move-history {
  background:var(--play-inset)!important;
  border-color:var(--play-border)!important;
}
html[data-jc-theme] body[data-jc-theme-module="jugar"] #moveHistory .history-number {
  background:color-mix(in srgb,var(--play-accent) 12%,var(--play-card))!important;
  color:var(--play-accent)!important;
  border-bottom-color:color-mix(in srgb,var(--play-accent) 24%,transparent)!important;
}
html[data-jc-theme] body[data-jc-theme-module="jugar"] #moveHistory .history-move,
html[data-jc-theme] body[data-jc-theme-module="jugar"] #moveHistory .history-move.black-turn {
  background:color-mix(in srgb,var(--play-accent) 10%,var(--play-card))!important;
  color:var(--play-ink)!important;
  border-bottom-color:color-mix(in srgb,var(--play-accent) 22%,transparent)!important;
}
html[data-jc-theme] body[data-jc-theme-module="jugar"] #moveHistory .history-move:hover,
html[data-jc-theme] body[data-jc-theme-module="jugar"] #moveHistory .history-move:focus-visible {
  background:color-mix(in srgb,var(--play-accent) 25%,var(--play-card))!important;
  outline:1px solid var(--play-accent)!important;
  outline-offset:-1px;
}
html[data-jc-theme] body[data-jc-theme-module="jugar"] #moveHistory .history-move.active {
  background:color-mix(in srgb,var(--play-accent) 34%,var(--play-card))!important;
  outline:2px solid var(--play-accent)!important;
  outline-offset:-2px;
}
html[data-jc-theme] body[data-jc-theme-module="jugar"] .jere-history-row {
  border-bottom-color:color-mix(in srgb,var(--play-accent) 32%,transparent)!important;
}
html[data-jc-theme] body[data-jc-theme-module="jugar"] .jere-game-history {
  border-top-color:var(--play-border)!important;
}
html[data-jc-theme] body[data-jc-theme-module="jugar"] .jere-game-history p {
  color:var(--play-ink)!important;
}
html[data-jc-theme] body[data-jc-theme-module="jugar"] .jere-history-row button {
  background:var(--play-accent)!important;
  border:1px solid var(--play-accent)!important;
  color:var(--play-action-ink)!important;
  font-family:Montserrat,Arial,sans-serif;
  font-weight:750;
  transition:filter .18s ease,transform .18s ease;
}
html[data-jc-theme] body[data-jc-theme-module="jugar"] .jere-history-row button:hover,
html[data-jc-theme] body[data-jc-theme-module="jugar"] .jere-history-row button:focus-visible {
  filter:brightness(1.09);
  transform:translateY(-1px);
  outline:2px solid var(--play-accent);
  outline-offset:2px;
}
/* La cápsula de usuario debe mostrar el acento incluso sin hover. */
html[data-jc-theme] body[data-jc-theme-module="jugar"] .jc-global-nav .jc-account-area .jc-account {
  border:1px solid var(--play-accent)!important;
  box-shadow:0 0 0 1px color-mix(in srgb,var(--play-accent) 20%,transparent)!important;
  transition:background-color .18s ease,border-color .18s ease,color .18s ease;
}
html[data-jc-theme] body[data-jc-theme-module="jugar"] .jc-global-nav .jc-account-avatar {
  border-color:var(--play-accent)!important;
}
html[data-jc-theme] body[data-jc-theme-module="jugar"] .jc-global-nav .jc-account-area .jc-account:hover,
html[data-jc-theme] body[data-jc-theme-module="jugar"] .jc-global-nav .jc-account-area .jc-account:focus-visible {
  background:var(--play-accent)!important;
  color:var(--play-action-ink)!important;
  border-color:var(--play-accent)!important;
}
html[data-jc-theme] body[data-jc-theme-module="jugar"] .jc-global-nav .jc-account-area .jc-account:hover .jc-account-label,
html[data-jc-theme] body[data-jc-theme-module="jugar"] .jc-global-nav .jc-account-area .jc-account:focus-visible .jc-account-label {
  color:var(--play-action-ink)!important;
}
@media(max-width:760px){
  html[data-jc-theme] body[data-jc-theme-module="jugar"] .jc-global-nav .jc-account-area .jc-account {border:1px solid var(--play-accent)!important}
}
