/* ================================
   styles-dark.css  —  Modo oscuro 
   ================================ */

html.theme-light { color-scheme: light; }
html.theme-dark  { color-scheme: dark; }

html.theme-dark {
  /* Mismas variables que en el @media para forzar oscuro siempre */
  --colorborde:#3b3e42;
  --colorlinea: #4e5365;
  --tabletit_text: #000000;
  --row_hover: #1b2431;
  --subtit: #ffe37a;
  --notas: #ffcc33;
  --row_odd_bg: #1e222a;
  --articles: #121212e8;
  --bgimg: url("/images/fondo-oscuro-25.png");

  color: #e5ebf3;
  background-color: /*#0e1116 !important*/#000000;
}
/* Enlaces del CONTENIDO en oscuro forzado (NO pisa especiales) */
html.theme-dark #contenedor2 a:not(.nuevas):not(.bottomright):not(.nv-card__link),
html.theme-dark #cuerpo a:not(.nuevas):not(.bottomright):not(.nv-card__link),
html.theme-dark #cuerpoIndex2 a:not(.nuevas):not(.bottomright):not(.nv-card__link),
html.theme-dark .colorfondo a:not(.nuevas):not(.bottomright):not(.nv-card__link),
html.theme-dark .nv-more a:not(.nuevas):not(.bottomright):not(.nv-card__link),
html.theme-dark footer a:not(.nuevas):not(.bottomright):not(.nv-card__link) {
  color:#7cd4f0;
}
html.theme-dark #contenedor2 a:hover:not(.nuevas):not(.bottomright):not(.nv-card__link),
html.theme-dark #cuerpo a:hover:not(.nuevas):not(.bottomright):not(.nv-card__link),
html.theme-dark #cuerpoIndex2 a:hover:not(.nuevas):not(.bottomright):not(.nv-card__link),
html.theme-dark .colorfondo a:hover:not(.nuevas):not(.bottomright):not(.nv-card__link),
html.theme-dark .nv-more a:hover:not(.nuevas):not(.bottomright):not(.nv-card__link),
html.theme-dark footer a:hover:not(.nuevas):not(.bottomright):not(.nv-card__link) {
  color:var(--colortexto);
}

html.theme-dark .cajsearch {border: solid 1px var(--tabletit); background-image:url('/images/buscar-4.png');background-position:0.5%;}

/* right */
.sys-tip::after {
  background: #f0f0f0;   /* fondo claro */
  color: #000;           /* texto oscuro */
  box-shadow: 0 4px 10px rgba(255,255,255,.2);
}

/* Misma conversión que arriba, pero scopeada a .theme-dark */
html.theme-dark #contenedor2,
html.theme-dark #cuerpo,
html.theme-dark #cuerpoIndex2,
html.theme-dark .coment-form,
html.theme-dark .nv-more,
html.theme-dark .colorfondo,
html.theme-dark #navabajo {
  background-color: /*#0f1116;*/#000000;
  color:#e5ebf3;
}

html.theme-dark .fondotitulosrev2,
html.theme-dark .tabletit2 {
  background-color:#616f84;
  color:#e5ebf3;
  border-color:var(--colorborde);
}

html.theme-dark .tblineabajo, html.theme-dark .tdtable, html.theme-dark .tdtable-r,
html.theme-dark .tblinvert, html.theme-dark .tbvertbajo {
  background-color:/*1e222a !important*/#14191f;
  border-color:var(--colorborde);
}

html.theme-dark .tabletit, html.theme-dark .tabletitpeq,
html.theme-dark .tabletitpeq-i, html.theme-dark .tabletitpeq-d,
html.theme-dark .tabletitpeq2,
html.theme-dark .Juegos, html.theme-dark .J_nomovil,
html.theme-dark .J_desc, html.theme-dark .J_desc_div {
  border-color:var(--colorborde);
}

html.theme-dark tr.Juegos:hover,
html.theme-dark tr.J_nomovil:hover,
html.theme-dark div.divrow:hover {
  background-color:var(--row_hover);
}

html.theme-dark .J_top_tr { background-color: var(--colorlinea) }

html.theme-dark div { scrollbar-color: var(--colorborde) #14191f; }
html.theme-dark div::-webkit-scrollbar-track { background:#14191f; }
html.theme-dark div::-webkit-scrollbar-thumb { background-color:var(--colorborde); border:2px solid #14191f; }

html.theme-dark .enlacescabecera { background-color:#2a2a2b; color:#fff; }
html.theme-dark .puntuser, html.theme-dark .recuadrogris { background-color:#262a33; }
html.theme-dark #contenido { background-color:rgba(255,255,255,.06); color:#cfd7e3; }
html.theme-dark .puntrevista,
html.theme-dark .puntcomrevista,
html.theme-dark .puntcez,
html.theme-dark .puntcezshots { background-color:var(--color1); color:#fff; }

/* ===== Ajustes personalizados ===== */
html.theme-dark #noticias, html.theme-dark .enlaces, 
html.theme-dark .nv-row,
html.theme-dark .cuerpoventanas,
html.theme-dark .cventanas-m20,
html.theme-dark .cventanas-m30,
html.theme-dark .table {
  background-color: /*#1e222a !important*/#14191f;
  border: 1px solid var(--colorborde) !important;
}
html.theme-dark footer { background-color: var(--colorborde); }
html.theme-dark .nv-row--bg { background-image:none; }
html.theme-dark .listas { background-color: var(--colorborde); color: #ebeef3 !important; }
html.theme-dark .tdizq2 { color: var(--colortexto) !important; }

html.theme-dark a.nuevas:hover,
html.theme-dark .nv-card__link:hover {
  color: var(--subtit) !important;
}

html.theme-dark tr.Juegos:nth-child(odd),
html.theme-dark div.divrow:nth-child(odd) {
  background-color: var(--row_odd_bg) !important;
}

html.theme-dark blockquote {
  border-left: 4px solid #424141;
  background-color: var(--colorborde);
  color: #ebeff3;
}

html.theme-dark img[src*="/images/enlace_externo.png"]      	{ content: url("/images/enlace_externo-osc.png"); }
html.theme-dark img[src*="/images/enlace_interno.png"]      	{ content: url("/images/enlace_interno-osc.png"); }
html.theme-dark img[src*="/images/home-x.png"]      		    { content: url("/images/home-x-osc.png"); }
html.theme-dark img[src*="/images/ojo-5.png"]      		        { content: url("/images/ojo-5-osc.png"); }
html.theme-dark img[src*="/images/sistemas/icono_ag.svg"]       { content: url("/images/sistemas/icono_ag-osc.svg"); }
html.theme-dark img[src*="/images/sistemas/icono_air.png"]      { content: url("/images/sistemas/icono_air-osc.png"); }
html.theme-dark img[src*="/images/sistemas/icono_c64.svg"]      { content: url("/images/sistemas/icono_c64-osc.svg"); }
html.theme-dark img[src*="/images/sistemas/icono_dc-2.svg"]     { content: url("/images/sistemas/icono_dc-2-osc.svg"); }
html.theme-dark img[src*="/images/sistemas/icono_dc.svg"]       { content: url("/images/sistemas/icono_dc-osc.svg"); }
html.theme-dark img[src*="/images/sistemas/icono_falc.png"]     { content: url("/images/sistemas/icono_falc-osc.png"); }
html.theme-dark img[src*="/images/sistemas/icono_gc.png"]       { content: url("/images/sistemas/icono_gc-osc.png"); }
html.theme-dark img[src*="/images/sistemas/icono_gg-2.svg"]     { content: url("/images/sistemas/icono_gg-2-osc.svg"); }
html.theme-dark img[src*="/images/sistemas/icono_gp2x.svg"]     { content: url("/images/sistemas/icono_gp2x-osc.svg"); }
html.theme-dark img[src*="/images/sistemas/icono_mac-4.svg"]    { content: url("/images/sistemas/icono_mac-4-osc.svg"); }
html.theme-dark img[src*="/images/sistemas/icono_md-3.svg"]     { content: url("/images/sistemas/icono_md-3-osc.svg"); }
html.theme-dark img[src*="/images/sistemas/icono_msx2+.svg"]    { content: url("/images/sistemas/icono_msx2+-osc.svg"); }
html.theme-dark img[src*="/images/sistemas/icono_msx2.svg"]     { content: url("/images/sistemas/icono_msx2-osc.svg"); }
html.theme-dark img[src*="/images/sistemas/icono_n3ds.svg"]     { content: url("/images/sistemas/icono_n3ds-osc.svg"); }
html.theme-dark img[src*="/images/sistemas/icono_nds.svg"]      { content: url("/images/sistemas/icono_nds-osc.svg"); }
html.theme-dark img[src*="/images/sistemas/icono_nes.svg"]      { content: url("/images/sistemas/icono_nes-osc.svg"); }
html.theme-dark img[src*="/images/sistemas/icono_onl.svg"]      { content: url("/images/sistemas/icono_onl-osc.svg"); }
html.theme-dark img[src*="/images/sistemas/icono_ori.svg"]      { content: url("/images/sistemas/icono_ori-osc.svg"); }
html.theme-dark img[src*="/images/sistemas/icono_pl4.svg"]    	{ content: url("/images/sistemas/icono_pl4-osc.svg"); }
html.theme-dark img[src*="/images/sistemas/icono_pl4-2.svg"]    { content: url("/images/sistemas/icono_pl4-2-osc.svg"); }
html.theme-dark img[src*="/images/sistemas/icono_que.svg"]      { content: url("/images/sistemas/icono_que-osc.svg"); }
html.theme-dark img[src*="/images/sistemas/icono_snes-2.svg"]   { content: url("/images/sistemas/icono_snes-2-osc.svg"); }
html.theme-dark img[src*="/images/sistemas/icono_sp.svg"]       { content: url("/images/sistemas/icono_sp-osc.svg"); }
html.theme-dark img[src*="/images/sistemas/icono_spn.png"]      { content: url("/images/sistemas/icono_spn-osc.png"); }
html.theme-dark img[src*="/images/sistemas/icono_tho.svg"]      { content: url("/images/sistemas/icono_tho-osc.svg"); }
html.theme-dark img[src*="/images/sistemas/icono_wlm.png"]      { content: url("/images/sistemas/icono_wlm-osc.png"); }
html.theme-dark img[src*="/images/sistemas/icono_wm.png"]       { content: url("/images/sistemas/icono_wm-osc.png"); }
html.theme-dark img[src*="/images/sistemas/icono_xe-3.svg"]     { content: url("/images/sistemas/icono_xe-3-osc.svg"); }
html.theme-dark img[src*="/images/sistemas/icono_xe-4.svg"]     { content: url("/images/sistemas/icono_xe-4-osc.svg"); }
html.theme-dark img[src*="/images/sistemas/icono_xone.svg"]     { content: url("/images/sistemas/icono_xone-osc.svg"); }
html.theme-dark img[src*="/images/sistemas/icono_zx81.png"]     { content: url("/images/sistemas/icono_zx81-osc.png"); }
html.theme-dark img[src*="/images/25-aniversario-pie.png"],
html.theme-dark img[src*="/images/25th-anniversary-pie.png"],
html.theme-dark img[src*="/images/home-dialogo-pie.png"],
html.theme-dark img[src*="/images/flecha-ab-d.svg"],
html.theme-dark img[src*="/images/sistemas/icono_gstk.png"],
html.theme-dark img[src*="/images/sistemas/icono_ps3.svg"],
html.theme-dark img[src*="/images/sistemas/icono_ps4.svg"],
html.theme-dark img[src*="/images/sistemas/icono_ps5.svg"],
html.theme-dark img[src*="/images/sistemas/icono_psp.svg"],
html.theme-dark img[src*="/images/sistemas/icono_psv.svg"],
html.theme-dark img[src*="/images/sistemas/icono_int.svg"],
html.theme-dark img[src*="/images/sistemas/icono_ios.svg"],
html.theme-dark img[src*="/images/sistemas/icono_mac.svg"],
html.theme-dark img[src*="/images/sistemas/icono_mac-3.svg"],
html.theme-dark img[src*="/images/sistemas/icono_xbs.svg"] {
  filter: invert(1);
}

html.theme-dark .default-theme,
html.theme-dark .spectrum-theme,
html.theme-dark .amstrad-theme,
html.theme-dark .c64-theme,
html.theme-dark .msx-theme,
html.theme-dark .atari-theme,
html.theme-dark .amiga-theme,
html.theme-dark .pc-theme,
html.theme-dark .mac-theme,
html.theme-dark .console-theme,
html.theme-dark .mobile-theme,
html.theme-dark .remakes-theme,
html.theme-dark .arcade-theme{
  --colorborde:#3b3e42;
  --colorlinea:#4e5365;
  --tabletit_text:#000000;
  --row_hover:#1b2431;
  --subtit:#ffe37a;
  --notas:#ffcc33;
  --row_odd_bg:#1e222a;
  --articles:#121212e8;
}